CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/L1TriggerConfig/L1GtConfigProducers/src/L1GtVhdlDefinitions.cc

Go to the documentation of this file.
00001 
00017 // this class header
00018 #include "L1TriggerConfig/L1GtConfigProducers/interface/L1GtVhdlDefinitions.h"
00019 #include "CondFormats/L1TObjects/interface/L1GtFwd.h"
00020 #include "CondFormats/L1TObjects/interface/L1GtTriggerMenuFwd.h"
00021 
00022 // system include files
00023 #include <string>
00024 
00025 // user include files
00026 
00027 
00028 // static class members
00029 
00030 const std::string L1GtVhdlDefinitions::vhdlTemplateAlgoAndOr_("pre_algo_and_or.vhd");
00031 const std::string L1GtVhdlDefinitions::vhdlTemplateCondChip_("cond_chip.vhd");
00032 const std::string L1GtVhdlDefinitions::vhdlTemplateEtmSetup_("etm_setup.vhd");
00033 const std::string L1GtVhdlDefinitions::vhdlTemplateMuonSetup_("muon_setup.vhd");
00034 const std::string L1GtVhdlDefinitions::vhdlTemplateCaloSetup_("calo_setup.vhd");
00035 const std::string L1GtVhdlDefinitions::vhdlTemplateCondChipPkg1_("cond1_chip_pkg.vhd");
00036 const std::string L1GtVhdlDefinitions::vhdlTemplateCondChipPkg2_("cond2_chip_pkg.vhd");
00037 const std::string L1GtVhdlDefinitions::vhdlTemplateDefValPkg_("def_val_pkg.vhd");
00038 const std::string L1GtVhdlDefinitions::quartusSetupFileChip1_("cond1_chip.qsf");
00039 const std::string L1GtVhdlDefinitions::quartusSetupFileChip2_("cond2_chip.qsf");
00040 
00041 const std::string L1GtVhdlDefinitions::outputSubDir1_("cond1");
00042 const std::string L1GtVhdlDefinitions::outputSubDir2_("cond2");
00043 
00044 const std::string L1GtVhdlDefinitions::substParamAlgos_("prealgos");
00045 const std::string L1GtVhdlDefinitions::substParamParticle_("particle");
00046 const std::string L1GtVhdlDefinitions::substParamType_("type");
00047 const std::string L1GtVhdlDefinitions::substParamMaxNr_("max_nr");
00048 const std::string L1GtVhdlDefinitions::substParamDefValId_("def_val_id");
00049 const std::string L1GtVhdlDefinitions::substParamContent_("content");
00050 const std::string L1GtVhdlDefinitions::substParamOthers_("others");
00051 const std::string L1GtVhdlDefinitions::substParamDefValType_("defvaltype");
00052 const std::string L1GtVhdlDefinitions::substParamCaloOrMuon_("calo_or_muon");
00053 const std::string L1GtVhdlDefinitions::substParamMuonDefVals_("muon_def_vals");
00054 const std::string L1GtVhdlDefinitions::substParamCaloDefVals_("calo_def_vals");
00055 const std::string L1GtVhdlDefinitions::substParamEsumsDefVals_("esums_def_vals");
00056 const std::string L1GtVhdlDefinitions::substParamJetsDefVals_("jets_def_vals");
00057 const std::string L1GtVhdlDefinitions::substParamJetCntsCommon_("jet_cnts_common");
00058 const std::string L1GtVhdlDefinitions::substParamCharge_("charge");
00059 
00060 const std::string L1GtVhdlDefinitions::stringConstantAlgo_("pre_algo_a");
00061 const std::string L1GtVhdlDefinitions::stringConstantDefValId_("def_val_id");
00062 const std::string L1GtVhdlDefinitions::stringConstantJetCountsDefVal_("jet_cnts_def_val");
00063 const std::string L1GtVhdlDefinitions::stringConstantEsumsLowDefVal_("esums_low_def_val");
00064 const std::string L1GtVhdlDefinitions::stringConstantEsumsLHighDefVal_("esums_high_def_val");
00065 const std::string L1GtVhdlDefinitions::stringConstantPtLowDefVal_("ptl_def_val");
00066 const std::string L1GtVhdlDefinitions::stringConstantPtHighDefVal_("pth_def_val");
00067 const std::string L1GtVhdlDefinitions::stringConstantQualityDefVal_("quality_def_val");
00068 const std::string L1GtVhdlDefinitions::stringConstantQuargeDefVal_("charge_def_val");
00069 const std::string L1GtVhdlDefinitions::stringConstantCalo_("calo");
00070 const std::string L1GtVhdlDefinitions::stringConstantCharge1s_("charge_1_s");
00071 const std::string L1GtVhdlDefinitions::stringConstantCharge2s_("charge_2_s");
00072 const std::string L1GtVhdlDefinitions::stringConstantCharge2wsc_("charge_2_wsc");
00073 const std::string L1GtVhdlDefinitions::stringConstantCharge3s_("charge_3");
00074 const std::string L1GtVhdlDefinitions::stringConstantCharge4s_("charge_4");
00075 const std::string L1GtVhdlDefinitions::stringConstantCommon_("COMMON");
00076 const std::string L1GtVhdlDefinitions::stringConstantPtl_("ptl");
00077 const std::string L1GtVhdlDefinitions::stringConstantPth_("pth");
00078 const std::string L1GtVhdlDefinitions::stringConstantConstantNr_("CONSTANT nr_");
00079 const std::string L1GtVhdlDefinitions::stringConstantQuality_("quality");
00080 const std::string L1GtVhdlDefinitions::stringConstantEsumsLow_("esums_low");
00081 const std::string L1GtVhdlDefinitions::stringConstantEsumsHigh_("esums_high");
00082 
00083 // constructor
00084 L1GtVhdlDefinitions::L1GtVhdlDefinitions()
00085 {
00086 
00087     objType2Str_[Mu]="muon";
00088     objType2Str_[NoIsoEG]="eg";
00089     objType2Str_[IsoEG]="ieg";
00090     objType2Str_[ForJet]="fwdjet";
00091     objType2Str_[TauJet]="tau";
00092     objType2Str_[CenJet]="jet";
00093     objType2Str_[JetCounts]="jet_cnts";
00094     objType2Str_[HTT]="htt";
00095     objType2Str_[ETT]="ett";
00096     objType2Str_[ETM]="etm";
00097 
00098     condType2Str_[Type1s]="1_s";
00099     condType2Str_[Type2s]="2_s";
00100     condType2Str_[Type2wsc]="2_wsc";
00101     condType2Str_[Type3s]="3";
00102     condType2Str_[Type4s]="4";
00103     condType2Str_[Type2cor]="Type2cor";
00104     condType2Str_[TypeETM]="cond";
00105     condType2Str_[TypeETT]="cond";
00106     condType2Str_[TypeHTT]="cond";
00107     condType2Str_[TypeJetCounts]="jet_cnts";
00108 
00109     caloType2Int_[IsoEG]="0";
00110     caloType2Int_[NoIsoEG]="1";
00111     caloType2Int_[CenJet]="2";
00112     caloType2Int_[TauJet]="3";
00113     caloType2Int_[ForJet]="4";
00114     caloType2Int_[Mu]="5";
00115     caloType2Int_[ETM]="6";
00116 
00117 }
00118 
00119 // destructor
00120 L1GtVhdlDefinitions::~L1GtVhdlDefinitions()
00121 {
00122 
00123     // empty
00124 
00125 }
00126 
00127 const std::map<L1GtObject,std::string> L1GtVhdlDefinitions::getObj2StrMap()
00128 {
00129     return objType2Str_;
00130 }
00131 
00132 const std::map<L1GtConditionType,std::string> L1GtVhdlDefinitions::getCond2StrMap()
00133 {
00134     return condType2Str_;
00135 }
00136 
00137 const std::map<L1GtObject,std::string> L1GtVhdlDefinitions::getCalo2IntMap()
00138 {
00139     return caloType2Int_;
00140 }
00141 
00142 std::string L1GtVhdlDefinitions::obj2str(const L1GtObject &type)
00143 {
00144 
00145     return objType2Str_[type];
00146 }
00147 
00148 std::string L1GtVhdlDefinitions::type2str(const L1GtConditionType &type)
00149 {
00150 
00151     return condType2Str_[type];
00152 }
00153