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