test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
}
 condition categories More...
 
enum  L1GtConditionType {
  TypeNull, Type1s, Type2s, Type2wsc,
  Type2cor, Type3s, Type4s, TypeETM,
  TypeETT, TypeHTT, TypeHTM, TypeJetCounts,
  TypeCastor, TypeHfBitCounts, TypeHfRingEtSums, TypeBptx,
  TypeExternal
}
 
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

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 28 of file L1GtDefinitions.h.

28  {
29  GTFE,
30  FDL,
31  PSB,
32  GMT,
33  TCS,
34  TIM,
35  BoardNull
36 };

condition categories

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

Definition at line 128 of file L1GtDefinitions.h.

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)

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

Definition at line 99 of file L1GtDefinitions.h.

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 47 of file L1GtDefinitions.h.

Function Documentation

std::string l1GtBoardTypeEnumToString ( const L1GtBoardType )

Definition at line 144 of file L1GtDefinitions.cc.

References BoardNull, and mps_fire::result.

144  {
145  char const *result= valueToKey(boardType, l1GtBoardTypeStringToEnumMap);
146  if (boardType == BoardNull) {
147  edm::LogInfo("L1GtDefinitions")
148  << "\n BoardNull means no valid board type defined!";
149  }
150  if (!result) {
151  edm::LogInfo("L1GtDefinitions") << "\n '" << boardType
152  << "' is not a recognized L1GtBoardType. "
153  << "\n Return BoardNull, which means no valid board type defined!";
154  return "BoardNull";
155  }
156  return result;
157 }
tuple result
Definition: mps_fire.py:84
L1GtBoardType l1GtBoardTypeStringToEnum ( const std::string &  )

Definition at line 128 of file L1GtDefinitions.cc.

128  {
129  L1GtBoardType value = keyToValue(label.c_str(), l1GtBoardTypeStringToEnumMap);
130  if (value == (L1GtBoardType) - 1) {
131  edm::LogInfo("L1GtDefinitions") << "\n '" << label
132  << "' is not a recognized L1GtBoardType. \n Return BoardNull.";
133  value = BoardNull;
134  }
135 
136  if (value == BoardNull) {
137  edm::LogInfo("L1GtDefinitions")
138  << "\n BoardNull means no valid board type defined!";
139  }
140 
141  return value;
142 }
L1GtBoardType
board types in GT
std::string l1GtConditionCategoryEnumToString ( const L1GtConditionCategory )

Definition at line 248 of file L1GtDefinitions.cc.

References CondNull, and mps_fire::result.

Referenced by L1GtHwValidation::excludedAlgoList().

248  {
249  char const *result = valueToKey(conditionCategory, l1GtConditionCategoryStringToEnumMap);
250  if (conditionCategory == CondNull)
251  edm::LogInfo("L1GtDefinitions")
252  << "\n Return CondNull, which means no valid condition category defined!";
253 
254  if (!result) {
255  result = "CondNull";
256  edm::LogInfo("L1GtDefinitions") << "\n '" << conditionCategory
257  << "' is not a recognized L1GtConditionCategory. "
258  << "\n Return CondNull, which means no valid condition category defined!";
259  }
260 
261  return result;
262 }
tuple result
Definition: mps_fire.py:84
L1GtConditionCategory l1GtConditionCategoryStringToEnum ( const std::string &  )

Definition at line 229 of file L1GtDefinitions.cc.

Referenced by L1GtHwValidation::L1GtHwValidation().

229  {
230  L1GtConditionCategory value = keyToValue(label.c_str(), l1GtConditionCategoryStringToEnumMap);
231  // in case of unrecognized L1GtConditionCategory, return CondNull
232  // to be dealt by the corresponding module
233  if (value == (L1GtConditionCategory) -1) {
234  edm::LogInfo("L1GtDefinitions") << "\n '" << label
235  << "' is not a recognized L1GtConditionCategory. \n Return CondNull.";
236 
237  value = CondNull;
238  }
239 
240  if (value == CondNull) {
241  edm::LogInfo("L1GtDefinitions")
242  << "\n CondNull means no valid condition category defined!";
243  }
244 
245  return value;
246 }
L1GtConditionCategory
condition categories
std::string l1GtConditionTypeEnumToString ( const L1GtConditionType )

