CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Protected Attributes | Private Attributes
L1GtVhdlDefinitions Class Reference

#include <L1GtVhdlDefinitions.h>

Inheritance diagram for L1GtVhdlDefinitions:
L1GtVhdlWriterCore

Public Types

enum  VmeRegister {
  RegPtHighThreshold, RegPtLowThreshold, RegQualityRange, RegChargeCorrelation,
  RegEtThreshold
}
 

Public Member Functions

const std::map< L1GtObject, std::string > getCalo2IntMap ()
 
const std::map< L1GtConditionType, std::string > getCond2StrMap ()
 
const std::map< L1GtObject, std::string > getObj2StrMap ()
 
 L1GtVhdlDefinitions ()
 constructor More...
 
std::string obj2str (const L1GtObject &type)
 converts object type to firmware string More...
 
std::string type2str (const L1GtConditionType &type)
 converts a condition type to firmware string More...
 
virtual ~L1GtVhdlDefinitions ()
 destructor More...
 

Static Protected Attributes

static const std::string outputSubDir1_
 
static const std::string outputSubDir2_
 
static const std::string quartusSetupFileChip1_
 
static const std::string quartusSetupFileChip2_
 
static const std::string stringConstantAlgo_
 
static const std::string stringConstantCalo_
 
static const std::string stringConstantCharge1s_
 
static const std::string stringConstantCharge2s_
 
static const std::string stringConstantCharge2wsc_
 
static const std::string stringConstantCharge3s_
 
static const std::string stringConstantCharge4s_
 
static const std::string stringConstantCommon_
 
static const std::string stringConstantConstantNr_
 
static const std::string stringConstantDefValId_
 
static const std::string stringConstantEsumsHigh_
 
static const std::string stringConstantEsumsLHighDefVal_
 
static const std::string stringConstantEsumsLow_
 
static const std::string stringConstantEsumsLowDefVal_
 
static const std::string stringConstantJetCountsDefVal_
 
static const std::string stringConstantPth_
 
static const std::string stringConstantPtHighDefVal_
 
static const std::string stringConstantPtl_
 
static const std::string stringConstantPtLowDefVal_
 
static const std::string stringConstantQuality_
 
static const std::string stringConstantQualityDefVal_
 
static const std::string stringConstantQuargeDefVal_
 
static const std::string substParamAlgos_
 
static const std::string substParamCaloDefVals_
 
static const std::string substParamCaloOrMuon_
 
static const std::string substParamCharge_
 
static const std::string substParamContent_
 
static const std::string substParamDefValId_
 
static const std::string substParamDefValType_
 
static const std::string substParamEsumsDefVals_
 
static const std::string substParamJetCntsCommon_
 
static const std::string substParamJetsDefVals_
 
static const std::string substParamMaxNr_
 
static const std::string substParamMuonDefVals_
 
static const std::string substParamOthers_
 
static const std::string substParamParticle_
 
static const std::string substParamType_
 
static const std::string vhdlTemplateAlgoAndOr_
 
static const std::string vhdlTemplateCaloSetup_
 
static const std::string vhdlTemplateCondChip_
 
static const std::string vhdlTemplateCondChipPkg1_
 
static const std::string vhdlTemplateCondChipPkg2_
 
static const std::string vhdlTemplateDefValPkg_
 
static const std::string vhdlTemplateEtmSetup_
 
static const std::string vhdlTemplateMuonSetup_
 

Private Attributes

std::map< L1GtObject, std::string > caloType2Int_
 converts L1GtObject to string More...
 
std::map< L1GtConditionType, std::string > condType2Str_
 converts L1GtObject to calo_nr More...
 
std::map< L1GtObject, std::string > objType2Str_
 converts L1GtConditionType to firmware string More...
 

Detailed Description

Description: Contains conversion maps for conversion of trigger objects to strings etc.
Implementation: <TODO: enter implementation details>

Author
: Philipp Wagner

Definition at line 28 of file L1GtVhdlDefinitions.h.

Member Enumeration Documentation

◆ VmeRegister

Constructor & Destructor Documentation

◆ L1GtVhdlDefinitions()

