CMS 3D CMS Logo

Classes | Enumerations | Functions
L1GtDefinitions.h File Reference
#include <string>

Go to the source code of this file.

Classes

struct  L1GtBoardTypeStringToEnum
 
struct  L1GtConditionCategoryStringToEnum
 
struct  L1GtConditionTypeStringToEnum
 
struct  L1GtPsbQuadStringToEnum
 

Enumerations

enum  L1GtBoardType {
  GTFE, FDL, PSB, GMT,
  TCS, TIM, BoardNull
}
 board types in GT More...
 
enum  L1GtConditionCategory {
  CondNull, CondMuon, CondCalo, CondEnergySum,
  CondJetCounts, CondCorrelation, CondCastor, CondHfBitCounts,
  CondHfRingEtSums, CondBptx, CondExternal, CondCorrelationWithOverlapRemoval
}
 condition categories More...
 
enum  L1GtConditionType {
  TypeNull, Type1s, Type2s, Type2wsc,
  Type2cor, Type3s, Type4s, TypeETM,
  TypeETT, TypeHTT, TypeHTM, TypeJetCounts,
  TypeCastor, TypeHfBitCounts, TypeHfRingEtSums, TypeBptx,
  TypeExternal, Type2corWithOverlapRemoval
}
 
enum  L1GtPsbQuad {
  Free, TechTr, IsoEGQ, NoIsoEGQ,
  CenJetQ, ForJetQ, TauJetQ, ESumsQ,
  JetCountsQ, MQB1, MQB2, MQF3,
  MQF4, MQB5, MQB6, MQF7,
  MQF8, MQB9, MQB10, MQF11,
  MQF12, CastorQ, HfQ, BptxQ,
  GtExternalQ, PsbQuadNull
}
 quadruples sent to GT via PSB More...
 

Functions

std::string l1GtBoardTypeEnumToString (const L1GtBoardType &)
 
L1GtBoardType l1GtBoardTypeStringToEnum (const std::string &)
 
std::string l1GtConditionCategoryEnumToString (const L1GtConditionCategory &)
 
L1GtConditionCategory l1GtConditionCategoryStringToEnum (const std::string &)
 
std::string l1GtConditionTypeEnumToString (const L1GtConditionType &)
 
L1GtConditionType l1GtConditionTypeStringToEnum (const std::string &)
 
std::string l1GtPsbQuadEnumToString (const L1GtPsbQuad &)
 
L1GtPsbQuad l1GtPsbQuadStringToEnum (const std::string &)
 

Enumeration Type Documentation

◆ L1GtBoardType

board types in GT

Description: enums for the L1 GT.

Implementation: Defines various enums for CondFormats L1 GT. For each enum, define the lightweight "maps" for enum string label and enum value

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Enumerator
GTFE 
FDL 
PSB 
GMT 
TCS 
TIM 
BoardNull 

Definition at line 27 of file L1GtDefinitions.h.

27 { GTFE, FDL, PSB, GMT, TCS, TIM, BoardNull };

◆ L1GtConditionCategory

condition categories

Enumerator
CondNull 
CondMuon 
CondCalo 
CondEnergySum 
CondJetCounts 
CondCorrelation 
CondCastor 
CondHfBitCounts 
CondHfRingEtSums 
CondBptx 
CondExternal 
CondCorrelationWithOverlapRemoval 

Definition at line 121 of file L1GtDefinitions.h.

121  {
122  CondNull,
123  CondMuon,
124  CondCalo,
128  CondCastor,
131  CondBptx,
132  CondExternal,
134 };

◆ L1GtConditionType

condition types TypeNull: null type - for condition constructor only Type1s : one particle Type2s : two particles, same type, no spatial correlations among them Type2wsc : two particles, same type, with spatial correlations among them Type2cor : two particles, different type, with spatial correlations among them Type3s : three particles, same type Type4s : four particles, same type TypeETM, TypeETT, TypeHTT, TypeHTM : ETM, ETT, HTT, HTM TypeJetCounts : JetCounts TypeCastor : CASTOR condition (logical result only; definition in CASTOR) TypeHfBitCounts : HfBitCounts TypeHfRingEtSums : HfRingEtSums TypeBptx: BPTX (logical result only; definition in BPTX system) TypeExternal: external conditions (logical result only; definition in L1 GT external systems) Type2CorrWithOverlapRemoval: three particles, first two with spatial correlations among them, third used for removal if overlap

