CMS 3D CMS Logo

L1GtVhdlDefinitions Class Reference

Description: Contains conversion maps for conversion of trigger objects to strings etc. More...

#include <L1TriggerConfig/L1GtConfigProducers/interface/L1GtVhdlDefinitions.h>

Inheritance diagram for L1GtVhdlDefinitions:

L1GtVhdlWriterCore

List of all members.

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
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
virtual ~L1GtVhdlDefinitions ()
 destructor

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
std::map< L1GtConditionType,
std::string > 
condType2Str_
 converts L1GtObject to calo_nr
std::map< L1GtObject, std::string > objType2Str_
 converts L1GtConditionType to firmware string


Detailed Description

Description: Contains conversion maps for conversion of trigger objects to strings etc.

Implementation: <TODO: enter implementation details>

Author:
: Philipp Wagner
$Date$ $Revision$

Definition at line 30 of file L1GtVhdlDefinitions.h.


Member Enumeration Documentation

enum L1GtVhdlDefinitions::VmeRegister

Enumerator:
RegPtHighThreshold 
RegPtLowThreshold 
RegQualityRange 
RegChargeCorrelation 
RegEtThreshold 

Definition at line 35 of file L1GtVhdlDefinitions.h.


Constructor & Destructor Documentation

L1GtVhdlDefinitions::L1GtVhdlDefinitions (  ) 

constructor

Definition at line 84 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.

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 }

L1GtVhdlDefinitions::~L1GtVhdlDefinitions (  )  [virtual]

destructor

Definition at line 120 of file L1GtVhdlDefinitions.cc.

00121 {
00122 
00123     // empty
00124 
00125 }


Member Function Documentation

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

Definition at line 137 of file L1GtVhdlDefinitions.cc.

References caloType2Int_.

Referenced by L1GtVhdlWriterCore::L1GtVhdlWriterCore().

00138 {
00139     return caloType2Int_;
00140 }

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

Definition at line 132 of file L1GtVhdlDefinitions.cc.

References condType2Str_.

Referenced by L1GtVhdlWriterCore::L1GtVhdlWriterCore().

00133 {
00134     return condType2Str_;
00135 }

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

Definition at line 127 of file L1GtVhdlDefinitions.cc.

References objType2Str_.

Referenced by L1GtVhdlWriterCore::L1GtVhdlWriterCore().

00128 {
00129     return objType2Str_;
00130 }

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

converts object type to firmware string

Definition at line 142 of file L1GtVhdlDefinitions.cc.

References objType2Str_.

Referenced by L1GtVmeWriterCore::writeVME().

00143 {
00144 
00145     return objType2Str_[type];
00146 }

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

converts a condition type to firmware string

Definition at line 148 of file L1GtVhdlDefinitions.cc.

References condType2Str_.

Referenced by L1GtVmeWriterCore::writeVME().

00149 {
00150 
00151     return condType2Str_[type];
00152 }


Member Data Documentation

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

converts L1GtObject to string

Reimplemented in L1GtVhdlWriterCore.

Definition at line 136 of file L1GtVhdlDefinitions.h.

Referenced by getCalo2IntMap(), and L1GtVhdlDefinitions().

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

converts L1GtObject to calo_nr

Reimplemented in L1GtVhdlWriterCore.

Definition at line 133 of file L1GtVhdlDefinitions.h.

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

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

converts L1GtConditionType to firmware string

Reimplemented in L1GtVhdlWriterCore.

Definition at line 130 of file L1GtVhdlDefinitions.h.

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

const std::string L1GtVhdlDefinitions::outputSubDir1_ [static, protected]

Definition at line 72 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::chip2OutputSubDir(), and L1GtVhdlWriterCore::makeFirmware().

const std::string L1GtVhdlDefinitions::outputSubDir2_ [static, protected]

Definition at line 73 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::chip2OutputSubDir(), and L1GtVhdlWriterCore::makeFirmware().

const std::string L1GtVhdlDefinitions::quartusSetupFileChip1_ [static, protected]

Definition at line 67 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeQsfSetupFiles().

const std::string L1GtVhdlDefinitions::quartusSetupFileChip2_ [static, protected]

Definition at line 68 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeQsfSetupFiles().

const std::string L1GtVhdlDefinitions::stringConstantAlgo_ [static, protected]

Definition at line 101 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeAlgoSetup().

const std::string L1GtVhdlDefinitions::stringConstantCalo_ [static, protected]

Definition at line 111 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

const std::string L1GtVhdlDefinitions::stringConstantCharge1s_ [static, protected]

Definition at line 112 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu().

const std::string L1GtVhdlDefinitions::stringConstantCharge2s_ [static, protected]

Definition at line 113 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu().

const std::string L1GtVhdlDefinitions::stringConstantCharge2wsc_ [static, protected]

Definition at line 114 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu().

const std::string L1GtVhdlDefinitions::stringConstantCharge3s_ [static, protected]

Definition at line 115 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu().

const std::string L1GtVhdlDefinitions::stringConstantCharge4s_ [static, protected]

Definition at line 116 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu().

const std::string L1GtVhdlDefinitions::stringConstantCommon_ [static, protected]

Definition at line 117 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu(), and L1GtVhdlWriterCore::getSubstParamCommonFromTriggerMenu().

const std::string L1GtVhdlDefinitions::stringConstantConstantNr_ [static, protected]

Definition at line 104 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::retNumberOfConditionsString().

const std::string L1GtVhdlDefinitions::stringConstantDefValId_ [static, protected]

Definition at line 102 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

const std::string L1GtVhdlDefinitions::stringConstantEsumsHigh_ [static, protected]

Definition at line 121 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

const std::string L1GtVhdlDefinitions::stringConstantEsumsLHighDefVal_ [static, protected]

Definition at line 106 of file L1GtVhdlDefinitions.h.

const std::string L1GtVhdlDefinitions::stringConstantEsumsLow_ [static, protected]

Definition at line 120 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

const std::string L1GtVhdlDefinitions::stringConstantEsumsLowDefVal_ [static, protected]

Definition at line 105 of file L1GtVhdlDefinitions.h.

const std::string L1GtVhdlDefinitions::stringConstantJetCountsDefVal_ [static, protected]

Definition at line 103 of file L1GtVhdlDefinitions.h.

const std::string L1GtVhdlDefinitions::stringConstantPth_ [static, protected]

Definition at line 119 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

const std::string L1GtVhdlDefinitions::stringConstantPtHighDefVal_ [static, protected]

Definition at line 108 of file L1GtVhdlDefinitions.h.

const std::string L1GtVhdlDefinitions::stringConstantPtl_ [static, protected]

Definition at line 118 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

const std::string L1GtVhdlDefinitions::stringConstantPtLowDefVal_ [static, protected]

Definition at line 107 of file L1GtVhdlDefinitions.h.

const std::string L1GtVhdlDefinitions::stringConstantQuality_ [static, protected]

Definition at line 122 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

const std::string L1GtVhdlDefinitions::stringConstantQualityDefVal_ [static, protected]

Definition at line 109 of file L1GtVhdlDefinitions.h.

const std::string L1GtVhdlDefinitions::stringConstantQuargeDefVal_ [static, protected]

Definition at line 110 of file L1GtVhdlDefinitions.h.

const std::string L1GtVhdlDefinitions::substParamAlgos_ [static, protected]

Definition at line 82 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeAlgoSetup().

const std::string L1GtVhdlDefinitions::substParamCaloDefVals_ [static, protected]

Definition at line 92 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

const std::string L1GtVhdlDefinitions::substParamCaloOrMuon_ [static, protected]

Definition at line 87 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

const std::string L1GtVhdlDefinitions::substParamCharge_ [static, protected]

Definition at line 95 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu(), and L1GtVhdlWriterCore::writeDefValPkg().

const std::string L1GtVhdlDefinitions::substParamContent_ [static, protected]

Definition at line 88 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

const std::string L1GtVhdlDefinitions::substParamDefValId_ [static, protected]

Definition at line 86 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

const std::string L1GtVhdlDefinitions::substParamDefValType_ [static, protected]

Definition at line 90 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

const std::string L1GtVhdlDefinitions::substParamEsumsDefVals_ [static, protected]

Definition at line 93 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

const std::string L1GtVhdlDefinitions::substParamJetCntsCommon_ [static, protected]

Definition at line 96 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu().

const std::string L1GtVhdlDefinitions::substParamJetsDefVals_ [static, protected]

Definition at line 94 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

const std::string L1GtVhdlDefinitions::substParamMaxNr_ [static, protected]

Definition at line 85 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

const std::string L1GtVhdlDefinitions::substParamMuonDefVals_ [static, protected]

Definition at line 91 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

const std::string L1GtVhdlDefinitions::substParamOthers_ [static, protected]

Definition at line 89 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer().

const std::string L1GtVhdlDefinitions::substParamParticle_ [static, protected]

Definition at line 83 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer(), L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu(), and L1GtVhdlWriterCore::getSubstParamCommonFromTriggerMenu().

const std::string L1GtVhdlDefinitions::substParamType_ [static, protected]

Definition at line 84 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer(), L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu(), and L1GtVhdlWriterCore::getSubstParamCommonFromTriggerMenu().

const std::string L1GtVhdlDefinitions::vhdlTemplateAlgoAndOr_ [static, protected]

Definition at line 59 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeAlgoSetup().

const std::string L1GtVhdlDefinitions::vhdlTemplateCaloSetup_ [static, protected]

Definition at line 64 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeMuonSetupVhdl().

const std::string L1GtVhdlDefinitions::vhdlTemplateCondChip_ [static, protected]

Definition at line 60 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeConditionChipSetup().

const std::string L1GtVhdlDefinitions::vhdlTemplateCondChipPkg1_ [static, protected]

Definition at line 65 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeCondChipPkg().

const std::string L1GtVhdlDefinitions::vhdlTemplateCondChipPkg2_ [static, protected]

Definition at line 66 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeCondChipPkg().

const std::string L1GtVhdlDefinitions::vhdlTemplateDefValPkg_ [static, protected]

Definition at line 61 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeDefValPkg().

const std::string L1GtVhdlDefinitions::vhdlTemplateEtmSetup_ [static, protected]

Definition at line 62 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeEtmSetup().

const std::string L1GtVhdlDefinitions::vhdlTemplateMuonSetup_ [static, protected]

Definition at line 63 of file L1GtVhdlDefinitions.h.

Referenced by L1GtVhdlWriterCore::writeMuonSetupVhdl().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:46 2009 for CMSSW by  doxygen 1.5.4