L1GtVhdlDefinitions::L1GtVhdlDefinitions ( )

constructor

Definition at line 81 of file L1GtVhdlDefinitions.cc.

References caloType2Int_, CenJet, condType2Str_, ETM, ETT, ForJet, HTT, IsoEG, JetCounts, Mu, NoIsoEG, objType2Str_, TauJet, Type1s, Type2cor, Type2s, Type2wsc, Type3s, Type4s, TypeETM, TypeETT, TypeHTT, and TypeJetCounts.

81  {
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 }
std::map< L1GtConditionType, std::string > condType2Str_
converts L1GtObject to calo_nr
Definition: L1GtObject.h:36
Definition: L1GtObject.h:29
Definition: L1GtObject.h:35
std::map< L1GtObject, std::string > caloType2Int_
converts L1GtObject to string
std::map< L1GtObject, std::string > objType2Str_
converts L1GtConditionType to firmware string
Definition: L1GtObject.h:37

◆ ~L1GtVhdlDefinitions()

L1GtVhdlDefinitions::~L1GtVhdlDefinitions ( )
virtual

destructor

Definition at line 114 of file L1GtVhdlDefinitions.cc.

114  {
115  // empty
116 }

Member Function Documentation

◆ getCalo2IntMap()

const std::map< L1GtObject, std::string > L1GtVhdlDefinitions::getCalo2IntMap ( )

Definition at line 122 of file L1GtVhdlDefinitions.cc.

References caloType2Int_.

Referenced by L1GtVhdlWriterCore::L1GtVhdlWriterCore().

122 { return caloType2Int_; }
std::map< L1GtObject, std::string > caloType2Int_
converts L1GtObject to string

◆ getCond2StrMap()

const std::map< L1GtConditionType, std::string > L1GtVhdlDefinitions::getCond2StrMap ( )

Definition at line 120 of file L1GtVhdlDefinitions.cc.

References condType2Str_.

Referenced by L1GtVhdlWriterCore::L1GtVhdlWriterCore().

120 { return condType2Str_; }
std::map< L1GtConditionType, std::string > condType2Str_
converts L1GtObject to calo_nr

◆ getObj2StrMap()

const std::map< L1GtObject, std::string > L1GtVhdlDefinitions::getObj2StrMap ( )

Definition at line 118 of file L1GtVhdlDefinitions.cc.

References objType2Str_.

Referenced by L1GtVhdlWriterCore::L1GtVhdlWriterCore().

118 { return objType2Str_; }
std::map< L1GtObject, std::string > objType2Str_
converts L1GtConditionType to firmware string

◆ obj2str()

std::string L1GtVhdlDefinitions::obj2str ( const L1GtObject type)

converts object type to firmware string

Definition at line 124 of file L1GtVhdlDefinitions.cc.

References objType2Str_.

Referenced by L1GtVmeWriterCore::writeVME().

124 { return objType2Str_[type]; }
std::map< L1GtObject, std::string > objType2Str_
converts L1GtConditionType to firmware string

◆ type2str()

std::string L1GtVhdlDefinitions::type2str ( const L1GtConditionType type)

converts a condition type to firmware string

Definition at line 126 of file L1GtVhdlDefinitions.cc.

References condType2Str_.

Referenced by L1GtVmeWriterCore::writeVME().

126 { return condType2Str_[type]; }
std::map< L1GtConditionType, std::string > condType2Str_
converts L1GtObject to calo_nr

Member Data Documentation

◆ caloType2Int_

std::map<L1GtObject, std::string> L1GtVhdlDefinitions::caloType2Int_
private

converts L1GtObject to string

Definition at line 126 of file L1GtVhdlDefinitions.h.

Referenced by getCalo2IntMap(), and L1GtVhdlDefinitions().

◆ condType2Str_

std::map<L1GtConditionType, std::string> L1GtVhdlDefinitions::condType2Str_
private

converts L1GtObject to calo_nr

Definition at line 123 of file L1GtVhdlDefinitions.h.

Referenced by getCond2StrMap(), L1GtVhdlDefinitions(), and type2str().