Definition at line 215 of file L1GtDefinitions.cc.

References mps_fire::result, and TypeNull.

Referenced by L1GtHwValidation::excludedAlgoList().

215  {
216  const char *result = valueToKey(conditionType, l1GtConditionTypeStringToEnumMap);
217  if (conditionType == TypeNull)
218  edm::LogInfo("L1GtDefinitions")
219  << "\n Return TypeNull, which means no valid condition type defined!";
220  if (!result) {
221  result = "TypeNull";
222  edm::LogInfo("L1GtDefinitions") << "\n '" << conditionType
223  << "' is not a recognized L1GtConditionType. "
224  << "\n Return TypeNull, which means no valid condition type defined!";
225  }
226  return result;
227 }
tuple result
Definition: mps_fire.py:84
L1GtConditionType l1GtConditionTypeStringToEnum ( const std::string &  )

Definition at line 195 of file L1GtDefinitions.cc.

Referenced by L1GtHwValidation::L1GtHwValidation().

195  {
196  L1GtConditionType value = keyToValue(label.c_str(), l1GtConditionTypeStringToEnumMap);
197 
198  // in case of unrecognized L1GtConditionType, return TypeNull
199  // to be dealt by the corresponding module
200  if (value == (L1GtConditionType) -1) {
201  edm::LogInfo("L1GtDefinitions") << "\n '" << label
202  << "' is not a recognized L1GtConditionType. \n Return TypeNull.";
203 
204  value = TypeNull;
205  }
206 
207  if (value == TypeNull) {
208  edm::LogInfo("L1GtDefinitions")
209  << "\n TypeNull means no valid condition type defined!";
210  }
211 
212  return value;
213 }
L1GtConditionType
std::string l1GtPsbQuadEnumToString ( const L1GtPsbQuad )

Definition at line 180 of file L1GtDefinitions.cc.

References PsbQuadNull, and mps_fire::result.

180  {
181  char const*result = valueToKey(psbQuad, l1GtPsbQuadStringToEnumMap);
182  if (psbQuad == PsbQuadNull)
183  edm::LogInfo("L1GtDefinitions") << "\n PsbQuadNull means no valid PSB quadruplet defined!";
184  if (!result) {
185  result = "PsbQuadNull";
186  edm::LogInfo("L1GtDefinitions") << "\n '" << psbQuad
187  << "' is not a recognized L1GtPsbQuad. "
188  << "\n Return PsbQuadNull, which means no valid PSB quadruplet defined!";
189  }
190 
191  return result;
192 }
tuple result
Definition: mps_fire.py:84
L1GtPsbQuad l1GtPsbQuadStringToEnum ( const std::string &  )

Definition at line 162 of file L1GtDefinitions.cc.

References PsbQuadNull, and relativeConstraints::value.

162  {
163  L1GtPsbQuad value = keyToValue(label.c_str(), l1GtPsbQuadStringToEnumMap);
164  // in case of unrecognized L1GtPsbQuad, return PsbQuadNull
165  // to be dealt by the corresponding module
166  if (value == (L1GtPsbQuad)-1) {
167  edm::LogInfo("L1GtDefinitions") << "\n '" << label
168  << "' is not a recognized L1GtPsbQuad. \n Return PsbQuadNull.";
169  value = PsbQuadNull;
170  }
171 
172  if (value == PsbQuadNull) {
173  edm::LogInfo("L1GtDefinitions")
174  << "\n PsbQuadNull means no valid PSB quadruplet defined!";
175  }
176 
177  return value;
178 }
L1GtPsbQuad
quadruples sent to GT via PSB