BmnRoot
Loading...
Searching...
No Matches
BmnEventHeader Class Reference

#include <BmnEventHeader.h>

Inheritance diagram for BmnEventHeader:
[legend]
Collaboration diagram for BmnEventHeader:
[legend]

Public Member Functions

 BmnEventHeader ()
 
 BmnEventHeader (UInt_t run_id, UInt_t event_id, TTimeStamp event_time, BmnEventType event_type, Bool_t trip, BmnTrigInfo &trig_info)
 
 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)
 
virtual ~BmnEventHeader ()
 
virtual void Register (Bool_t Persistence=kTRUE)
 
void Clear ()
 
TString GetHeaderName ()
 
UInt_t GetEventId ()
 
UInt_t GetPeriodId ()
 
TTimeStamp GetEventTimeTS ()
 
SysPoint GetEventTimeTP ()
 
TTimeStamp GetVspTS ()
 
BmnEventType GetEventType ()
 
Bool_t GetTripWord ()
 
Bool_t GetSpillStart ()
 
Double_t GetStartSignalTime ()
 
Double_t GetStartSignalWidth ()
 
BmnTrigInfoGetTrigInfo ()
 
UInt_t GetInputSignalsAR ()
 
UInt_t GetInputSignalsBR ()
 
vector< uint32_t > & GetInputSignalsVector ()
 
unordered_map< UInt_t, Long64_t > & GetTimeShift ()
 
void SetHeaderName (TString header_name)
 
void SetEventId (UInt_t event_id)
 
void SetPeriodId (UInt_t period_id)
 
void SetEventTimeTS (TTimeStamp event_time)
 
void SetEventTimeTP (SysPoint event_time)
 
void SetVspTS (TTimeStamp event_time)
 
void SetEventType (BmnEventType event_type)
 
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)
 
void SetInputSignalsBR (UInt_t v)
 
void SetInputSignalsVector (vector< uint32_t > v)
 
void SetSpillStartTS (TTimeStamp ts)
 
TTimeStamp GetSpillStartTS ()
 
Int_t & GetSpillId ()
 
void SetSpillId (UInt_t sid)
 
void SetTimeShift (unordered_map< UInt_t, Long64_t > time_shift)
 
 BmnEventHeader ()
 
 BmnEventHeader (UInt_t run_id, UInt_t event_id, TTimeStamp event_time, BmnEventType event_type, Bool_t trip, BmnTrigInfo &trig_info)
 
 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)
 
virtual ~BmnEventHeader ()
 
virtual void Register (Bool_t Persistence=kTRUE)
 
void Clear ()
 
TString GetHeaderName ()
 
UInt_t GetEventId ()
 
UInt_t GetPeriodId ()
 
TTimeStamp GetEventTimeTS ()
 
SysPoint GetEventTimeTP ()
 
TTimeStamp GetVspTS ()
 
BmnEventType GetEventType ()
 
Bool_t GetTripWord ()
 
Bool_t GetSpillStart ()
 
Double_t GetStartSignalTime ()
 
Double_t GetStartSignalWidth ()
 
BmnTrigInfoGetTrigInfo ()
 
UInt_t GetInputSignalsAR ()
 
UInt_t GetInputSignalsBR ()
 
vector< uint32_t > & GetInputSignalsVector ()
 
unordered_map< UInt_t, Long64_t > & GetTimeShift ()
 
void SetHeaderName (TString header_name)
 
void SetEventId (UInt_t event_id)
 
void SetPeriodId (UInt_t period_id)
 
void SetEventTimeTS (TTimeStamp event_time)
 
void SetEventTimeTP (SysPoint event_time)
 
void SetVspTS (TTimeStamp event_time)
 
void SetEventType (BmnEventType event_type)
 
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)
 
void SetInputSignalsBR (UInt_t v)
 
void SetInputSignalsVector (vector< uint32_t > v)
 
void SetSpillStartTS (TTimeStamp ts)
 
TTimeStamp GetSpillStartTS ()
 
Int_t & GetSpillId ()
 
void SetSpillId (UInt_t sid)
 
void SetTimeShift (unordered_map< UInt_t, Long64_t > time_shift)
 

Detailed Description

Definition at line 23 of file BmnEventHeader.h.

Constructor & Destructor Documentation