◆ objType2Str_

std::map<L1GtObject, std::string> L1GtVhdlDefinitions::objType2Str_
private

converts L1GtConditionType to firmware string

Definition at line 120 of file L1GtVhdlDefinitions.h.

Referenced by getObj2StrMap(), L1GtVhdlDefinitions(), and obj2str().

◆ outputSubDir1_

const std::string L1GtVhdlDefinitions::outputSubDir1_
staticprotected

◆ outputSubDir2_

const std::string L1GtVhdlDefinitions::outputSubDir2_
staticprotected

◆ quartusSetupFileChip1_

const std::string L1GtVhdlDefinitions::quartusSetupFileChip1_
staticprotected

Definition at line 61 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeQsfSetupFiles().

◆ quartusSetupFileChip2_

const std::string L1GtVhdlDefinitions::quartusSetupFileChip2_
staticprotected

Definition at line 62 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeQsfSetupFiles().

◆ stringConstantAlgo_

const std::string L1GtVhdlDefinitions::stringConstantAlgo_
staticprotected

Definition at line 93 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeAlgoSetup().

◆ stringConstantCalo_

const std::string L1GtVhdlDefinitions::stringConstantCalo_
staticprotected

Definition at line 103 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

◆ stringConstantCharge1s_

const std::string L1GtVhdlDefinitions::stringConstantCharge1s_
staticprotected

◆ stringConstantCharge2s_

const std::string L1GtVhdlDefinitions::stringConstantCharge2s_
staticprotected

◆ stringConstantCharge2wsc_

const std::string L1GtVhdlDefinitions::stringConstantCharge2wsc_
staticprotected

◆ stringConstantCharge3s_

const std::string L1GtVhdlDefinitions::stringConstantCharge3s_
staticprotected

◆ stringConstantCharge4s_

const std::string L1GtVhdlDefinitions::stringConstantCharge4s_
staticprotected

◆ stringConstantCommon_

const std::string L1GtVhdlDefinitions::stringConstantCommon_
staticprotected

◆ stringConstantConstantNr_

const std::string L1GtVhdlDefinitions::stringConstantConstantNr_
staticprotected

◆ stringConstantDefValId_

const std::string L1GtVhdlDefinitions::stringConstantDefValId_
staticprotected

Definition at line 94 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

◆ stringConstantEsumsHigh_

const std::string L1GtVhdlDefinitions::stringConstantEsumsHigh_
staticprotected

Definition at line 113 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

◆ stringConstantEsumsLHighDefVal_

const std::string L1GtVhdlDefinitions::stringConstantEsumsLHighDefVal_
staticprotected

Definition at line 98 of file L1GtVhdlDefinitions.h.

◆ stringConstantEsumsLow_

const std::string L1GtVhdlDefinitions::stringConstantEsumsLow_
staticprotected

Definition at line 112 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

◆ stringConstantEsumsLowDefVal_

const std::string L1GtVhdlDefinitions::stringConstantEsumsLowDefVal_
staticprotected

Definition at line 97 of file L1GtVhdlDefinitions.h.

◆ stringConstantJetCountsDefVal_

const std::string L1GtVhdlDefinitions::stringConstantJetCountsDefVal_
staticprotected

Definition at line 95 of file L1GtVhdlDefinitions.h.

◆ stringConstantPth_

const std::string L1GtVhdlDefinitions::stringConstantPth_
staticprotected

Definition at line 111 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

◆ stringConstantPtHighDefVal_

const std::string L1GtVhdlDefinitions::stringConstantPtHighDefVal_
staticprotected

Definition at line 100 of file L1GtVhdlDefinitions.h.

◆ stringConstantPtl_

const std::string L1GtVhdlDefinitions::stringConstantPtl_
staticprotected

Definition at line 110 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

◆ stringConstantPtLowDefVal_

const std::string L1GtVhdlDefinitions::stringConstantPtLowDefVal_
staticprotected

Definition at line 99 of file L1GtVhdlDefinitions.h.

◆ stringConstantQuality_

const std::string L1GtVhdlDefinitions::stringConstantQuality_
staticprotected

