CMS 3D CMS Logo

Classes | Enumerations | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/CondFormats/L1TObjects/interface/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.

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

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 query::result.

                                                                    {
    char const *result= valueToKey(boardType, l1GtBoardTypeStringToEnumMap);
    if (boardType == BoardNull) {
        edm::LogInfo("L1GtDefinitions")
                << "\n  BoardNull means no valid board type defined!";
    }
    if (!result) {
      edm::LogInfo("L1GtDefinitions") << "\n  '" << boardType
                  << "' is not a recognized L1GtBoardType. "
                  << "\n  Return BoardNull, which means no valid board type defined!";
      return "BoardNull";
    }
    return result;
}
L1GtBoardType l1GtBoardTypeStringToEnum ( const std::string &  )

Definition at line 128 of file L1GtDefinitions.cc.

References BoardNull, and relativeConstraints::value.

                                                                {
    L1GtBoardType value = keyToValue(label.c_str(), l1GtBoardTypeStringToEnumMap);
    if (value == (L1GtBoardType) - 1) {
        edm::LogInfo("L1GtDefinitions") << "\n  '" << label
                << "' is not a recognized L1GtBoardType. \n  Return BoardNull.";
        value = BoardNull;
    }

    if (value == BoardNull) {
        edm::LogInfo("L1GtDefinitions")
                << "\n  BoardNull means no valid board type defined!";
    }

    return value;
}
std::string l1GtConditionCategoryEnumToString ( const L1GtConditionCategory )

Definition at line 248 of file L1GtDefinitions.cc.

References CondNull, and query::result.

Referenced by L1GtHwValidation::excludedAlgoList().

                                                                                            {
  char const *result = valueToKey(conditionCategory, l1GtConditionCategoryStringToEnumMap);
  if (conditionCategory == CondNull)
    edm::LogInfo("L1GtDefinitions")
            << "\n  Return CondNull, which means no valid condition category defined!";
    
  if (!result) {
    result = "CondNull";
    edm::LogInfo("L1GtDefinitions") << "\n  '" << conditionCategory
            << "' is not a recognized L1GtConditionCategory. "
            << "\n  Return CondNull, which means no valid condition category defined!";
  }

  return result;
}
L1GtConditionCategory l1GtConditionCategoryStringToEnum ( const std::string &  )

Definition at line 229 of file L1GtDefinitions.cc.

References CondNull, and relativeConstraints::value.

Referenced by L1GtHwValidation::L1GtHwValidation().

                                                                                {
  L1GtConditionCategory value = keyToValue(label.c_str(), l1GtConditionCategoryStringToEnumMap);
  // in case of unrecognized L1GtConditionCategory, return CondNull
  // to be dealt by the corresponding module
  if (value == (L1GtConditionCategory) -1) {
    edm::LogInfo("L1GtDefinitions") << "\n  '" << label
            << "' is not a recognized L1GtConditionCategory. \n  Return CondNull.";

    value = CondNull;
  }

  if (value == CondNull) {
      edm::LogInfo("L1GtDefinitions")
              << "\n  CondNull means no valid condition category defined!";
  }

  return value;
}
std::string l1GtConditionTypeEnumToString ( const L1GtConditionType )

Definition at line 215 of file L1GtDefinitions.cc.

References query::result, and TypeNull.

Referenced by L1GtHwValidation::excludedAlgoList().

                                                                                {
  const char *result = valueToKey(conditionType, l1GtConditionTypeStringToEnumMap);
  if (conditionType == TypeNull)
    edm::LogInfo("L1GtDefinitions") 
      << "\n  Return TypeNull, which means no valid condition type defined!";
  if (!result) {
    result = "TypeNull";
    edm::LogInfo("L1GtDefinitions") << "\n  '" << conditionType
            << "' is not a recognized L1GtConditionType. "
            << "\n  Return TypeNull, which means no valid condition type defined!";
  }
  return result;
}
L1GtConditionType l1GtConditionTypeStringToEnum ( const std::string &  )

Definition at line 195 of file L1GtDefinitions.cc.

References TypeNull, and relativeConstraints::value.

Referenced by L1GtHwValidation::L1GtHwValidation().

                                                                        {
    L1GtConditionType value = keyToValue(label.c_str(), l1GtConditionTypeStringToEnumMap);

    // in case of unrecognized L1GtConditionType, return TypeNull
    // to be dealt by the corresponding module
    if (value == (L1GtConditionType) -1) {
        edm::LogInfo("L1GtDefinitions")  << "\n  '" << label
                << "' is not a recognized L1GtConditionType. \n  Return TypeNull.";

        value = TypeNull;
    }

    if (value == TypeNull) {
        edm::LogInfo("L1GtDefinitions")
                << "\n  TypeNull means no valid condition type defined!";
    }

    return value;
}
std::string l1GtPsbQuadEnumToString ( const L1GtPsbQuad )

Definition at line 180 of file L1GtDefinitions.cc.

References PsbQuadNull, and query::result.

                                                              {
  char const*result = valueToKey(psbQuad, l1GtPsbQuadStringToEnumMap);
  if (psbQuad == PsbQuadNull)
    edm::LogInfo("L1GtDefinitions") << "\n  PsbQuadNull means no valid PSB quadruplet defined!";
  if (!result) {
    result = "PsbQuadNull";
    edm::LogInfo("L1GtDefinitions") << "\n  '" << psbQuad
                 << "' is not a recognized L1GtPsbQuad. "
                 << "\n  Return PsbQuadNull, which means no valid PSB quadruplet defined!";
  }

  return result;
}
L1GtPsbQuad l1GtPsbQuadStringToEnum ( const std::string &  )

Definition at line 162 of file L1GtDefinitions.cc.

References PsbQuadNull, and relativeConstraints::value.

                                                            {
    L1GtPsbQuad value = keyToValue(label.c_str(), l1GtPsbQuadStringToEnumMap);
    // in case of unrecognized L1GtPsbQuad, return PsbQuadNull
    // to be dealt by the corresponding module
    if (value == -1) {
        edm::LogInfo("L1GtDefinitions") << "\n  '" << label
                << "' is not a recognized L1GtPsbQuad. \n  Return PsbQuadNull.";
        value = PsbQuadNull;
    }

    if (value == PsbQuadNull) {
        edm::LogInfo("L1GtDefinitions")
                << "\n  PsbQuadNull means no valid PSB quadruplet defined!";
    }

    return value;
}