|
BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
|
#include <BmnEventHeader.h>
Public Member Functions | |
| BmnEventHeader () | |
| Default constructor. | |
| BmnEventHeader (UInt_t run_id, UInt_t event_id, TTimeStamp event_time, BmnEventType event_type, Bool_t trip, BmnTrigInfo &trig_info) | |
| Constructor. | |
| BmnEventHeader (UInt_t run_id, UInt_t event_id, TTimeStamp event_time, BmnEventType event_type, Bool_t trip, BmnTrigInfo &trig_info, unordered_map< UInt_t, Long64_t > time_shift) | |
| Constructor. | |
| virtual | ~BmnEventHeader () |
| Destructor. | |
| virtual void | Register (Bool_t Persistence=kTRUE) |
| void | Clear () |
| TString | GetHeaderName () |
| Get Event Header branch name. | |
| UInt_t | GetEventId () |
| Get the event ID for this event. | |
| UInt_t | GetPeriodId () |
| Get the period ID for this event. | |
| TTimeStamp | GetEventTimeTS () |
| Get the time for this event. | |
| SysPoint | GetEventTimeTP () |
| TTimeStamp | GetVspTS () |
| Get the time for this event. | |
| BmnEventType | GetEventType () |
| Get the type of this event. | |
| Bool_t | GetTripWord () |
| Get the trip word for this event. | |
| Bool_t | GetSpillStart () |
| Get wether new spill is started. | |
| Double_t | GetStartSignalTime () |
| Double_t | GetStartSignalWidth () |
| BmnTrigInfo & | GetTrigInfo () |
| Get the spill statistics. | |
| UInt_t | GetInputSignalsAR () |
| Get Input signal states, after reduction. | |
| UInt_t | GetInputSignalsBR () |
| Get Input signal states, before reduction. | |
| vector< uint32_t > & | GetInputSignalsVector () |
| Get Input signal vector, each word is a state of input trigger states in a TRC clock time slice. | |
| unordered_map< UInt_t, Long64_t > & | GetTimeShift () |
| void | SetHeaderName (TString header_name) |
| Set Event Header branch name. | |
| void | SetEventId (UInt_t event_id) |
| Set the event ID for this event. | |
| void | SetPeriodId (UInt_t period_id) |
| Set the period ID for this event. | |
| void | SetEventTimeTS (TTimeStamp event_time) |
| Set the time for this event in. | |
| void | SetEventTimeTP (SysPoint event_time) |
| void | SetVspTS (TTimeStamp event_time) |
| Set the time for this event in. | |
| void | SetEventType (BmnEventType event_type) |
| Set the type for this event. | |
| void | SetTripWord (Bool_t flag) |
| void | SetSpillStart (Bool_t flag) |
| void | SetStartSignalInfo (Double_t time, Double_t width) |
| void | SetTrigInfo (BmnTrigInfo &trig_info) |
| void | SetInputSignalsAR (UInt_t v) |
| Set the Input signal states, after reduction. | |
| void | SetInputSignalsBR (UInt_t v) |
| Set the Input signal states, before reduction. | |
| void | SetInputSignalsVector (vector< uint32_t > v) |
| Set the Input signals vector, each word is a state of input trigger states in a TRC clock time slice. | |
| void | SetTimeShift (unordered_map< UInt_t, Long64_t > time_shift) |
Private Attributes | |
| TString | fHeaderName |
| Event Header branch name. | |
| UInt_t | fEventId |
| Event Id. | |
| UInt_t | fPeriodId |
| Period Id. | |
| TTimeStamp | fEventTimeTS |
| Event Time in TTimeStamp. | |
| TTimeStamp | fEventVspTS |
| VSP Trigger Time in TTimeStamp. | |
| BmnEventType | fEventType |
| Event Type (payload = 0 or pedestal = 1). | |
| Bool_t | fTripWord |
| Tripped Gems (1 bit for 1 GEM module). | |
| Bool_t | fSpillStart |
| start of new spill | |
| Double_t | fStartSignalTime |
| T0 information for current event. | |
| Double_t | fStartSignalWidth |
| BmnTrigInfo | fTrigInfo |
| UInt_t | fInputsAR |
| UInt_t | fInputsBR |
| vector< uint32_t > | fInputsVec |
| unordered_map< UInt_t, Long64_t > | fTimeShift |
Definition at line 23 of file BmnEventHeader.h.
| BmnEventHeader::BmnEventHeader | ( | ) |
Definition at line 4 of file BmnEventHeader.cxx.
References fEventId, fEventTimeTS, fEventType, fEventVspTS, fHeaderName, fInputsAR, fInputsBR, fPeriodId, fSpillStart, fStartSignalTime, fStartSignalWidth, fTripWord, and kBMNPAYLOAD.
| BmnEventHeader::BmnEventHeader | ( | UInt_t | run_id, |
| UInt_t | event_id, | ||
| TTimeStamp | event_time, | ||
| BmnEventType | event_type, | ||
| Bool_t | trip, | ||
| BmnTrigInfo & | trig_info ) |
Definition at line 20 of file BmnEventHeader.cxx.
References fEventId, fEventTimeTS, fEventType, fEventVspTS, fHeaderName, fInputsAR, fInputsBR, fSpillStart, fStartSignalTime, fStartSignalWidth, fTrigInfo, and fTripWord.
| BmnEventHeader::BmnEventHeader | ( | UInt_t | run_id, |
| UInt_t | event_id, | ||
| TTimeStamp | event_time, | ||
| BmnEventType | event_type, | ||
| Bool_t | trip, | ||
| BmnTrigInfo & | trig_info, | ||
| unordered_map< UInt_t, Long64_t > | time_shift ) |
Definition at line 44 of file BmnEventHeader.cxx.
References TTimeStamp::AsDouble(), fEventId, fEventTimeTS, fEventType, fEventVspTS, fHeaderName, fInputsAR, fInputsBR, fSpillStart, fStartSignalTime, fStartSignalWidth, fTimeShift, fTrigInfo, and fTripWord.
|
virtual |
Definition at line 71 of file BmnEventHeader.cxx.
| void BmnEventHeader::Clear | ( | ) |
Definition at line 76 of file BmnEventHeader.cxx.
References fEventId, fEventTimeTS, fEventType, fEventVspTS, fHeaderName, fInputsAR, fInputsBR, fInputsVec, fPeriodId, fSpillStart, fStartSignalTime, fStartSignalWidth, fTimeShift, and fTripWord.
Referenced by BmnEmbedding::Embed(), and updateContent().
|
inline |
Definition at line 89 of file BmnEventHeader.h.
References fEventId.
Referenced by BmnLambdaEmbedding::AddInfoToRawFile(), BmnEfficiencyTOF700(), BmnXTIdentificationTOF700(), BmnEmbedding::CloneSelected(), BmnEmbedding::Embed(), BmnHgndRaw2Digit::FillEvent(), BmnTwoParticleDecay::Init(), BmnMonitor::ProcessDigi(), BmnTrackConv::ProcessDST(), BmnDigiMergeTask::ProcessEvents(), BmnMetadataDecoder::ProcessSpillTree(), read_digi_example(), BmnDecoSource::ReadEvent(), readHeaders(), BmnDigiMergeTask::SplitToDetectorsRun6(), BmnDigiMergeTask::SplitToDetectorsRun7(), BmnDigiMergeTask::SplitToDetectorsSrc(), BmnOnlineDecoder::StripView(), BmnMscRaw2Digit::SumEvent7(), ToF400_Digit2Hit_Run7_SRC(), ToF400DigitAnalysis_period5(), updateContent(), and write_raw_info().
|
inline |
Definition at line 96 of file BmnEventHeader.h.
References fEventTimeTS, and BmnFunctionSet::TimeStamp2TP().
Referenced by DrawSpillEvents(), BmnHistStat::FillFromDigi(), BmnMetadataDecoder::ProcessSpillTree(), and BmnConverter::SeparateEventsBySpillsTM().
|
inline |
Definition at line 95 of file BmnEventHeader.h.
References fEventTimeTS.
Referenced by BmnEmbedding::Embed(), BmnHgndRaw2Digit::FillEvent(), BmnTrackConv::ProcessDST(), read_digi_example(), BmnDecoSource::ReadEvent(), BmnMscRaw2Digit::SumEvent7(), updateContent(), and write_raw_info().
|
inline |
Definition at line 102 of file BmnEventHeader.h.
References fEventType.
Referenced by BmnLambdaEmbedding::AddInfoToRawFile(), BmnEmbedding::Embed(), BmnHistStat::FillFromDigi(), BmnMonitor::ProcessDigi(), BmnOnlineDecoder::ProcessStream(), BmnDecoSource::ReadEvent(), readScalers(), BmnDigiMergeTask::SplitToDetectorsRun6(), and updateContent().
|
inline |
Definition at line 86 of file BmnEventHeader.h.
References fHeaderName.
|
inline |
Definition at line 127 of file BmnEventHeader.h.
References fInputsAR.
Referenced by BmnMetadataTest(), CalcEff(), BmnHistFHCal::FillFromDigi(), BmnHistHgnd::FillFromDigi(), BmnHistHodo::FillFromDigi(), BmnHistNdet::FillFromDigi(), BmnHistScWall::FillFromDigi(), BmnHistStat::FillFromDigi(), BmnHistTrigger::FillFromDigi(), hodo_profile(), BmnMetadataDecoder::ProcessSpillTree(), BmnDecoSource::ReadEvent(), and readScalers().
|
inline |
Definition at line 130 of file BmnEventHeader.h.
References fInputsBR.
Referenced by BmnDecoSource::ReadEvent(), and readScalers().
|
inline |
Definition at line 133 of file BmnEventHeader.h.
References fInputsVec.
|
inline |
Definition at line 92 of file BmnEventHeader.h.
References fPeriodId.
Referenced by BmnEmbedding::Embed(), BmnMQSource::Init(), BmnMscRaw2Digit::SumEvent7(), updateContent(), and write_raw_info().
|
inline |
Definition at line 108 of file BmnEventHeader.h.
References fSpillStart.
Referenced by BmnHistStat::FillFromDigi().
|
inline |
Definition at line 110 of file BmnEventHeader.h.
References fStartSignalTime.
Referenced by BmnHgndRaw2Digit::FillEvent(), and BmnDecoSource::ReadEvent().
|
inline |
Definition at line 111 of file BmnEventHeader.h.
References fStartSignalWidth.
Referenced by BmnDecoSource::ReadEvent().
Definition at line 135 of file BmnEventHeader.h.
References fTimeShift.
Referenced by BmnDecoSource::ReadEvent().
|
inline |
Definition at line 114 of file BmnEventHeader.h.
References fTrigInfo.
Referenced by BmnDecoSource::ReadEvent(), readHeaders(), and BmnMscRaw2Digit::SumEvent7().
|
inline |
Definition at line 105 of file BmnEventHeader.h.
References fTripWord.
|
inline |
Definition at line 99 of file BmnEventHeader.h.
References fEventVspTS.
Referenced by BmnVspRaw2Digit::FillEvent().
Definition at line 78 of file BmnEventHeader.h.
|
inline |
| event_id | : unique event id |
Definition at line 143 of file BmnEventHeader.h.
References fEventId.
Referenced by BmnLambdaEmbedding::AddInfoToRawFile(), BmnEmbedding::Embed(), and updateContent().
|
inline |
Definition at line 152 of file BmnEventHeader.h.
References fEventTimeTS, and BmnFunctionSet::TimePoint2TS().
|
inline |
Definition at line 151 of file BmnEventHeader.h.
References fEventTimeTS.
Referenced by BmnEmbedding::Embed(), and updateContent().
|
inline |
| event_type | : type (0 or 1) |
Definition at line 160 of file BmnEventHeader.h.
References fEventType.
Referenced by BmnLambdaEmbedding::AddInfoToRawFile(), BmnEmbedding::Embed(), and updateContent().
|
inline |
Definition at line 138 of file BmnEventHeader.h.
References fHeaderName.
|
inline |
Definition at line 178 of file BmnEventHeader.h.
|
inline |
Definition at line 181 of file BmnEventHeader.h.
|
inline |
Definition at line 184 of file BmnEventHeader.h.
References fInputsVec, and v.
|
inline |
| period_id | : period id |
Definition at line 148 of file BmnEventHeader.h.
References fPeriodId.
Referenced by BmnEmbedding::Embed(), and updateContent().
|
inline |
Definition at line 164 of file BmnEventHeader.h.
References fSpillStart.
Definition at line 166 of file BmnEventHeader.h.
References fStartSignalTime, and fStartSignalWidth.
Definition at line 186 of file BmnEventHeader.h.
References fTimeShift.
|
inline |
Definition at line 172 of file BmnEventHeader.h.
References fTrigInfo.
|
inline |
Definition at line 162 of file BmnEventHeader.h.
References fTripWord.
|
inline |
Definition at line 155 of file BmnEventHeader.h.
References fEventVspTS.
Referenced by BmnVspRaw2Digit::FillEvent().
|
private |
Definition at line 30 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), BmnEventHeader(), BmnEventHeader(), Clear(), GetEventId(), and SetEventId().
|
private |
Definition at line 34 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), BmnEventHeader(), BmnEventHeader(), Clear(), GetEventTimeTP(), GetEventTimeTS(), SetEventTimeTP(), and SetEventTimeTS().
|
private |
Definition at line 38 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), BmnEventHeader(), BmnEventHeader(), Clear(), GetEventType(), and SetEventType().
|
private |
Definition at line 36 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), BmnEventHeader(), BmnEventHeader(), Clear(), GetVspTS(), and SetVspTS().
|
private |
Definition at line 27 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), BmnEventHeader(), BmnEventHeader(), Clear(), GetHeaderName(), and SetHeaderName().
|
private |
Definition at line 48 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), BmnEventHeader(), BmnEventHeader(), Clear(), GetInputSignalsAR(), and SetInputSignalsAR().
|
private |
Definition at line 49 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), BmnEventHeader(), BmnEventHeader(), Clear(), GetInputSignalsBR(), and SetInputSignalsBR().
|
private |
Definition at line 50 of file BmnEventHeader.h.
Referenced by Clear(), GetInputSignalsVector(), and SetInputSignalsVector().
|
private |
Definition at line 32 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), Clear(), GetPeriodId(), and SetPeriodId().
|
private |
Definition at line 42 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), BmnEventHeader(), BmnEventHeader(), Clear(), GetSpillStart(), and SetSpillStart().
|
private |
Definition at line 44 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), BmnEventHeader(), BmnEventHeader(), Clear(), GetStartSignalTime(), and SetStartSignalInfo().
|
private |
Definition at line 45 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), BmnEventHeader(), BmnEventHeader(), Clear(), GetStartSignalWidth(), and SetStartSignalInfo().
Definition at line 52 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), Clear(), GetTimeShift(), and SetTimeShift().
|
private |
Definition at line 46 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), BmnEventHeader(), GetTrigInfo(), and SetTrigInfo().
|
private |
Definition at line 40 of file BmnEventHeader.h.
Referenced by BmnEventHeader(), BmnEventHeader(), BmnEventHeader(), Clear(), GetTripWord(), and SetTripWord().