QCoincidence.hh

Go to the documentation of this file.
00001 
00002 #ifndef _Q_COINCIDENCE_HH_
00003 #define _Q_COINCIDENCE_HH_
00004 
00005 #include <list>
00006 #include <map>
00007 
00008 #include "QCoincidentEvent.hh"
00009 
00022 class QCoincidence
00023 {
00024 public:
00025 
00027    QCoincidence();
00028 
00030    virtual ~QCoincidence();
00031 
00038    bool operator<(const QCoincidence& other) const
00039    { return this->GetEvents().front() < other.GetEvents().front(); }
00040 
00042    size_t Size() const { return fEvents.size(); }
00043 
00055    int AddEvent(const QCoincidentEvent& ev);
00056 
00058    void Clear() { fEvents.clear(); }
00059 
00060 
00062    const std::list<QCoincidentEvent>& GetEvents() const { return fEvents; }
00063 
00065    double GetEnergy() const;
00066 
00068    void AddIndex(int pos, unsigned long long ind);
00069 
00071    const QCoincidentEvent * GetEventByIndex (int pos) const; 
00072 
00073 private:
00074    
00075    std::list<QCoincidentEvent> fEvents;
00076 
00078    std::map<int, unsigned long long> fEventIndex;
00079 };
00080 #endif

Generated on Fri Mar 6 13:40:39 2009 for CUORE Software by  doxygen 1.5.1