Enumerator
TypeNull 
Type1s 
Type2s 
Type2wsc 
Type2cor 
Type3s 
Type4s 
TypeETM 
TypeETT 
TypeHTT 
TypeHTM 
TypeJetCounts 
TypeCastor 
TypeHfBitCounts 
TypeHfRingEtSums 
TypeBptx 
TypeExternal 
Type2corWithOverlapRemoval 

Definition at line 91 of file L1GtDefinitions.h.

91  {
92  TypeNull,
93  Type1s,
94  Type2s,
95  Type2wsc,
96  Type2cor,
97  Type3s,
98  Type4s,
99  TypeETM,
100  TypeETT,
101  TypeHTT,
102  TypeHTM,
104  TypeCastor,
107  TypeBptx,
108  TypeExternal,
110 };

◆ L1GtPsbQuad

quadruples sent to GT via PSB

Enumerator
Free 
TechTr 
IsoEGQ 
NoIsoEGQ 
CenJetQ 
ForJetQ 
TauJetQ 
ESumsQ 
JetCountsQ 
MQB1 
MQB2 
MQF3 
MQF4 
MQB5 
MQB6 
MQF7 
MQF8 
MQB9 
MQB10 
MQF11 
MQF12 
CastorQ 
HfQ 
BptxQ 
GtExternalQ 
PsbQuadNull 

Definition at line 38 of file L1GtDefinitions.h.

38  {
39  Free,
40  TechTr,
41  IsoEGQ,
42  NoIsoEGQ,
43  CenJetQ,
44  ForJetQ,
45  TauJetQ,
46  ESumsQ,
47  JetCountsQ,
48  MQB1,
49  MQB2,
50  MQF3,
51  MQF4,
52  MQB5,
53  MQB6,
54  MQF7,
55  MQF8,
56  MQB9,
57  MQB10,
58  MQF11,
59  MQF12,
60  CastorQ,
61  HfQ,
62  BptxQ,
65 };

Function Documentation

◆ l1GtBoardTypeEnumToString()

std::string l1GtBoardTypeEnumToString ( const L1GtBoardType )

Definition at line 132 of file L1GtDefinitions.cc.

132  {
133  char const* result = valueToKey(boardType, l1GtBoardTypeStringToEnumMap);
134  if (boardType == BoardNull) {
135  edm::LogInfo("L1GtDefinitions") << "\n BoardNull means no valid board type defined!";
136  }
137  if (!result) {
138  edm::LogInfo("L1GtDefinitions") << "\n '" << boardType << "' is not a recognized L1GtBoardType. "
139  << "\n Return BoardNull, which means no valid board type defined!";
140  return "BoardNull";
141  }
142  return result;
143 }

References BoardNull, and mps_fire::result.

◆ l1GtBoardTypeStringToEnum()

L1GtBoardType l1GtBoardTypeStringToEnum ( const std::string &  )

Definition at line 118 of file L1GtDefinitions.cc.

118  {
119  L1GtBoardType value = keyToValue(label.c_str(), l1GtBoardTypeStringToEnumMap);
120  if (value == (L1GtBoardType)-1) {
121  edm::LogInfo("L1GtDefinitions") << "\n '" << label << "' is not a recognized L1GtBoardType. \n Return BoardNull.";
122  value = BoardNull;
123  }
124 
125  if (value == BoardNull) {
126  edm::LogInfo("L1GtDefinitions") << "\n BoardNull means no valid board type defined!";
127  }
128 
129  return value;
130 }

◆ l1GtConditionCategoryEnumToString()

std::string l1GtConditionCategoryEnumToString ( const L1GtConditionCategory )

Definition at line 225 of file L1GtDefinitions.cc.

225  {
226  char const* result = valueToKey(conditionCategory, l1GtConditionCategoryStringToEnumMap);
227  if (conditionCategory == CondNull)
228  edm::LogInfo("L1GtDefinitions") << "\n Return CondNull, which means no valid condition category defined!";
229 
230  if (!result) {
231  result = "CondNull";
232  edm::LogInfo("L1GtDefinitions") << "\n '" << conditionCategory << "' is not a recognized L1GtConditionCategory. "
233  << "\n Return CondNull, which means no valid condition category defined!";
234  }
235 
236  return result;
237 }

References CondNull, and mps_fire::result.

Referenced by L1GtHwValidation::excludedAlgoList().

◆ l1GtConditionCategoryStringToEnum()

L1GtConditionCategory l1GtConditionCategoryStringToEnum ( const std::string &  )

Definition at line 207 of file L1GtDefinitions.cc.

