Go to the documentation of this file.
12 #include <FairLogger.h>
24 using std::setprecision;
26 using std::stringstream;
67 if (time < fStartTime || time >
GetEndTime()) {
68 LOG(error) <<
"Trying to add data at t = " << time <<
" ns to "
100 default: value = -1.;
break;
121 if (time < fStartTime || time >
GetEndTime()) {
122 LOG(error) <<
"Trying to add data at t = " << time <<
" ns to "
153 for (Int_t iLink = 0; iLink < match.
GetNofLinks(); iLink++) {
198 ss <<
"Time slice [";
204 case kFlexible: ss <<
"flexible], data: ";
break;
205 case kEvent: ss <<
"event], data: ";
break;
206 default: ss <<
"], data: ";
break;
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.
const CbmLink & GetLink(Int_t i) const
CbmTimeSlice(EType type=kFlexible)
Constructor without time interval.
Int_t GetNofLinks() const
Bool_t RegisterData(ECbmModuleId system, Double_t time)
Register data to time-slice header.
Double_t GetEndTime() const
static TString GetModuleNameCaps(ECbmModuleId moduleId)
CbmMatch fMatch
Link time slice to events.
std::map< ECbmModuleId, Int_t > fNofData
SystemId -> Number of digis.
void AddLink(const CbmLink &newLink)
EType
Time-slice type enumerator.
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
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.
Bool_t fIsEmpty
Flag for containing no data.
Double_t fLength
Length of time-slice [ns].
Float_t GetWeight() const
@ kEvent
Flexible time slice; no fixed time limits.
Double_t fStartTime
Start time [ns].
@ kFlexible
Regular time slice with fixed-size time interval.