◆ BmnEventHeader() [1/6]

BmnEventHeader::BmnEventHeader ( )

Default constructor

Definition at line 4 of file BmnEventHeader.cxx.

◆ BmnEventHeader() [2/6]

BmnEventHeader::BmnEventHeader ( UInt_t  run_id,
UInt_t  event_id,
TTimeStamp  event_time,
BmnEventType  event_type,
Bool_t  trip,
BmnTrigInfo trig_info 
)

Constructor

Definition at line 22 of file BmnEventHeader.cxx.

◆ BmnEventHeader() [3/6]

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 
)

Constructor

Definition at line 48 of file BmnEventHeader.cxx.

◆ ~BmnEventHeader() [1/2]

BmnEventHeader::~BmnEventHeader ( )
virtual

Destructor

Definition at line 77 of file BmnEventHeader.cxx.

◆ BmnEventHeader() [4/6]

BmnEventHeader::BmnEventHeader ( )

Default constructor

◆ BmnEventHeader() [5/6]

BmnEventHeader::BmnEventHeader ( UInt_t  run_id,
UInt_t  event_id,
TTimeStamp  event_time,
BmnEventType  event_type,
Bool_t  trip,
BmnTrigInfo trig_info 
)

Constructor

◆ BmnEventHeader() [6/6]

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 
)

Constructor

◆ ~BmnEventHeader() [2/2]

virtual BmnEventHeader::~BmnEventHeader ( )
virtual

Destructor

Member Function Documentation

◆ Clear() [1/2]

◆ Clear() [2/2]

void BmnEventHeader::Clear ( )

◆ GetEventId() [1/2]

◆ GetEventId() [2/2]

UInt_t BmnEventHeader::GetEventId ( )
inline

Get the event ID for this event

Definition at line 91 of file BmnEventHeader.h.

◆ GetEventTimeTP() [1/2]

SysPoint BmnEventHeader::GetEventTimeTP ( )
inline

◆ GetEventTimeTP() [2/2]

SysPoint BmnEventHeader::GetEventTimeTP ( )
inline

Definition at line 98 of file BmnEventHeader.h.

References BmnFunctionSet::TimeStamp2TP().

◆ GetEventTimeTS() [1/2]

TTimeStamp BmnEventHeader::GetEventTimeTS ( )
inline

◆ GetEventTimeTS() [2/2]

TTimeStamp BmnEventHeader::GetEventTimeTS ( )
inline

Get the time for this event

Definition at line 97 of file BmnEventHeader.h.

◆ GetEventType() [1/2]

BmnEventType BmnEventHeader::GetEventType ( )
inline

◆ GetEventType() [2/2]

BmnEventType BmnEventHeader::GetEventType ( )
inline

Get the type of this event

Definition at line 104 of file BmnEventHeader.h.

◆ GetHeaderName() [1/2]

TString BmnEventHeader::GetHeaderName ( )
inline

Get Event Header branch name

Definition at line 88 of file BmnEventHeader.h.

◆ GetHeaderName() [2/2]

TString BmnEventHeader::GetHeaderName ( )
inline

Get Event Header branch name

Definition at line 88 of file BmnEventHeader.h.

◆ GetInputSignalsAR() [1/2]

◆ GetInputSignalsAR() [2/2]

UInt_t BmnEventHeader::GetInputSignalsAR ( )
inline

Get Input signal states, after reduction

Definition at line 129 of file BmnEventHeader.h.

◆ GetInputSignalsBR() [1/2]

UInt_t BmnEventHeader::GetInputSignalsBR ( )
inline

Get Input signal states, before reduction

Definition at line 132 of file BmnEventHeader.h.

Referenced by BmnDecoder::DecodeDataToDigiIterate(), BmnDecoder::DecodeOffline(), and BmnFillTrigInfoDst::Exec().

◆ GetInputSignalsBR() [2/2]

UInt_t BmnEventHeader::GetInputSignalsBR ( )
inline

Get Input signal states, before reduction

Definition at line 132 of file BmnEventHeader.h.

◆ GetInputSignalsVector() [1/2]

vector< uint32_t > & BmnEventHeader::GetInputSignalsVector ( )
inline

Get Input signal vector, each word is a state of input trigger states in a TRC clock time slice

Definition at line 135 of file BmnEventHeader.h.

