CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtVhdlDefinitions.h
Go to the documentation of this file.
1 #ifndef L1GtConfigProducers_L1GtVhdlDefinitions_h
2 #define L1GtConfigProducers_L1GtVhdlDefinitions_h
3 
20 // system include files
21 #include <string>
22 
23 // user include files
26 
27 // forward declarations
28 
29 // class declaration
31 {
32 
33 public:
34 
36 
39 
41  virtual ~L1GtVhdlDefinitions();
42 
44  std::string obj2str(const L1GtObject &type);
45 
47  std::string type2str(const L1GtConditionType &type);
48 
49  const std::map<L1GtObject,std::string> getObj2StrMap();
50 
51  const std::map<L1GtConditionType,std::string> getCond2StrMap();
52 
53  const std::map<L1GtObject,std::string> getCalo2IntMap();
54 
55 protected:
56 
57  // templates
58 
59  static const std::string vhdlTemplateAlgoAndOr_;
60  static const std::string vhdlTemplateCondChip_;
61  static const std::string vhdlTemplateDefValPkg_;
62  static const std::string vhdlTemplateEtmSetup_;
63  static const std::string vhdlTemplateMuonSetup_;
64  static const std::string vhdlTemplateCaloSetup_;
65  static const std::string vhdlTemplateCondChipPkg1_;
66  static const std::string vhdlTemplateCondChipPkg2_;
67  static const std::string quartusSetupFileChip1_;
68  static const std::string quartusSetupFileChip2_;
69 
70  // output subdirectories
71 
72  static const std::string outputSubDir1_;
73  static const std::string outputSubDir2_;
74 
75 
76  // internal templates
77 
78  // ...
79 
80  // substitution parameters
81 
82  static const std::string substParamAlgos_;
83  static const std::string substParamParticle_;
84  static const std::string substParamType_;
85  static const std::string substParamMaxNr_;
86  static const std::string substParamDefValId_;
87  static const std::string substParamCaloOrMuon_;
88  static const std::string substParamContent_;
89  static const std::string substParamOthers_;
90  static const std::string substParamDefValType_;
91  static const std::string substParamMuonDefVals_;
92  static const std::string substParamCaloDefVals_;
93  static const std::string substParamEsumsDefVals_;
94  static const std::string substParamJetsDefVals_;
95  static const std::string substParamCharge_;
96  static const std::string substParamJetCntsCommon_;
97 
98 
99  //string constants
100 
101  static const std::string stringConstantAlgo_;
102  static const std::string stringConstantDefValId_;
103  static const std::string stringConstantJetCountsDefVal_;
104  static const std::string stringConstantConstantNr_;
105  static const std::string stringConstantEsumsLowDefVal_;
106  static const std::string stringConstantEsumsLHighDefVal_;
107  static const std::string stringConstantPtLowDefVal_;
108  static const std::string stringConstantPtHighDefVal_;
109  static const std::string stringConstantQualityDefVal_;
110  static const std::string stringConstantQuargeDefVal_;
111  static const std::string stringConstantCalo_;
112  static const std::string stringConstantCharge1s_;
113  static const std::string stringConstantCharge2s_;
114  static const std::string stringConstantCharge2wsc_;
115  static const std::string stringConstantCharge3s_;
116  static const std::string stringConstantCharge4s_;
117  static const std::string stringConstantCommon_;
118  static const std::string stringConstantPtl_;
119  static const std::string stringConstantPth_;
120  static const std::string stringConstantEsumsLow_;
121  static const std::string stringConstantEsumsHigh_;
122  static const std::string stringConstantQuality_;
123 
124 
125  // ... and so on
126 
127 private:
128 
130  std::map<L1GtObject,std::string> objType2Str_;
131 
133  std::map<L1GtConditionType,std::string> condType2Str_;
134 
136  std::map<L1GtObject,std::string> caloType2Int_;
137 
138 };
139 
140 #endif /*L1GtConfigProducers_L1GtVhdlDefinitions_h*/
141 
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_
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_
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_
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_
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()