StationTriggerData.cc
Go to the documentation of this file.
1 #include <sevt/StationTriggerData.h>
2 
3 
4 namespace sevt {
5 
8  const
9  {
10  if (IsSilent())
11  return eSilent;
12  if (IsTimeOverThreshold())
13  return eTimeOverThreshold;
18  if (IsT2Threshold())
19  return eT2Threshold;
20  if (IsT1Threshold())
21  return eT1Threshold;
22  if (IsRandom())
23  return eRandom;
24  if (IsMuon())
25  return eMuon;
26  if (IsRDThreshold())
27  return eRDThreshold;
28 
29  return eNone;
30  }
31 
32 
33  void
35  {
36  switch (algo) {
37  default:
38  case eNone:
39  fWindowMicroSecond = -1;
41  fErrorCode = -1;
42  break;
43  case eT1Threshold:
44  fWindowMicroSecond = 30;
47  break;
48  case eT2Threshold:
52  break;
53  case eTimeOverThreshold:
57  break;
62  break;
67  break;
68  case eRandom:
69  fWindowMicroSecond = -1;
72  break;
73  case eMuon:
74  fWindowMicroSecond = 30;
77  break;
78  case eSilent:
79  fWindowMicroSecond = 30;
83  break;
84  case eRDThreshold:
85  fWindowMicroSecond = 30;
88  break;
89  }
90  }
91 
92 
93  const std::string StationTriggerData::fgAlgorithmLookup[] = {
94  "None",
95  "T1 Threshold",
96  "T2 Threshold",
97  "Time Over Threshold",
98  "Time Over Threshold Deconvoluted",
99  "Multiplicity of Positive Steps",
100  "Random",
101  "Muon",
102  "Silent",
103  "RD Threshold",
104  };
105 
106 }
bool IsTimeOverThresholdDeconvoluted() const
Time Over Threshold deconvoluted.
static const std::string fgAlgorithmLookup[]
bool IsT1Threshold() const
T1 threshold.
bool IsT2Threshold() const
T2 threshold.
bool IsTimeOverThreshold() const
T1 TOT is always promoted to T2 TOT.
Algorithm GetAlgorithm() const
void SetAlgorithm(const Algorithm algo)

, generated on Tue Sep 26 2023.