Referenced by BmnDecoder::DecodeDataToDigiIterate(), BmnDecoder::DecodeOffline(), and BmnFillTrigInfoDst::Exec().

◆ GetInputSignalsVector() [2/2]

vector< uint32_t > & BmnEventHeader::GetInputSignalsVector ( )
inline

Get Input signal vector, each word is a state of input trigger states in a TRC clock time slice

Definition at line 135 of file BmnEventHeader.h.

◆ GetPeriodId() [1/2]

UInt_t BmnEventHeader::GetPeriodId ( )
inline

◆ GetPeriodId() [2/2]

UInt_t BmnEventHeader::GetPeriodId ( )
inline

Get the period ID for this event

Definition at line 94 of file BmnEventHeader.h.

◆ GetSpillId() [1/2]

Int_t & BmnEventHeader::GetSpillId ( )
inline

◆ GetSpillId() [2/2]

Int_t & BmnEventHeader::GetSpillId ( )
inline

Definition at line 190 of file BmnEventHeader.h.

◆ GetSpillStart() [1/2]

Bool_t BmnEventHeader::GetSpillStart ( )
inline

Get wether new spill is started

Definition at line 110 of file BmnEventHeader.h.

Referenced by BmnDecoder::DecodeDataToDigiIterate(), and BmnDecoder::DecodeOffline().

◆ GetSpillStart() [2/2]

Bool_t BmnEventHeader::GetSpillStart ( )
inline

Get wether new spill is started

Definition at line 110 of file BmnEventHeader.h.

◆ GetSpillStartTS() [1/2]

TTimeStamp BmnEventHeader::GetSpillStartTS ( )
inline

◆ GetSpillStartTS() [2/2]

TTimeStamp BmnEventHeader::GetSpillStartTS ( )
inline

Definition at line 189 of file BmnEventHeader.h.

◆ GetStartSignalTime() [1/2]

Double_t BmnEventHeader::GetStartSignalTime ( )
inline

Definition at line 112 of file BmnEventHeader.h.

Referenced by BmnHgndRaw2Digit::fillEvent().

◆ GetStartSignalTime() [2/2]

Double_t BmnEventHeader::GetStartSignalTime ( )
inline

Definition at line 112 of file BmnEventHeader.h.

◆ GetStartSignalWidth() [1/2]

Double_t BmnEventHeader::GetStartSignalWidth ( )
inline

Definition at line 113 of file BmnEventHeader.h.

◆ GetStartSignalWidth() [2/2]

Double_t BmnEventHeader::GetStartSignalWidth ( )
inline

Definition at line 113 of file BmnEventHeader.h.

◆ GetTimeShift() [1/2]

unordered_map< UInt_t, Long64_t > & BmnEventHeader::GetTimeShift ( )
inline

Definition at line 137 of file BmnEventHeader.h.

◆ GetTimeShift() [2/2]

unordered_map< UInt_t, Long64_t > & BmnEventHeader::GetTimeShift ( )
inline

Definition at line 137 of file BmnEventHeader.h.

◆ GetTrigInfo() [1/2]

BmnTrigInfo & BmnEventHeader::GetTrigInfo ( )
inline

Get the spill statistics

Definition at line 116 of file BmnEventHeader.h.

Referenced by BmnDecoder::DecodeDataToDigiIterate(), BmnDecoder::DecodeOffline(), and BmnMscRaw2Digit::SumEvent7().

◆ GetTrigInfo() [2/2]

BmnTrigInfo & BmnEventHeader::GetTrigInfo ( )
inline

Get the spill statistics

Definition at line 116 of file BmnEventHeader.h.

◆ GetTripWord() [1/2]

Bool_t BmnEventHeader::GetTripWord ( )
inline

Get the trip word for this event

Definition at line 107 of file BmnEventHeader.h.

◆ GetTripWord() [2/2]

Bool_t BmnEventHeader::GetTripWord ( )
inline

Get the trip word for this event

Definition at line 107 of file BmnEventHeader.h.

◆ GetVspTS() [1/2]

TTimeStamp BmnEventHeader::GetVspTS ( )
inline

Get the time for this event

Definition at line 101 of file BmnEventHeader.h.

Referenced by BmnVspRaw2Digit::FillEvent().

◆ GetVspTS() [2/2]

