27using std::setprecision;
29using std::stringstream;
75 if (time < fStartTime || time >
GetEndTime()) {
76 LOG(error) <<
"Trying to add data at t = " << time <<
" ns to "
108 default: value = -1.;
break;
131 if (time < fStartTime || time >
GetEndTime()) {
132 LOG(error) <<
"Trying to add data at t = " << time <<
" ns to "
161 for (int32_t iLink = 0; iLink < match.
GetNofLinks(); iLink++) {
210 ss <<
"Time slice [";
213 case kFlexible: ss <<
"flexible], data: ";
break;
214 case kEvent: ss <<
"event], data: ";
break;
215 default: ss <<
"], data: ";
break;
ClassImp(CbmConverterManager)
const CbmLink & GetLink(int32_t i) const
int32_t GetNofLinks() const
void AddLink(const CbmLink &newLink)
static TString GetModuleNameCaps(ECbmModuleId moduleId)
Bookkeeping of time-slice content.
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
bool fIsEmpty
Flag for containing no 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.
EType fType
Time-slice type.
int32_t GetNofData(ECbmModuleId detector) const
Get size of raw data container for given detector.