23 #ifndef DDASROOTEVENT_H
24 #define DDASROOTEVENT_H
61 std::vector<DDASRootHit*> m_data;
84 std::vector<DDASRootHit*>&
GetData() {
return m_data;}
89 UInt_t
GetNHits()
const {
return m_data.size(); }
Encapsulates a built DDAS event with added capabilities for writing to ROOT files.
Definition: DDASRootEvent.h:59
DDASRootEvent & operator=(const DDASRootEvent &obj)
Assignment operator.
Definition: DDASRootEvent.cpp:54
Double_t GetLastTime() const
Get timestamp of last channel datum.
Definition: DDASRootEvent.cpp:112
void AddChannelData(DDASRootHit *channel)
Append channel data to event.
Definition: DDASRootEvent.cpp:85
~DDASRootEvent()
Destructor.
Definition: DDASRootEvent.cpp:74
std::vector< DDASRootHit * > & GetData()
Access internal, extensible array of channel data.
Definition: DDASRootEvent.h:84
Double_t GetTimeWidth() const
Get time difference between first and last channel data.
Definition: DDASRootEvent.cpp:127
Double_t GetFirstTime() const
Get timestamp of first channel datum.
Definition: DDASRootEvent.cpp:96
void Reset()
Clear data vector and reset the event.
Definition: DDASRootEvent.cpp:137
DDASRootEvent()
Default constructor.
Definition: DDASRootEvent.cpp:28
UInt_t GetNHits() const
Return the number of hits in this event.
Definition: DDASRootEvent.h:89
ClassDef(DDASRootEvent, 1)
Encapsulation of a generic DDAS hit with added capabilities for writing to ROOT files.
Definition: DDASRootHit.h:75