Station Trigger Data description More...
#include "sevt/StationTriggerData.h"
Public Types | |
enum | Algorithm { eNone = 0, eT1Threshold = 1, eT2Threshold = 2, eTimeOverThreshold = 3, eTimeOverThresholdDeconvoluted = 4, eMultiplicityOfPositiveSteps = 5, eRandom = 6, eMuon = 7, eSilent = 8, eRDThreshold = 9 } |
enum | ErrorCode { eNoError = 0, eT3Lost, eT3NotFound, eT3TooYoung, eT3Already, eT1Stopped, eBadCompress, eDataLost } |
enum | PLDTrigger { ePLDNone = 0x00000000, ePLDLatchThreshold = 0x00000001, ePLDLatchTOTA = 0x00000002, ePLDLatchTOTB = 0x00000004, ePLDLatchTOTC = 0x00000008, ePLDLatchRandom = 0x00000010, ePLDLatchRD = 0x00100000, ePLDThreshold = 0x00000100, ePLDTOTA = 0x00000200, ePLDTOTB = 0x00000400, ePLDTOTC = 0x00000800, ePLDRandom = 0x00001000, ePLDRD = 0x10000000, ePLDMuon = 0x80000000 } |
typedef std::uint32_t | PLDType |
Public Attributes | |
bool | const |
T1 events have non-zero window size. More... | |
Private Types | |
enum | PLDTotalTrigger { ePLDTotalThreshold = (ePLDLatchThreshold | ePLDThreshold), ePLDTotalTOT = (ePLDLatchTOTA | ePLDTOTA), ePLDTotalTOTD = (ePLDLatchTOTB | ePLDTOTB), ePLDTotalMOPS = (ePLDLatchTOTC | ePLDTOTC), ePLDTotalThresholdOrTOT = (ePLDTotalThreshold | ePLDTotalTOT), ePLDTotalRandom = (ePLDLatchRandom | ePLDRandom), ePLDTotalRD = (ePLDLatchRD | ePLDRD) } |
Private Member Functions | |
bool | IsThresholdBit () const |
StationTriggerData ()=default | |
Private Attributes | |
int | fErrorCode = -1 |
int | fOffsetMicroSecond = -1 |
int | fPLDTimeOffset = 0 |
PLDType | fPLDTrigger = ePLDNone |
std::string | fPLDVersion = "Unknown" |
int | fWindowMicroSecond = -1 |
Static Private Attributes | |
static const std::string | fgAlgorithmLookup [] |
Friends | |
class | Station |
class | StationSimData |
class | utl::ShadowPtr< StationTriggerData > |
Station Trigger Data description
Definition at line 18 of file SEvent/StationTriggerData.h.
typedef std::uint32_t sevt::StationTriggerData::PLDType |
Definition at line 72 of file SEvent/StationTriggerData.h.
Enumerator | |
---|---|
eNone | |
eT1Threshold | |
eT2Threshold | |
eTimeOverThreshold | |
eTimeOverThresholdDeconvoluted | |
eMultiplicityOfPositiveSteps | |
eRandom | |
eMuon | |
eSilent | |
eRDThreshold |
Definition at line 21 of file SEvent/StationTriggerData.h.
Enumerator | |
---|---|
eNoError | |
eT3Lost | |
eT3NotFound | |
eT3TooYoung | |
eT3Already | |
eT1Stopped | |
eBadCompress | |
eDataLost |
Definition at line 57 of file SEvent/StationTriggerData.h.
|
private |
Enumerator | |
---|---|
ePLDTotalThreshold | |
ePLDTotalTOT | |
ePLDTotalTOTD | |
ePLDTotalMOPS | |
ePLDTotalThresholdOrTOT | |
ePLDTotalRandom | |
ePLDTotalRD |
Definition at line 166 of file SEvent/StationTriggerData.h.
Enumerator | |
---|---|
ePLDNone | |
ePLDLatchThreshold | |
ePLDLatchTOTA | |
ePLDLatchTOTB | |
ePLDLatchTOTC | |
ePLDLatchRandom | |
ePLDLatchRD | |
ePLDThreshold | |
ePLDTOTA | |
ePLDTOTB | |
ePLDTOTC | |
ePLDRandom | |
ePLDRD | |
ePLDMuon |
Definition at line 35 of file SEvent/StationTriggerData.h.
|
privatedefault |
StationTriggerData::Algorithm sevt::StationTriggerData::GetAlgorithm | ( | ) | const |
Definition at line 7 of file StationTriggerData.cc.
References eMultiplicityOfPositiveSteps, eMuon, eNone, eRandom, eRDThreshold, eSilent, eT1Threshold, eT2Threshold, eTimeOverThreshold, eTimeOverThresholdDeconvoluted, IsMultiplicityOfPositiveSteps(), IsMuon(), IsRandom(), IsRDThreshold(), IsSilent(), IsT1Threshold(), IsT2Threshold(), IsTimeOverThreshold(), and IsTimeOverThresholdDeconvoluted().
Referenced by GetAlgorithmName(), SdSimpleSimKG::SdSimpleSim::Run(), and testSEventImpl::setStationTriggerValues().
|
inline |
Definition at line 148 of file SEvent/StationTriggerData.h.
References fgAlgorithmLookup, and GetAlgorithm().
Referenced by evt::ConvertEventToIoSd(), UnderGrdInjectorAG::UnderGrdInjector::GetTriggerTimeFromSD(), MdCounterSimulatorAG::MdCounterSimulator::GetTriggerTimeFromSD(), SdInspectorOG::SdInspector::Run(), and testSEventImpl::setStationTriggerValues().
|
inline |
Definition at line 70 of file SEvent/StationTriggerData.h.
References fErrorCode.
Referenced by evt::ConvertEventToIoSd(), evt::ConvertIoMdToEvent(), SdInspectorOG::SdInspector::Run(), and SdTopDownSignalSelectorUGR::SdTopDownSignalSelectorUGR::Run().
|
inline |
Definition at line 68 of file SEvent/StationTriggerData.h.
References fOffsetMicroSecond.
Referenced by evt::ConvertEventToIoSd(), and SdInspectorOG::SdInspector::Run().
|
inline |
Definition at line 150 of file SEvent/StationTriggerData.h.
References fPLDTimeOffset.
Referenced by otoa::FD2ADST::FillFdRecStations(), SdTraceCalibratorOG::SdTraceCalibrator::SelectSignal(), and SdCalibratorOG::SdCalibrator::SelectSignal().
|
inline |
Definition at line 73 of file SEvent/StationTriggerData.h.
References fPLDTrigger.
Referenced by evt::ConvertEventToIoSd(), and SdInspectorOG::SdInspector::Run().
|
inline |
Definition at line 151 of file SEvent/StationTriggerData.h.
References fPLDVersion.
Referenced by otoa::FD2ADST::FillFdRecStations().
|
inline |
Definition at line 69 of file SEvent/StationTriggerData.h.
References fWindowMicroSecond.
Referenced by evt::ConvertEventToIoSd(), and SdInspectorOG::SdInspector::Run().
|
inline |
Definition at line 84 of file SEvent/StationTriggerData.h.
References ePLDTotalMOPS, and fPLDTrigger.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), otoa::FD2ADST::FillFdRecStations(), GetAlgorithm(), and MdOptoElectronicSimulatorAG::MdOptoElectronicSimulator::GetTriggerTimeFromSD().
|
inline |
Definition at line 141 of file SEvent/StationTriggerData.h.
References ePLDMuon, fPLDTrigger, and fWindowMicroSecond.
Referenced by GetAlgorithm().
|
inline |
Definition at line 139 of file SEvent/StationTriggerData.h.
References ePLDTotalRandom, and fPLDTrigger.
Referenced by otoa::FD2ADST::FillFdRecStations(), GetAlgorithm(), and SdTopDownSignalSelectorUGR::SdTopDownSignalSelectorUGR::Run().
|
inline |
Definition at line 91 of file SEvent/StationTriggerData.h.
References ePLDTotalRD, and fPLDTrigger.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), otoa::FD2ADST::FillFdRecStations(), and GetAlgorithm().
|
inline |
Definition at line 144 of file SEvent/StationTriggerData.h.
References eT3NotFound, fErrorCode, and fWindowMicroSecond.
Referenced by GetAlgorithm().
|
inline |
T1 threshold.
Definition at line 132 of file SEvent/StationTriggerData.h.
References fWindowMicroSecond, and IsThresholdBit().
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), otoa::FD2ADST::FillFdRecStations(), GetAlgorithm(), and MdOptoElectronicSimulatorAG::MdOptoElectronicSimulator::GetTriggerTimeFromSD().
|
inline |
T2 threshold.
Definition at line 136 of file SEvent/StationTriggerData.h.
References fWindowMicroSecond, and IsThresholdBit().
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), otoa::FD2ADST::FillFdRecStations(), GetAlgorithm(), and MdOptoElectronicSimulatorAG::MdOptoElectronicSimulator::GetTriggerTimeFromSD().
|
inlineprivate |
Definition at line 164 of file SEvent/StationTriggerData.h.
References ePLDTotalThreshold, and fPLDTrigger.
Referenced by IsT1Threshold(), and IsT2Threshold().
|
inline |
Any of the PLD triggers (threshold or TOT)
Definition at line 88 of file SEvent/StationTriggerData.h.
References ePLDTotalThresholdOrTOT, and fPLDTrigger.
|
inline |
T1 TOT is always promoted to T2 TOT.
Definition at line 76 of file SEvent/StationTriggerData.h.
References ePLDTotalTOT, and fPLDTrigger.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), otoa::FD2ADST::FillFdRecStations(), GetAlgorithm(), MdOptoElectronicSimulatorAG::MdOptoElectronicSimulator::GetTriggerTimeFromSD(), and FdEventSelectorKG::FdEventSelector::Run().
|
inline |
Time Over Threshold deconvoluted.
Definition at line 80 of file SEvent/StationTriggerData.h.
References ePLDTotalTOTD, and fPLDTrigger.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), otoa::FD2ADST::FillFdRecStations(), GetAlgorithm(), and MdOptoElectronicSimulatorAG::MdOptoElectronicSimulator::GetTriggerTimeFromSD().
Definition at line 34 of file StationTriggerData.cc.
References eMultiplicityOfPositiveSteps, eMuon, eNoError, eNone, ePLDLatchRandom, ePLDLatchRD, ePLDLatchThreshold, ePLDLatchTOTA, ePLDLatchTOTB, ePLDLatchTOTC, ePLDMuon, ePLDNone, eRandom, eRDThreshold, eSilent, eT1Threshold, eT2Threshold, eT3NotFound, eTimeOverThreshold, eTimeOverThresholdDeconvoluted, fErrorCode, fOffsetMicroSecond, fPLDTrigger, and fWindowMicroSecond.
Referenced by SdSimpleSimKG::SdSimpleSim::Noise(), DoublePeakDetectorNS::DoublePeakDetector::Run(), SdSimpleSimKG::SdSimpleSim::Run(), testSEventImpl::setStationSimDataValues(), and testSEventImpl::setStationTriggerValues().
|
inline |
Definition at line 155 of file SEvent/StationTriggerData.h.
References fErrorCode.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), io::StationTriggerData_ROOT::operator>>(), DoublePeakDetectorNS::DoublePeakDetector::Run(), SdSimpleSimKG::SdSimpleSim::Run(), testSEventImpl::setStationSimDataValues(), and testSEventImpl::setStationTriggerValues().
|
inline |
Definition at line 153 of file SEvent/StationTriggerData.h.
References fOffsetMicroSecond.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), SdSimpleSimKG::SdSimpleSim::Noise(), io::StationTriggerData_ROOT::operator>>(), SdSimpleSimKG::SdSimpleSim::Run(), testSEventImpl::setStationSimDataValues(), and testSEventImpl::setStationTriggerValues().
|
inline |
Definition at line 158 of file SEvent/StationTriggerData.h.
References fPLDTimeOffset.
Definition at line 156 of file SEvent/StationTriggerData.h.
References fPLDTrigger.
Referenced by io::StationTriggerData_ROOT::operator>>().
|
inline |
Definition at line 159 of file SEvent/StationTriggerData.h.
References fPLDVersion.
Referenced by otoa::FD2ADST::FillFdRecStations().
|
inline |
Definition at line 154 of file SEvent/StationTriggerData.h.
References fWindowMicroSecond.
Referenced by CentralTriggerEventBuilderNS::CentralTriggerEventBuilder::BuildEvent(), SdSimpleSimKG::SdSimpleSim::Noise(), io::StationTriggerData_ROOT::operator>>(), SdSimpleSimKG::SdSimpleSim::Run(), testSEventImpl::setStationSimDataValues(), and testSEventImpl::setStationTriggerValues().
|
friend |
Definition at line 186 of file SEvent/StationTriggerData.h.
|
friend |
Definition at line 187 of file SEvent/StationTriggerData.h.
|
friend |
Definition at line 188 of file SEvent/StationTriggerData.h.
bool sevt::StationTriggerData::const |
T1 events have non-zero window size.
the only flag CDAS T3 central trigger cares about
T2 events have zero window size.
Definition at line 98 of file SEvent/StationTriggerData.h.
|
private |
Definition at line 179 of file SEvent/StationTriggerData.h.
Referenced by GetErrorCode(), IsSilent(), SetAlgorithm(), and SetErrorCode().
|
staticprivate |
Definition at line 184 of file SEvent/StationTriggerData.h.
Referenced by GetAlgorithmName().
|
private |
Definition at line 177 of file SEvent/StationTriggerData.h.
Referenced by GetOffsetMicroSecond(), SetAlgorithm(), and SetOffsetMicroSecond().
|
private |
Definition at line 181 of file SEvent/StationTriggerData.h.
Referenced by GetPLDTimeOffset(), and SetPLDTimeOffset().
Definition at line 180 of file SEvent/StationTriggerData.h.
Referenced by GetPLDTrigger(), IsMultiplicityOfPositiveSteps(), IsMuon(), IsRandom(), IsRDThreshold(), IsThresholdBit(), IsThresholdOrTimeOverThreshold(), IsTimeOverThreshold(), IsTimeOverThresholdDeconvoluted(), SetAlgorithm(), and SetPLDTrigger().
|
private |
Definition at line 182 of file SEvent/StationTriggerData.h.
Referenced by GetPLDVersion(), and SetPLDVersion().
|
private |
Definition at line 178 of file SEvent/StationTriggerData.h.
Referenced by GetWindowMicroSecond(), IsMuon(), IsSilent(), IsT1Threshold(), IsT2Threshold(), SetAlgorithm(), and SetWindowMicroSecond().