#include <HcalTBTriggerData.h>
Public Member Functions | |
uint32_t | algoBits0 () const |
uint32_t | algoBits1 () const |
uint32_t | algoBits2 () const |
uint32_t | algoBits3 () const |
uint16_t | bunchNumber () const |
Returns the bunch number of this trigger. More... | |
uint16_t | eventNumber () const |
Returns the event number of this trigger. More... | |
uint32_t | flagsDaqTtype () const |
uint32_t | gps1234 () const |
uint32_t | gps5678 () const |
HcalTBTriggerData () | |
uint32_t | orbitNumber () const |
Returns the orbit number of this trigger. More... | |
uint32_t | runNumber () const |
Returns the current run number. More... | |
const std::string & | runNumberSequenceId () const |
void | setExtendedData (uint32_t triggerWord, uint32_t triggerTime_usec, uint32_t triggerTime_base, uint32_t spillNumber, uint32_t runNumber, const char *runNumberSequenceId) |
void | setStandardData (uint32_t orbitNumber, uint32_t eventNumber, uint16_t bunchNumber, uint32_t flags_daq_ttype, uint32_t algo_bits_3, uint32_t algo_bits_2, uint32_t algo_bits_1, uint32_t algo_bits_0, uint32_t tech_bits, uint32_t gps_1234, uint32_t gps_5678) |
uint32_t | spillNumber () const |
Returns the spill number of this trigger. More... | |
uint32_t | techBits () const |
uint32_t | triggerTimeBase () const |
Returns the base time of the run (in seconds, from a time() call) More... | |
uint32_t | triggerTimeUsec () const |
Returns the relative time of this trigger in microseconds. More... | |
uint32_t | triggerWord () const |
Returns the entire packed trigger word. More... | |
bool | wasBeamTrigger () const |
returns true if this trigger came from beam data More... | |
bool | wasFakeTrigger () const |
returns true if this trigger was fake (from a non-H2 manager) More... | |
bool | wasInSpill () const |
returns true if the "spill" bit was set More... | |
bool | wasInSpillPedestalTrigger () const |
returns true if this was an in-spill pedestal trigger More... | |
bool | wasLaserTrigger () const |
returns true if this was a laser trigger More... | |
bool | wasLEDTrigger () const |
returns true if this was a LED trigger More... | |
bool | wasOutSpillPedestalTrigger () const |
returns true if this was an out-of-spill pedestal trigger More... | |
bool | wasSpillIgnorantPedestalTrigger () const |
returns true if this trigger was a calibration trigger More... | |
Static Public Attributes | |
static const uint32_t | bit_BeamTrigger = 1 |
static const uint32_t | bit_FakeTrigger = 15 |
static const uint32_t | bit_InSpill = 0x10 |
static const uint32_t | bit_InSpillPedestalTrigger = 2 |
static const uint32_t | bit_LaserTrigger = 4 |
static const uint32_t | bit_LEDTrigger = 6 |
static const uint32_t | bit_OutSpillPedestalTrigger = 3 |
static const uint32_t | bit_spillIgnorantPedestalTrigger = 5 |
Private Attributes | |
uint32_t | algoBits0_ |
uint32_t | algoBits1_ |
uint32_t | algoBits2_ |
uint32_t | algoBits3_ |
<extended type="31:28,extended" size="27:24,zeros=23:7,daq#=6:4,type=3:0"> More... | |
uint16_t | bunchNumber_ |
uint32_t | eventNumber_ |
uint32_t | flagsDaqTtype_ |
uint32_t | gps1234_ |
uint32_t | gps5678_ |
uint32_t | orbitNumber_ |
uint32_t | runNumber_ |
std::string | runNumberSequenceId_ |
uint32_t | spillNumber_ |
uint32_t | techBits_ |
uint32_t | triggerTimeBase_ |
uint32_t | triggerTimeUsec_ |
uint32_t | triggerWord_ |
This class contains trigger information (mainly trigger type and time), and run information such as run, event, spill, bunch and orbit numbers.
Definition at line 18 of file HcalTBTriggerData.h.
HcalTBTriggerData::HcalTBTriggerData | ( | ) |
Definition at line 19 of file HcalTBTriggerData.cc.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 43 of file HcalTBTriggerData.h.
References algoBits3_.
|
inline |
Returns the bunch number of this trigger.
Definition at line 39 of file HcalTBTriggerData.h.
References bunchNumber_.
Referenced by gps5678(), operator<<(), and setStandardData().
|
inline |
Returns the event number of this trigger.
Definition at line 41 of file HcalTBTriggerData.h.
References eventNumber_.
Referenced by ZdcTBAnalysis::analyze(), gps5678(), and operator<<().
|
inline |
|
inline |
|
inline |
Definition at line 49 of file HcalTBTriggerData.h.
References bunchNumber(), eventNumber(), gps5678_, orbitNumber(), runNumber(), runNumberSequenceId(), setExtendedData(), setStandardData(), spillNumber(), and triggerWord().
|
inline |
Returns the orbit number of this trigger.
Definition at line 37 of file HcalTBTriggerData.h.
References orbitNumber_.
Referenced by gps5678(), operator<<(), and setStandardData().
|
inline |
Returns the current run number.
Definition at line 27 of file HcalTBTriggerData.h.
References runNumber_.
Referenced by ZdcTBAnalysis::analyze(), gps5678(), operator<<(), and setExtendedData().
|
inline |
Definition at line 24 of file HcalTBTriggerData.h.
References runNumberSequenceId_.
Referenced by gps5678(), operator<<(), and setExtendedData().
void HcalTBTriggerData::setExtendedData | ( | uint32_t | triggerWord, |
uint32_t | triggerTime_usec, | ||
uint32_t | triggerTime_base, | ||
uint32_t | spillNumber, | ||
uint32_t | runNumber, | ||
const char * | runNumberSequenceId | ||
) |
Definition at line 65 of file HcalTBTriggerData.cc.
References runNumber(), runNumber_, runNumberSequenceId(), runNumberSequenceId_, spillNumber(), spillNumber_, triggerTimeBase_, triggerTimeUsec_, triggerWord(), and triggerWord_.
Referenced by gps5678(), and hcaltb::HcalTBTriggerDataUnpacker::unpack().
void HcalTBTriggerData::setStandardData | ( | uint32_t | orbitNumber, |
uint32_t | eventNumber, | ||
uint16_t | bunchNumber, | ||
uint32_t | flags_daq_ttype, | ||
uint32_t | algo_bits_3, | ||
uint32_t | algo_bits_2, | ||
uint32_t | algo_bits_1, | ||
uint32_t | algo_bits_0, | ||
uint32_t | tech_bits, | ||
uint32_t | gps_1234, | ||
uint32_t | gps_5678 | ||
) |
Definition at line 40 of file HcalTBTriggerData.cc.
References algoBits0_, algoBits1_, algoBits2_, algoBits3_, bunchNumber(), bunchNumber_, eventNumber_, flagsDaqTtype_, gps1234_, gps5678_, orbitNumber(), orbitNumber_, and techBits_.
Referenced by gps5678(), and hcaltb::HcalTBTriggerDataUnpacker::unpack().
|
inline |
Returns the spill number of this trigger.
Definition at line 35 of file HcalTBTriggerData.h.
References spillNumber_.
Referenced by gps5678(), operator<<(), and setExtendedData().
|
inline |
|
inline |
Returns the base time of the run (in seconds, from a time() call)
Definition at line 33 of file HcalTBTriggerData.h.
References triggerTimeBase_.
Referenced by operator<<().
|
inline |
Returns the relative time of this trigger in microseconds.
Definition at line 31 of file HcalTBTriggerData.h.
References triggerTimeUsec_.
Referenced by operator<<().
|
inline |
Returns the entire packed trigger word.
Definition at line 29 of file HcalTBTriggerData.h.
References triggerWord_.
Referenced by gps5678(), operator<<(), setExtendedData(), wasBeamTrigger(), wasFakeTrigger(), wasInSpill(), wasInSpillPedestalTrigger(), wasLaserTrigger(), wasLEDTrigger(), wasOutSpillPedestalTrigger(), and wasSpillIgnorantPedestalTrigger().
|
inline |
returns true if this trigger came from beam data
Definition at line 74 of file HcalTBTriggerData.h.
References bit_BeamTrigger, and triggerWord().
Referenced by ZdcTBAnalysis::analyze(), HcalTBTriggerFilter::filter(), EcalTBH2TDCRecInfoProducer::produce(), and HcalQLPlotAnalAlgos::SetEventType().
|
inline |
returns true if this trigger was fake (from a non-H2 manager)
Definition at line 79 of file HcalTBTriggerData.h.
References bit_FakeTrigger, and triggerWord().
Referenced by ZdcTBAnalysis::analyze().
|
inline |
returns true if the "spill" bit was set
Definition at line 109 of file HcalTBTriggerData.h.
References bit_InSpill, and triggerWord().
Referenced by ZdcTBAnalysis::analyze().
|
inline |
returns true if this was an in-spill pedestal trigger
Definition at line 94 of file HcalTBTriggerData.h.
References bit_InSpillPedestalTrigger, and triggerWord().
Referenced by ZdcTBAnalysis::analyze(), HcalTBTriggerFilter::filter(), and HcalQLPlotAnalAlgos::SetEventType().
|
inline |
returns true if this was a laser trigger
Definition at line 99 of file HcalTBTriggerData.h.
References bit_LaserTrigger, and triggerWord().
Referenced by ZdcTBAnalysis::analyze(), HcalTBTriggerFilter::filter(), and HcalQLPlotAnalAlgos::SetEventType().
|
inline |
returns true if this was a LED trigger
Definition at line 104 of file HcalTBTriggerData.h.
References bit_LEDTrigger, and triggerWord().
Referenced by LEDTask::_isApplicable(), ZdcTBAnalysis::analyze(), HcalTBTriggerFilter::filter(), and HcalQLPlotAnalAlgos::SetEventType().
|
inline |
returns true if this was an out-of-spill pedestal trigger
Definition at line 89 of file HcalTBTriggerData.h.
References bit_OutSpillPedestalTrigger, and triggerWord().
Referenced by ZdcTBAnalysis::analyze(), HcalTBTriggerFilter::filter(), and HcalQLPlotAnalAlgos::SetEventType().
|
inline |
returns true if this trigger was a calibration trigger
Definition at line 84 of file HcalTBTriggerData.h.
References bit_spillIgnorantPedestalTrigger, and triggerWord().
Referenced by PedestalTask::_isApplicable(), ZdcTBAnalysis::analyze(), HcalTBTriggerFilter::filter(), and HcalQLPlotAnalAlgos::SetEventType().
|
private |
Definition at line 138 of file HcalTBTriggerData.h.
Referenced by algoBits0(), and setStandardData().
|
private |
Definition at line 137 of file HcalTBTriggerData.h.
Referenced by algoBits1(), and setStandardData().
|
private |
Definition at line 136 of file HcalTBTriggerData.h.
Referenced by algoBits2(), and setStandardData().
|
private |
<extended type="31:28,extended" size="27:24,zeros=23:7,daq#=6:4,type=3:0">
Definition at line 135 of file HcalTBTriggerData.h.
Referenced by algoBits3(), and setStandardData().
|
static |
Definition at line 113 of file HcalTBTriggerData.h.
Referenced by wasBeamTrigger().
|
static |
Definition at line 120 of file HcalTBTriggerData.h.
Referenced by wasFakeTrigger().
|
static |
Definition at line 122 of file HcalTBTriggerData.h.
Referenced by wasInSpill().
|
static |
Definition at line 114 of file HcalTBTriggerData.h.
Referenced by wasInSpillPedestalTrigger().
|
static |
Definition at line 116 of file HcalTBTriggerData.h.
Referenced by wasLaserTrigger().
|
static |
Definition at line 118 of file HcalTBTriggerData.h.
Referenced by wasLEDTrigger().
|
static |
Definition at line 115 of file HcalTBTriggerData.h.
Referenced by wasOutSpillPedestalTrigger().
|
static |
Definition at line 117 of file HcalTBTriggerData.h.
Referenced by wasSpillIgnorantPedestalTrigger().
|
private |
Definition at line 132 of file HcalTBTriggerData.h.
Referenced by bunchNumber(), and setStandardData().
|
private |
Definition at line 133 of file HcalTBTriggerData.h.
Referenced by eventNumber(), and setStandardData().
|
private |
Definition at line 134 of file HcalTBTriggerData.h.
Referenced by flagsDaqTtype(), and setStandardData().
|
private |
Definition at line 140 of file HcalTBTriggerData.h.
Referenced by gps1234(), and setStandardData().
|
private |
Definition at line 141 of file HcalTBTriggerData.h.
Referenced by gps5678(), and setStandardData().
|
private |
Definition at line 131 of file HcalTBTriggerData.h.
Referenced by orbitNumber(), and setStandardData().
|
private |
Definition at line 126 of file HcalTBTriggerData.h.
Referenced by runNumber(), and setExtendedData().
|
private |
Definition at line 125 of file HcalTBTriggerData.h.
Referenced by runNumberSequenceId(), and setExtendedData().
|
private |
Definition at line 130 of file HcalTBTriggerData.h.
Referenced by setExtendedData(), and spillNumber().
|
private |
Definition at line 139 of file HcalTBTriggerData.h.
Referenced by setStandardData(), and techBits().
|
private |
Definition at line 129 of file HcalTBTriggerData.h.
Referenced by setExtendedData(), and triggerTimeBase().
|
private |
Definition at line 128 of file HcalTBTriggerData.h.
Referenced by setExtendedData(), and triggerTimeUsec().
|
private |
Definition at line 127 of file HcalTBTriggerData.h.
Referenced by setExtendedData(), and triggerWord().