Go to the documentation of this file.
7 #define CBMTIMESLICE_H 1
10 #include <RtypesCore.h>
20 #include <boost/serialization/access.hpp>
21 #include <boost/serialization/vector.hpp>
197 void Reset(Double_t start, Double_t length);
210 template<
class Archive>
void ResetCounters()
Reset the time slice bookkeeping.
Int_t GetNofData(ECbmModuleId detector) const
Get size of raw data container for given detector.
void Reset()
Reset the time slice.
Double_t fTimeDataFirst
Time of first data object.
CbmTimeSlice(EType type=kFlexible)
Constructor without time interval.
friend class boost::serialization::access
Bool_t IsFlexible() const
Bool_t RegisterData(ECbmModuleId system, Double_t time)
Register data to time-slice header.
Double_t GetStartTime() const
const CbmMatch & GetMatch() const
void serialize(Archive &ar, const unsigned int)
Double_t GetEndTime() const
void SetStartTime(Double_t time)
Set start time.
CbmMatch fMatch
Link time slice to events.
std::map< ECbmModuleId, Int_t > fNofData
SystemId -> Number of digis.
Double_t GetLength() const
EType
Time-slice type enumerator.
void AddData(ECbmModuleId detector)
Add data to time-slice.
std::string ToString() const
Bookkeeping of time-slice content.
EType fType
Time-slice type.
Double_t fTimeDataLast
Time of last data object.
Double_t GetTimeDataLast() const
Time stamp of last data.
Bool_t fIsEmpty
Flag for containing no data.
Double_t fLength
Length of time-slice [ns].
@ kEvent
Flexible time slice; no fixed time limits.
Double_t GetTimeDataFirst() const
Time stamp of first data.
Double_t fStartTime
Start time [ns].
@ kFlexible
Regular time slice with fixed-size time interval.