List of all members | Public Types | Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends
sevt::StationTriggerData Class Reference

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 Member Functions

Algorithm GetAlgorithm () const
 
const std::string & GetAlgorithmName () const
 
int GetErrorCode () const
 
int GetOffsetMicroSecond () const
 
int GetPLDTimeOffset () const
 
PLDType GetPLDTrigger () const
 
std::string GetPLDVersion () const
 
int GetWindowMicroSecond () const
 
bool IsMultiplicityOfPositiveSteps () const
 
bool IsMuon () const
 
bool IsRandom () const
 
bool IsRDThreshold () const
 
bool IsSilent () const
 
bool IsT1Threshold () const
 T1 threshold. More...
 
bool IsT2Threshold () const
 T2 threshold. More...
 
bool IsThresholdOrTimeOverThreshold () const
 Any of the PLD triggers (threshold or TOT) More...
 
bool IsTimeOverThreshold () const
 T1 TOT is always promoted to T2 TOT. More...
 
bool IsTimeOverThresholdDeconvoluted () const
 Time Over Threshold deconvoluted. More...
 
void SetAlgorithm (const Algorithm algo)
 
void SetErrorCode (const int errorCode)
 
void SetOffsetMicroSecond (const int offset)
 
void SetPLDTimeOffset (const int offset)
 
void SetPLDTrigger (const PLDType trigger)
 
void SetPLDVersion (const std::string version)
 
void SetWindowMicroSecond (const int window)
 

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 >
 

Detailed Description

Station Trigger Data description

Author
Stefano Argiro, Darko Veberic
Date
27 january 2003

Definition at line 18 of file SEvent/StationTriggerData.h.

Member Typedef Documentation

typedef std::uint32_t sevt::StationTriggerData::PLDType

Definition at line 72 of file SEvent/StationTriggerData.h.

Member Enumeration Documentation

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.

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.

Constructor & Destructor Documentation

sevt::StationTriggerData::StationTriggerData ( )
privatedefault

Member Function Documentation

StationTriggerData::Algorithm sevt::StationTriggerData::GetAlgorithm ( ) const
const std::string& sevt::StationTriggerData::GetAlgorithmName ( ) const
inline
int sevt::StationTriggerData::GetErrorCode ( ) const
inline
int sevt::StationTriggerData::GetOffsetMicroSecond ( ) const
inline
int sevt::StationTriggerData::GetPLDTimeOffset ( ) const
inline
PLDType sevt::StationTriggerData::GetPLDTrigger ( ) const
inline

Definition at line 73 of file SEvent/StationTriggerData.h.

References fPLDTrigger.

Referenced by evt::ConvertEventToIoSd(), and SdInspectorOG::SdInspector::Run().

std::string sevt::StationTriggerData::GetPLDVersion ( ) const
inline

Definition at line 151 of file SEvent/StationTriggerData.h.

References fPLDVersion.

Referenced by otoa::FD2ADST::FillFdRecStations().

int sevt::StationTriggerData::GetWindowMicroSecond ( ) const
inline
bool sevt::StationTriggerData::IsMultiplicityOfPositiveSteps ( ) const
inline
bool sevt::StationTriggerData::IsMuon ( ) const
inline

Definition at line 141 of file SEvent/StationTriggerData.h.

References ePLDMuon, fPLDTrigger, and fWindowMicroSecond.

Referenced by GetAlgorithm().

bool sevt::StationTriggerData::IsRandom ( ) const
inline
bool sevt::StationTriggerData::IsRDThreshold ( ) const
inline
bool sevt::StationTriggerData::IsSilent ( ) const
inline

Definition at line 144 of file SEvent/StationTriggerData.h.

References eT3NotFound, fErrorCode, and fWindowMicroSecond.

Referenced by GetAlgorithm().

bool sevt::StationTriggerData::IsT1Threshold ( ) const
inline
bool sevt::StationTriggerData::IsT2Threshold ( ) const
inline
bool sevt::StationTriggerData::IsThresholdBit ( ) const
inlineprivate

Definition at line 164 of file SEvent/StationTriggerData.h.

References ePLDTotalThreshold, and fPLDTrigger.

Referenced by IsT1Threshold(), and IsT2Threshold().

bool sevt::StationTriggerData::IsThresholdOrTimeOverThreshold ( ) const
inline

Any of the PLD triggers (threshold or TOT)

Definition at line 88 of file SEvent/StationTriggerData.h.

References ePLDTotalThresholdOrTOT, and fPLDTrigger.

bool sevt::StationTriggerData::IsTimeOverThreshold ( ) const
inline
bool sevt::StationTriggerData::IsTimeOverThresholdDeconvoluted ( ) const
inline
void sevt::StationTriggerData::SetAlgorithm ( const Algorithm  algo)
void sevt::StationTriggerData::SetErrorCode ( const int  errorCode)
inline
void sevt::StationTriggerData::SetOffsetMicroSecond ( const int  offset)
inline
void sevt::StationTriggerData::SetPLDTimeOffset ( const int  offset)
inline

Definition at line 158 of file SEvent/StationTriggerData.h.

References fPLDTimeOffset.

void sevt::StationTriggerData::SetPLDTrigger ( const PLDType  trigger)
inline

Definition at line 156 of file SEvent/StationTriggerData.h.

References fPLDTrigger.

Referenced by io::StationTriggerData_ROOT::operator>>().

void sevt::StationTriggerData::SetPLDVersion ( const std::string  version)
inline

Definition at line 159 of file SEvent/StationTriggerData.h.

References fPLDVersion.

Referenced by otoa::FD2ADST::FillFdRecStations().

void sevt::StationTriggerData::SetWindowMicroSecond ( const int  window)
inline

Friends And Related Function Documentation

friend class Station
friend

Definition at line 186 of file SEvent/StationTriggerData.h.

friend class StationSimData
friend

Definition at line 187 of file SEvent/StationTriggerData.h.

friend class utl::ShadowPtr< StationTriggerData >
friend

Definition at line 188 of file SEvent/StationTriggerData.h.

Member Data Documentation

bool sevt::StationTriggerData::const
Initial value:

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.

int sevt::StationTriggerData::fErrorCode = -1
private

Definition at line 179 of file SEvent/StationTriggerData.h.

Referenced by GetErrorCode(), IsSilent(), SetAlgorithm(), and SetErrorCode().

const std::string sevt::StationTriggerData::fgAlgorithmLookup
staticprivate
Initial value:
= {
"None",
"T1 Threshold",
"T2 Threshold",
"Time Over Threshold",
"Time Over Threshold Deconvoluted",
"Multiplicity of Positive Steps",
"Random",
"Muon",
"Silent",
"RD Threshold",
}

Definition at line 184 of file SEvent/StationTriggerData.h.

Referenced by GetAlgorithmName().

int sevt::StationTriggerData::fOffsetMicroSecond = -1
private
int sevt::StationTriggerData::fPLDTimeOffset = 0
private

Definition at line 181 of file SEvent/StationTriggerData.h.

Referenced by GetPLDTimeOffset(), and SetPLDTimeOffset().

PLDType sevt::StationTriggerData::fPLDTrigger = ePLDNone
private
std::string sevt::StationTriggerData::fPLDVersion = "Unknown"
private

Definition at line 182 of file SEvent/StationTriggerData.h.

Referenced by GetPLDVersion(), and SetPLDVersion().

int sevt::StationTriggerData::fWindowMicroSecond = -1
private

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

, generated on Tue Sep 26 2023.