TTimeStamp BmnEventHeader::GetVspTS ( )
inline

Get the time for this event

Definition at line 101 of file BmnEventHeader.h.

◆ Register() [1/2]

virtual void BmnEventHeader::Register ( Bool_t  Persistence = kTRUE)
inlinevirtual

Definition at line 80 of file BmnEventHeader.h.

◆ Register() [2/2]

virtual void BmnEventHeader::Register ( Bool_t  Persistence = kTRUE)
inlinevirtual

Definition at line 80 of file BmnEventHeader.h.

◆ SetEventId() [1/2]

void BmnEventHeader::SetEventId ( UInt_t  event_id)
inline

Set the event ID for this event

Parameters
event_id: unique event id

Definition at line 145 of file BmnEventHeader.h.

Referenced by BmnDecoder::DecodeDataToDigiIterate(), BmnDecoder::DecodeOffline(), BmnEmbedding::Embed(), BmnDecoSource::ReadEvent(), and BmnProfilometerSource::ReadEvent().

◆ SetEventId() [2/2]

void BmnEventHeader::SetEventId ( UInt_t  event_id)
inline

Set the event ID for this event

Parameters
event_id: unique event id

Definition at line 145 of file BmnEventHeader.h.

◆ SetEventTimeTP() [1/2]

void BmnEventHeader::SetEventTimeTP ( SysPoint  event_time)
inline

Definition at line 154 of file BmnEventHeader.h.

References BmnFunctionSet::TimePoint2TS().

◆ SetEventTimeTP() [2/2]

void BmnEventHeader::SetEventTimeTP ( SysPoint  event_time)
inline

Definition at line 154 of file BmnEventHeader.h.

References BmnFunctionSet::TimePoint2TS().

◆ SetEventTimeTS() [1/2]

void BmnEventHeader::SetEventTimeTS ( TTimeStamp  event_time)
inline

Set the time for this event in

Definition at line 153 of file BmnEventHeader.h.

Referenced by BmnDecoder::DecodeDataToDigiIterate(), BmnDecoder::DecodeOffline(), BmnEmbedding::Embed(), and BmnDecoSource::ReadEvent().

◆ SetEventTimeTS() [2/2]

void BmnEventHeader::SetEventTimeTS ( TTimeStamp  event_time)
inline

Set the time for this event in

Definition at line 153 of file BmnEventHeader.h.

◆ SetEventType() [1/2]

void BmnEventHeader::SetEventType ( BmnEventType  event_type)
inline

◆ SetEventType() [2/2]

void BmnEventHeader::SetEventType ( BmnEventType  event_type)
inline

Set the type for this event

Parameters
type: type (0 or 1)

Definition at line 162 of file BmnEventHeader.h.

◆ SetHeaderName() [1/2]

void BmnEventHeader::SetHeaderName ( TString  header_name)
inline

Set Event Header branch name

Definition at line 140 of file BmnEventHeader.h.

◆ SetHeaderName() [2/2]

void BmnEventHeader::SetHeaderName ( TString  header_name)
inline

Set Event Header branch name

Definition at line 140 of file BmnEventHeader.h.

◆ SetInputSignalsAR() [1/2]

void BmnEventHeader::SetInputSignalsAR ( UInt_t  v)
inline

Set the Input signal states, after reduction

Definition at line 180 of file BmnEventHeader.h.

References v.

Referenced by BmnDecoder::DecodeDataToDigiIterate(), BmnDecoder::DecodeOffline(), and BmnDecoSource::ReadEvent().

◆ SetInputSignalsAR() [2/2]

void BmnEventHeader::SetInputSignalsAR ( UInt_t  v)
inline

Set the Input signal states, after reduction

Definition at line 180 of file BmnEventHeader.h.

References v.

◆ SetInputSignalsBR() [1/2]

void BmnEventHeader::SetInputSignalsBR ( UInt_t  v)
inline

Set the Input signal states, before reduction

Definition at line 183 of file BmnEventHeader.h.

References v.

Referenced by BmnDecoder::DecodeDataToDigiIterate(), BmnDecoder::DecodeOffline(), and BmnDecoSource::ReadEvent().

◆ SetInputSignalsBR() [2/2]

void BmnEventHeader::SetInputSignalsBR ( UInt_t  v)
inline