Definition at line 114 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

◆ stringConstantQualityDefVal_

const std::string L1GtVhdlDefinitions::stringConstantQualityDefVal_
staticprotected

Definition at line 101 of file L1GtVhdlDefinitions.h.

◆ stringConstantQuargeDefVal_

const std::string L1GtVhdlDefinitions::stringConstantQuargeDefVal_
staticprotected

Definition at line 102 of file L1GtVhdlDefinitions.h.

◆ substParamAlgos_

const std::string L1GtVhdlDefinitions::substParamAlgos_
staticprotected

Definition at line 75 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeAlgoSetup().

◆ substParamCaloDefVals_

const std::string L1GtVhdlDefinitions::substParamCaloDefVals_
staticprotected

Definition at line 85 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

◆ substParamCaloOrMuon_

const std::string L1GtVhdlDefinitions::substParamCaloOrMuon_
staticprotected

Definition at line 80 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

◆ substParamCharge_

const std::string L1GtVhdlDefinitions::substParamCharge_
staticprotected

◆ substParamContent_

const std::string L1GtVhdlDefinitions::substParamContent_
staticprotected

Definition at line 81 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

◆ substParamDefValId_

const std::string L1GtVhdlDefinitions::substParamDefValId_
staticprotected

Definition at line 79 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

◆ substParamDefValType_

const std::string L1GtVhdlDefinitions::substParamDefValType_
staticprotected

Definition at line 83 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

◆ substParamEsumsDefVals_

const std::string L1GtVhdlDefinitions::substParamEsumsDefVals_
staticprotected

Definition at line 86 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

◆ substParamJetCntsCommon_

const std::string L1GtVhdlDefinitions::substParamJetCntsCommon_
staticprotected

◆ substParamJetsDefVals_

const std::string L1GtVhdlDefinitions::substParamJetsDefVals_
staticprotected

Definition at line 87 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

◆ substParamMaxNr_

const std::string L1GtVhdlDefinitions::substParamMaxNr_
staticprotected

Definition at line 78 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

◆ substParamMuonDefVals_

const std::string L1GtVhdlDefinitions::substParamMuonDefVals_
staticprotected

Definition at line 84 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

◆ substParamOthers_

const std::string L1GtVhdlDefinitions::substParamOthers_
staticprotected

Definition at line 82 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

◆ substParamParticle_

const std::string L1GtVhdlDefinitions::substParamParticle_
staticprotected

◆ substParamType_

const std::string L1GtVhdlDefinitions::substParamType_
staticprotected

◆ vhdlTemplateAlgoAndOr_

const std::string L1GtVhdlDefinitions::vhdlTemplateAlgoAndOr_
staticprotected

Definition at line 53 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeAlgoSetup().

◆ vhdlTemplateCaloSetup_

const std::string L1GtVhdlDefinitions::vhdlTemplateCaloSetup_
staticprotected

Definition at line 58 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeMuonSetupVhdl().

◆ vhdlTemplateCondChip_

const std::string L1GtVhdlDefinitions::vhdlTemplateCondChip_
staticprotected

Definition at line 54 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeConditionChipSetup().

◆ vhdlTemplateCondChipPkg1_

const std::string L1GtVhdlDefinitions::vhdlTemplateCondChipPkg1_
staticprotected

Definition at line 59 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeCondChipPkg().

◆ vhdlTemplateCondChipPkg2_

const std::string L1GtVhdlDefinitions::vhdlTemplateCondChipPkg2_
staticprotected

Definition at line 60 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeCondChipPkg().

◆ vhdlTemplateDefValPkg_

const std::string L1GtVhdlDefinitions::vhdlTemplateDefValPkg_
staticprotected

Definition at line 55 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

◆ vhdlTemplateEtmSetup_

const std::string L1GtVhdlDefinitions::vhdlTemplateEtmSetup_
staticprotected

Definition at line 56 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeEtmSetup().

◆ vhdlTemplateMuonSetup_

const std::string L1GtVhdlDefinitions::vhdlTemplateMuonSetup_
staticprotected

Definition at line 57 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeMuonSetupVhdl().