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