Set the Input signal states, before reduction

Definition at line 183 of file BmnEventHeader.h.

References v.

◆ SetInputSignalsVector() [1/2]

void BmnEventHeader::SetInputSignalsVector ( vector< uint32_t >  v)
inline

Set the Input signals vector, each word is a state of input trigger states in a TRC clock time slice

Definition at line 186 of file BmnEventHeader.h.

References v.

Referenced by BmnDecoder::DecodeDataToDigiIterate(), and BmnDecoder::DecodeOffline().

◆ SetInputSignalsVector() [2/2]

void BmnEventHeader::SetInputSignalsVector ( vector< uint32_t >  v)
inline

Set the Input signals vector, each word is a state of input trigger states in a TRC clock time slice

Definition at line 186 of file BmnEventHeader.h.

References v.

◆ SetPeriodId() [1/2]

void BmnEventHeader::SetPeriodId ( UInt_t  period_id)
inline

Set the period ID for this event

Parameters
period_id: period id

Definition at line 150 of file BmnEventHeader.h.

Referenced by BmnDecoder::DecodeDataToDigiIterate(), BmnDecoder::DecodeOffline(), and BmnEmbedding::Embed().

◆ SetPeriodId() [2/2]

void BmnEventHeader::SetPeriodId ( UInt_t  period_id)
inline

Set the period ID for this event

Parameters
period_id: period id

Definition at line 150 of file BmnEventHeader.h.

◆ SetSpillId() [1/2]

void BmnEventHeader::SetSpillId ( UInt_t  sid)
inline

◆ SetSpillId() [2/2]

void BmnEventHeader::SetSpillId ( UInt_t  sid)
inline

Definition at line 191 of file BmnEventHeader.h.

◆ SetSpillStart() [1/2]

void BmnEventHeader::SetSpillStart ( Bool_t  flag)
inline

◆ SetSpillStart() [2/2]

void BmnEventHeader::SetSpillStart ( Bool_t  flag)
inline

Definition at line 166 of file BmnEventHeader.h.

◆ SetSpillStartTS() [1/2]

void BmnEventHeader::SetSpillStartTS ( TTimeStamp  ts)
inline

◆ SetSpillStartTS() [2/2]

void BmnEventHeader::SetSpillStartTS ( TTimeStamp  ts)
inline

Definition at line 188 of file BmnEventHeader.h.

◆ SetStartSignalInfo() [1/2]

void BmnEventHeader::SetStartSignalInfo ( Double_t  time,
Double_t  width 
)
inline

◆ SetStartSignalInfo() [2/2]

void BmnEventHeader::SetStartSignalInfo ( Double_t  time,
Double_t  width 
)
inline

Definition at line 168 of file BmnEventHeader.h.

◆ SetTimeShift() [1/2]

void BmnEventHeader::SetTimeShift ( unordered_map< UInt_t, Long64_t >  time_shift)
inline

◆ SetTimeShift() [2/2]

void BmnEventHeader::SetTimeShift ( unordered_map< UInt_t, Long64_t >  time_shift)
inline

Definition at line 193 of file BmnEventHeader.h.

◆ SetTrigInfo() [1/2]

void BmnEventHeader::SetTrigInfo ( BmnTrigInfo trig_info)
inline

◆ SetTrigInfo() [2/2]

void BmnEventHeader::SetTrigInfo ( BmnTrigInfo trig_info)
inline

Definition at line 174 of file BmnEventHeader.h.

References BmnTrigInfo::SetFrom().

◆ SetTripWord() [1/2]

void BmnEventHeader::SetTripWord ( Bool_t  flag)
inline

◆ SetTripWord() [2/2]

void BmnEventHeader::SetTripWord ( Bool_t  flag)
inline

Definition at line 164 of file BmnEventHeader.h.

◆ SetVspTS() [1/2]

void BmnEventHeader::SetVspTS ( TTimeStamp  event_time)
inline

Set the time for this event in

Definition at line 157 of file BmnEventHeader.h.

Referenced by BmnVspRaw2Digit::FillEvent().

◆ SetVspTS() [2/2]

void BmnEventHeader::SetVspTS ( TTimeStamp  event_time)
inline

Set the time for this event in

Definition at line 157 of file BmnEventHeader.h.


The documentation for this class was generated from the following files: