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 
26 // static class members
27 
28 const std::string L1GtVhdlDefinitions::vhdlTemplateAlgoAndOr_("pre_algo_and_or.vhd");
38 
41 
57 
80 
81 // constructor
83 {
84 
85  objType2Str_[Mu]="muon";
86  objType2Str_[NoIsoEG]="eg";
87  objType2Str_[IsoEG]="ieg";
88  objType2Str_[ForJet]="fwdjet";
89  objType2Str_[TauJet]="tau";
90  objType2Str_[CenJet]="jet";
91  objType2Str_[JetCounts]="jet_cnts";
92  objType2Str_[HTT]="htt";
93  objType2Str_[ETT]="ett";
94  objType2Str_[ETM]="etm";
95 
96  condType2Str_[Type1s]="1_s";
97  condType2Str_[Type2s]="2_s";
98  condType2Str_[Type2wsc]="2_wsc";
99  condType2Str_[Type3s]="3";
100  condType2Str_[Type4s]="4";
101  condType2Str_[Type2cor]="Type2cor";
102  condType2Str_[TypeETM]="cond";
103  condType2Str_[TypeETT]="cond";
104  condType2Str_[TypeHTT]="cond";
105  condType2Str_[TypeJetCounts]="jet_cnts";
106 
107  caloType2Int_[IsoEG]="0";
108  caloType2Int_[NoIsoEG]="1";
109  caloType2Int_[CenJet]="2";
110  caloType2Int_[TauJet]="3";
111  caloType2Int_[ForJet]="4";
112  caloType2Int_[Mu]="5";
113  caloType2Int_[ETM]="6";
114 
115 }
116 
117 // destructor
119 {
120 
121  // empty
122 
123 }
124 
125 const std::map<L1GtObject,std::string> L1GtVhdlDefinitions::getObj2StrMap()
126 {
127  return objType2Str_;
128 }
129 
130 const std::map<L1GtConditionType,std::string> L1GtVhdlDefinitions::getCond2StrMap()
131 {
132  return condType2Str_;
133 }
134 
135 const std::map<L1GtObject,std::string> L1GtVhdlDefinitions::getCalo2IntMap()
136 {
137  return caloType2Int_;
138 }
139 
141 {
142 
143  return objType2Str_[type];
144 }
145 
147 {
148 
149  return condType2Str_[type];
150 }
151 
static const std::string substParamMuonDefVals_
static const std::string vhdlTemplateAlgoAndOr_
type
Definition: HCALResponse.h:21
std::map< L1GtConditionType, std::string > condType2Str_
converts L1GtObject to calo_nr
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_
static const std::string stringConstantEsumsLow_
Definition: L1GtObject.h:36
static const std::string substParamJetsDefVals_
static const std::string substParamDefValType_
static const std::string substParamJetCntsCommon_
L1GtConditionType
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:38
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_
std::map< L1GtObject, std::string > caloType2Int_
converts L1GtObject to string
static const std::string vhdlTemplateCaloSetup_
static const std::string substParamDefValId_
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_
static const std::string stringConstantPtLowDefVal_
static const std::string quartusSetupFileChip1_
static const std::string outputSubDir1_
static const std::string stringConstantQualityDefVal_
Definition: L1GtObject.h:30
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:37
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_
std::map< L1GtObject, std::string > objType2Str_
converts L1GtConditionType to firmware string
static const std::string substParamEsumsDefVals_
const std::map< L1GtObject, std::string > getCalo2IntMap()