CMS 3D CMS Logo

L1GtVhdlDefinitions.cc
Go to the documentation of this file.
1 
15 // this class header
19 
20 // system include files
21 #include <string>
22 
23 // user include files
24 
25 // static class members
26 
27 const std::string L1GtVhdlDefinitions::vhdlTemplateAlgoAndOr_("pre_algo_and_or.vhd");
37 
40 
56 
79 
80 // constructor
82  objType2Str_[Mu] = "muon";
83  objType2Str_[NoIsoEG] = "eg";
84  objType2Str_[IsoEG] = "ieg";
85  objType2Str_[ForJet] = "fwdjet";
86  objType2Str_[TauJet] = "tau";
87  objType2Str_[CenJet] = "jet";
88  objType2Str_[JetCounts] = "jet_cnts";
89  objType2Str_[HTT] = "htt";
90  objType2Str_[ETT] = "ett";
91  objType2Str_[ETM] = "etm";
92 
93  condType2Str_[Type1s] = "1_s";
94  condType2Str_[Type2s] = "2_s";
95  condType2Str_[Type2wsc] = "2_wsc";
96  condType2Str_[Type3s] = "3";
97  condType2Str_[Type4s] = "4";
98  condType2Str_[Type2cor] = "Type2cor";
99  condType2Str_[TypeETM] = "cond";
100  condType2Str_[TypeETT] = "cond";
101  condType2Str_[TypeHTT] = "cond";
102  condType2Str_[TypeJetCounts] = "jet_cnts";
103 
104  caloType2Int_[IsoEG] = "0";
105  caloType2Int_[NoIsoEG] = "1";
106  caloType2Int_[CenJet] = "2";
107  caloType2Int_[TauJet] = "3";
108  caloType2Int_[ForJet] = "4";
109  caloType2Int_[Mu] = "5";
110  caloType2Int_[ETM] = "6";
111 }
112 
113 // destructor
115  // empty
116 }
117 
118 const std::map<L1GtObject, std::string> L1GtVhdlDefinitions::getObj2StrMap() { return objType2Str_; }
119 
120 const std::map<L1GtConditionType, std::string> L1GtVhdlDefinitions::getCond2StrMap() { return condType2Str_; }
121 
122 const std::map<L1GtObject, std::string> L1GtVhdlDefinitions::getCalo2IntMap() { return caloType2Int_; }
123 
125 
static const std::string substParamMuonDefVals_
static const std::string vhdlTemplateAlgoAndOr_
std::string obj2str(const L1GtObject &type)
converts object type to firmware string
std::string type2str(const L1GtConditionType &type)
converts a condition type to firmware string
static const std::string substParamCaloDefVals_
static const std::string stringConstantEsumsLowDefVal_
static const std::string stringConstantCharge2wsc_
const std::map< L1GtConditionType, std::string > getCond2StrMap()
static const std::string quartusSetupFileChip2_
static const std::string stringConstantDefValId_
std::map< L1GtConditionType, std::string > condType2Str_
converts L1GtObject to calo_nr
static const std::string stringConstantEsumsLow_
Definition: L1GtObject.h:35
L1GtConditionType
static const std::string substParamJetsDefVals_
static const std::string substParamDefValType_
static const std::string substParamJetCntsCommon_
static const std::string stringConstantPtHighDefVal_
static const std::string stringConstantCommon_
virtual ~L1GtVhdlDefinitions()
destructor
static const std::string substParamAlgos_
static const std::string vhdlTemplateCondChipPkg2_
Definition: L1GtObject.h:37
static const std::string stringConstantCharge4s_
static const std::string stringConstantEsumsLHighDefVal_
static const std::string stringConstantAlgo_
static const std::string stringConstantEsumsHigh_
L1GtVhdlDefinitions()
constructor
static const std::string substParamType_
static const std::string vhdlTemplateCaloSetup_
static const std::string substParamDefValId_
std::map< L1GtObject, std::string > caloType2Int_
converts L1GtObject to string
static const std::string stringConstantQuargeDefVal_
static const std::string vhdlTemplateEtmSetup_
static const std::string stringConstantCharge3s_
static const std::string vhdlTemplateMuonSetup_
static const std::string vhdlTemplateCondChipPkg1_
std::map< L1GtObject, std::string > objType2Str_
converts L1GtConditionType to firmware string
static const std::string stringConstantPtLowDefVal_
static const std::string quartusSetupFileChip1_
static const std::string outputSubDir1_
static const std::string stringConstantQualityDefVal_
Definition: L1GtObject.h:29
static const std::string stringConstantCalo_
static const std::string stringConstantJetCountsDefVal_
static const std::string outputSubDir2_
static const std::string stringConstantPth_
static const std::string substParamContent_
static const std::string substParamParticle_
Definition: L1GtObject.h:36
static const std::string stringConstantPtl_
static const std::string substParamOthers_
static const std::string vhdlTemplateDefValPkg_
static const std::string substParamCaloOrMuon_
static const std::string stringConstantQuality_
static const std::string substParamMaxNr_
static const std::string stringConstantCharge1s_
const std::map< L1GtObject, std::string > getObj2StrMap()
static const std::string substParamCharge_
static const std::string stringConstantConstantNr_
static const std::string vhdlTemplateCondChip_
static const std::string stringConstantCharge2s_
static const std::string substParamEsumsDefVals_
const std::map< L1GtObject, std::string > getCalo2IntMap()