CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtVhdlDefinitions.cc
Go to the documentation of this file.
1 
17 // this class header
21 
22 // system include files
23 #include <string>
24 
25 // user include files
26 
27 
28 // static class members
29 
30 const std::string L1GtVhdlDefinitions::vhdlTemplateAlgoAndOr_("pre_algo_and_or.vhd");
31 const std::string L1GtVhdlDefinitions::vhdlTemplateCondChip_("cond_chip.vhd");
32 const std::string L1GtVhdlDefinitions::vhdlTemplateEtmSetup_("etm_setup.vhd");
33 const std::string L1GtVhdlDefinitions::vhdlTemplateMuonSetup_("muon_setup.vhd");
34 const std::string L1GtVhdlDefinitions::vhdlTemplateCaloSetup_("calo_setup.vhd");
35 const std::string L1GtVhdlDefinitions::vhdlTemplateCondChipPkg1_("cond1_chip_pkg.vhd");
36 const std::string L1GtVhdlDefinitions::vhdlTemplateCondChipPkg2_("cond2_chip_pkg.vhd");
37 const std::string L1GtVhdlDefinitions::vhdlTemplateDefValPkg_("def_val_pkg.vhd");
38 const std::string L1GtVhdlDefinitions::quartusSetupFileChip1_("cond1_chip.qsf");
39 const std::string L1GtVhdlDefinitions::quartusSetupFileChip2_("cond2_chip.qsf");
40 
41 const std::string L1GtVhdlDefinitions::outputSubDir1_("cond1");
42 const std::string L1GtVhdlDefinitions::outputSubDir2_("cond2");
43 
44 const std::string L1GtVhdlDefinitions::substParamAlgos_("prealgos");
45 const std::string L1GtVhdlDefinitions::substParamParticle_("particle");
46 const std::string L1GtVhdlDefinitions::substParamType_("type");
47 const std::string L1GtVhdlDefinitions::substParamMaxNr_("max_nr");
48 const std::string L1GtVhdlDefinitions::substParamDefValId_("def_val_id");
49 const std::string L1GtVhdlDefinitions::substParamContent_("content");
50 const std::string L1GtVhdlDefinitions::substParamOthers_("others");
51 const std::string L1GtVhdlDefinitions::substParamDefValType_("defvaltype");
52 const std::string L1GtVhdlDefinitions::substParamCaloOrMuon_("calo_or_muon");
53 const std::string L1GtVhdlDefinitions::substParamMuonDefVals_("muon_def_vals");
54 const std::string L1GtVhdlDefinitions::substParamCaloDefVals_("calo_def_vals");
55 const std::string L1GtVhdlDefinitions::substParamEsumsDefVals_("esums_def_vals");
56 const std::string L1GtVhdlDefinitions::substParamJetsDefVals_("jets_def_vals");
57 const std::string L1GtVhdlDefinitions::substParamJetCntsCommon_("jet_cnts_common");
58 const std::string L1GtVhdlDefinitions::substParamCharge_("charge");
59 
60 const std::string L1GtVhdlDefinitions::stringConstantAlgo_("pre_algo_a");
61 const std::string L1GtVhdlDefinitions::stringConstantDefValId_("def_val_id");
62 const std::string L1GtVhdlDefinitions::stringConstantJetCountsDefVal_("jet_cnts_def_val");
63 const std::string L1GtVhdlDefinitions::stringConstantEsumsLowDefVal_("esums_low_def_val");
64 const std::string L1GtVhdlDefinitions::stringConstantEsumsLHighDefVal_("esums_high_def_val");
65 const std::string L1GtVhdlDefinitions::stringConstantPtLowDefVal_("ptl_def_val");
66 const std::string L1GtVhdlDefinitions::stringConstantPtHighDefVal_("pth_def_val");
67 const std::string L1GtVhdlDefinitions::stringConstantQualityDefVal_("quality_def_val");
68 const std::string L1GtVhdlDefinitions::stringConstantQuargeDefVal_("charge_def_val");
69 const std::string L1GtVhdlDefinitions::stringConstantCalo_("calo");
70 const std::string L1GtVhdlDefinitions::stringConstantCharge1s_("charge_1_s");
71 const std::string L1GtVhdlDefinitions::stringConstantCharge2s_("charge_2_s");
72 const std::string L1GtVhdlDefinitions::stringConstantCharge2wsc_("charge_2_wsc");
73 const std::string L1GtVhdlDefinitions::stringConstantCharge3s_("charge_3");
74 const std::string L1GtVhdlDefinitions::stringConstantCharge4s_("charge_4");
75 const std::string L1GtVhdlDefinitions::stringConstantCommon_("COMMON");
76 const std::string L1GtVhdlDefinitions::stringConstantPtl_("ptl");
77 const std::string L1GtVhdlDefinitions::stringConstantPth_("pth");
78 const std::string L1GtVhdlDefinitions::stringConstantConstantNr_("CONSTANT nr_");
79 const std::string L1GtVhdlDefinitions::stringConstantQuality_("quality");
80 const std::string L1GtVhdlDefinitions::stringConstantEsumsLow_("esums_low");
81 const std::string L1GtVhdlDefinitions::stringConstantEsumsHigh_("esums_high");
82 
83 // constructor
85 {
86 
87  objType2Str_[Mu]="muon";
88  objType2Str_[NoIsoEG]="eg";
89  objType2Str_[IsoEG]="ieg";
90  objType2Str_[ForJet]="fwdjet";
91  objType2Str_[TauJet]="tau";
92  objType2Str_[CenJet]="jet";
93  objType2Str_[JetCounts]="jet_cnts";
94  objType2Str_[HTT]="htt";
95  objType2Str_[ETT]="ett";
96  objType2Str_[ETM]="etm";
97 
98  condType2Str_[Type1s]="1_s";
99  condType2Str_[Type2s]="2_s";
100  condType2Str_[Type2wsc]="2_wsc";
101  condType2Str_[Type3s]="3";
102  condType2Str_[Type4s]="4";
103  condType2Str_[Type2cor]="Type2cor";
104  condType2Str_[TypeETM]="cond";
105  condType2Str_[TypeETT]="cond";
106  condType2Str_[TypeHTT]="cond";
107  condType2Str_[TypeJetCounts]="jet_cnts";
108 
109  caloType2Int_[IsoEG]="0";
110  caloType2Int_[NoIsoEG]="1";
111  caloType2Int_[CenJet]="2";
112  caloType2Int_[TauJet]="3";
113  caloType2Int_[ForJet]="4";
114  caloType2Int_[Mu]="5";
115  caloType2Int_[ETM]="6";
116 
117 }
118 
119 // destructor
121 {
122 
123  // empty
124 
125 }
126 
127 const std::map<L1GtObject,std::string> L1GtVhdlDefinitions::getObj2StrMap()
128 {
129  return objType2Str_;
130 }
131 
132 const std::map<L1GtConditionType,std::string> L1GtVhdlDefinitions::getCond2StrMap()
133 {
134  return condType2Str_;
135 }
136 
137 const std::map<L1GtObject,std::string> L1GtVhdlDefinitions::getCalo2IntMap()
138 {
139  return caloType2Int_;
140 }
141 
143 {
144 
145  return objType2Str_[type];
146 }
147 
149 {
150 
151  return condType2Str_[type];
152 }
153 
static const std::string substParamMuonDefVals_
static const std::string vhdlTemplateAlgoAndOr_
type
Definition: HCALResponse.h:22
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_
static const std::string substParamJetsDefVals_
Definition: L1GtFwd.h:53
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_
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
Definition: L1GtFwd.h:53
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_
L1GtConditionType
Definition: L1GtFwd.h:52
Definition: L1GtFwd.h:53
static const std::string quartusSetupFileChip1_
static const std::string outputSubDir1_
static const std::string stringConstantQualityDefVal_
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: L1GtFwd.h:53
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()
L1GtObject
GT objects.
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()