207  {
208  L1GtConditionCategory value = keyToValue(label.c_str(), l1GtConditionCategoryStringToEnumMap);
209  // in case of unrecognized L1GtConditionCategory, return CondNull
210  // to be dealt by the corresponding module
211  if (value == (L1GtConditionCategory)-1) {
212  edm::LogInfo("L1GtDefinitions") << "\n '" << label
213  << "' is not a recognized L1GtConditionCategory. \n Return CondNull.";
214 
215  value = CondNull;
216  }
217 
218  if (value == CondNull) {
219  edm::LogInfo("L1GtDefinitions") << "\n CondNull means no valid condition category defined!";
220  }
221 
222  return value;
223 }

Referenced by L1GtHwValidation::L1GtHwValidation().

◆ l1GtConditionTypeEnumToString()

std::string l1GtConditionTypeEnumToString ( const L1GtConditionType )

Definition at line 195 of file L1GtDefinitions.cc.

195  {
196  const char* result = valueToKey(conditionType, l1GtConditionTypeStringToEnumMap);
197  if (conditionType == TypeNull)
198  edm::LogInfo("L1GtDefinitions") << "\n Return TypeNull, which means no valid condition type defined!";
199  if (!result) {
200  result = "TypeNull";
201  edm::LogInfo("L1GtDefinitions") << "\n '" << conditionType << "' is not a recognized L1GtConditionType. "
202  << "\n Return TypeNull, which means no valid condition type defined!";
203  }
204  return result;
205 }

References writeEcalDQMStatus::conditionType, mps_fire::result, and TypeNull.

Referenced by L1GtHwValidation::excludedAlgoList().

◆ l1GtConditionTypeStringToEnum()

L1GtConditionType l1GtConditionTypeStringToEnum ( const std::string &  )

Definition at line 176 of file L1GtDefinitions.cc.

176  {
177  L1GtConditionType value = keyToValue(label.c_str(), l1GtConditionTypeStringToEnumMap);
178 
179  // in case of unrecognized L1GtConditionType, return TypeNull
180  // to be dealt by the corresponding module
181  if (value == (L1GtConditionType)-1) {
182  edm::LogInfo("L1GtDefinitions") << "\n '" << label
183  << "' is not a recognized L1GtConditionType. \n Return TypeNull.";
184 
185  value = TypeNull;
186  }
187 
188  if (value == TypeNull) {
189  edm::LogInfo("L1GtDefinitions") << "\n TypeNull means no valid condition type defined!";
190  }
191 
192  return value;
193 }

Referenced by L1GtHwValidation::L1GtHwValidation().

◆ l1GtPsbQuadEnumToString()

std::string l1GtPsbQuadEnumToString ( const L1GtPsbQuad )

Definition at line 163 of file L1GtDefinitions.cc.

163  {
164  char const* result = valueToKey(psbQuad, l1GtPsbQuadStringToEnumMap);
165  if (psbQuad == PsbQuadNull)
166  edm::LogInfo("L1GtDefinitions") << "\n PsbQuadNull means no valid PSB quadruplet defined!";
167  if (!result) {
168  result = "PsbQuadNull";
169  edm::LogInfo("L1GtDefinitions") << "\n '" << psbQuad << "' is not a recognized L1GtPsbQuad. "
170  << "\n Return PsbQuadNull, which means no valid PSB quadruplet defined!";
171  }
172 
173  return result;
174 }

References PsbQuadNull, and mps_fire::result.

◆ l1GtPsbQuadStringToEnum()

L1GtPsbQuad l1GtPsbQuadStringToEnum ( const std::string &  )

Definition at line 147 of file L1GtDefinitions.cc.

147  {
148  L1GtPsbQuad value = keyToValue(label.c_str(), l1GtPsbQuadStringToEnumMap);
149  // in case of unrecognized L1GtPsbQuad, return PsbQuadNull
150  // to be dealt by the corresponding module
151  if (value == (L1GtPsbQuad)-1) {
152  edm::LogInfo("L1GtDefinitions") << "\n '" << label << "' is not a recognized L1GtPsbQuad. \n Return PsbQuadNull.";
153  value = PsbQuadNull;
154  }
155 
156  if (value == PsbQuadNull) {
157  edm::LogInfo("L1GtDefinitions") << "\n PsbQuadNull means no valid PSB quadruplet defined!";
158  }
159 
160  return value;
161 }

References label, PsbQuadNull, and relativeConstraints::value.

TypeHTT
Definition: L1GtDefinitions.h:101
CenJetQ
Definition: L1GtDefinitions.h:43
CondCastor
Definition: L1GtDefinitions.h:128
TypeHfRingEtSums
Definition: L1GtDefinitions.h:106
TypeExternal
Definition: L1GtDefinitions.h:108
CondEnergySum
Definition: L1GtDefinitions.h:125
Type4s
Definition: L1GtDefinitions.h:98
FDL
Definition: L1GtDefinitions.h:27
PSB
Definition: L1GtDefinitions.h:27
TypeJetCounts
Definition: L1GtDefinitions.h:103
MQF4
Definition: L1GtDefinitions.h:51
TauJetQ
Definition: L1GtDefinitions.h:45
Type2s
Definition: L1GtDefinitions.h:94
edm::LogInfo
Definition: MessageLogger.h:254
GTFE
Definition: L1GtDefinitions.h:27
MQB5
Definition: L1GtDefinitions.h:52
L1GtConditionType
L1GtConditionType
Definition: L1GtDefinitions.h:91
L1GtPsbQuad
L1GtPsbQuad
quadruples sent to GT via PSB
Definition: L1GtDefinitions.h:38
CondCorrelationWithOverlapRemoval
Definition: L1GtDefinitions.h:133
ESumsQ
Definition: L1GtDefinitions.h:46
ForJetQ
Definition: L1GtDefinitions.h:44
MQF12
Definition: L1GtDefinitions.h:59
writeEcalDQMStatus.conditionType
conditionType
Definition: writeEcalDQMStatus.py:52
MQB2
Definition: L1GtDefinitions.h:49
Type3s
Definition: L1GtDefinitions.h:97
MQF11
Definition: L1GtDefinitions.h:58
CondExternal
Definition: L1GtDefinitions.h:132
NoIsoEGQ
Definition: L1GtDefinitions.h:42
CondCorrelation
Definition: L1GtDefinitions.h:127
Type2corWithOverlapRemoval
Definition: L1GtDefinitions.h:109
L1GtBoardType
L1GtBoardType
board types in GT
Definition: L1GtDefinitions.h:27
Type2cor
Definition: L1GtDefinitions.h:96
Free
Definition: L1GtDefinitions.h:39
MQB10
Definition: L1GtDefinitions.h:57
GtExternalQ
Definition: L1GtDefinitions.h:63
CondMuon
Definition: L1GtDefinitions.h:123
GMT
Definition: L1GtDefinitions.h:27
L1GtConditionCategory
L1GtConditionCategory
condition categories
Definition: L1GtDefinitions.h:121
TypeETT
Definition: L1GtDefinitions.h:100
Type2wsc
Definition: L1GtDefinitions.h:95
CondCalo
Definition: L1GtDefinitions.h:124
IsoEGQ
Definition: L1GtDefinitions.h:41
CondNull
Definition: L1GtDefinitions.h:122
CondJetCounts
Definition: L1GtDefinitions.h:126
TypeBptx
Definition: L1GtDefinitions.h:107
MQF7
Definition: L1GtDefinitions.h:54
TechTr
Definition: L1GtDefinitions.h:40
TypeHfBitCounts
Definition: L1GtDefinitions.h:105
TypeCastor
Definition: L1GtDefinitions.h:104
value
Definition: value.py:1
BoardNull
Definition: L1GtDefinitions.h:27
TypeHTM
Definition: L1GtDefinitions.h:102
PsbQuadNull
Definition: L1GtDefinitions.h:64
CondHfBitCounts
Definition: L1GtDefinitions.h:129
MQB9
Definition: L1GtDefinitions.h:56
MQB6
Definition: L1GtDefinitions.h:53
TCS
Definition: L1GtDefinitions.h:27
CondBptx
Definition: L1GtDefinitions.h:131
CastorQ
Definition: L1GtDefinitions.h:60
MQF8
Definition: L1GtDefinitions.h:55
relativeConstraints.value
value
Definition: relativeConstraints.py:53
TypeETM
Definition: L1GtDefinitions.h:99
TypeNull
Definition: L1GtDefinitions.h:92
CondHfRingEtSums
Definition: L1GtDefinitions.h:130
MQB1
Definition: L1GtDefinitions.h:48
mps_fire.result
result
Definition: mps_fire.py:303
Type1s
Definition: L1GtDefinitions.h:93
TIM
Definition: L1GtDefinitions.h:27
BptxQ
Definition: L1GtDefinitions.h:62
MQF3
Definition: L1GtDefinitions.h:50
HfQ
Definition: L1GtDefinitions.h:61
label
const char * label
Definition: PFTauDecayModeTools.cc:11
JetCountsQ
Definition: L1GtDefinitions.h:47