#include <L1GtVmeWriterCore.h>
Public Member Functions | |
std::string | calculateAddress (const L1GtObject &obj, const L1GtConditionType &type, const std::string ®, const int &index) |
calculates address More... | |
std::string | calculateJetsAddress (const int &countIndex, const int &obj, const int &index) |
calculates addresses for jets counts More... | |
std::string | closeTag (const std::string &tag) |
closes xml tag More... | |
int | condIndex2reg (const unsigned int &index) |
L1GtVmeWriterCore (const std::string &outputDir, const std::string &vmeXmlFile) | |
constructor More... | |
std::string | openTag (const std::string &tag) |
opens a new xml tag More... | |
std::string | spaces (const unsigned int &level) |
returns a string containing spaces dependant on level More... | |
std::string | vmeAddrValueBlock (const std::string &addr, const int &val, const int &spaceLevel, const bool setMsb=false) |
builds a address value block More... | |
void | writeVME (const std::vector< ConditionMap > &conditionMap, const std::map< std::string, int > &cond2intMap, const L1GtVhdlTemplateFile &header, const int spacesPerLevel=2) |
virtual | ~L1GtVmeWriterCore () |
destructor More... | |
Public Member Functions inherited from L1GtXmlParserTags | |
L1GtXmlParserTags () | |
constructor More... | |
virtual | ~L1GtXmlParserTags () |
destructor More... | |
Private Attributes | |
std::map< int, int > | jetObj2reg_ |
std::map< int, int > | jetType2reg_ |
std::string | m_outputDir |
output directory More... | |
std::string | m_vmeXmlFile |
output file More... | |
std::map< L1GtObject, int > | object2reg_ |
std::map< std::string, int > | reg2hex_ |
int | spacesPerLevel_ |
std::map< L1GtConditionType, int > | type2reg_ |
Additional Inherited Members | |
Static Protected Attributes inherited from L1GtXmlParserTags | |
static const std::string | m_xmlAlgorithmAttrAlias |
static const std::string | m_xmlAttrMax |
static const std::string | m_xmlAttrMode |
static const std::string | m_xmlAttrModeBit |
static const std::string | m_xmlAttrNr |
static const std::string | m_xmlAttrPin |
static const std::string | m_xmlAttrPinA |
static const std::string | m_xmlConditionAttrCondition |
static const std::string | m_xmlConditionAttrConditionBptx |
static const std::string | m_xmlConditionAttrConditionCalo |
static const std::string | m_xmlConditionAttrConditionCastor |
static const std::string | m_xmlConditionAttrConditionCorrelation |
static const std::string | m_xmlConditionAttrConditionEnergySum |
static const std::string | m_xmlConditionAttrConditionExternal |
static const std::string | m_xmlConditionAttrConditionHfBitCounts |
static const std::string | m_xmlConditionAttrConditionHfRingEtSums |
static const std::string | m_xmlConditionAttrConditionJetCounts |
static const std::string | m_xmlConditionAttrConditionMuon |
static const std::string | m_xmlConditionAttrObject |
static const std::string | m_xmlConditionAttrObjectBptx |
static const std::string | m_xmlConditionAttrObjectCastor |
static const std::string | m_xmlConditionAttrObjectCenJet |
static const std::string | m_xmlConditionAttrObjectETM |
static const std::string | m_xmlConditionAttrObjectETT |
static const std::string | m_xmlConditionAttrObjectForJet |
static const std::string | m_xmlConditionAttrObjectGtExternal |
static const std::string | m_xmlConditionAttrObjectHfBitCounts |
static const std::string | m_xmlConditionAttrObjectHfRingEtSums |
static const std::string | m_xmlConditionAttrObjectHTM |
static const std::string | m_xmlConditionAttrObjectHTT |
static const std::string | m_xmlConditionAttrObjectIsoEG |
static const std::string | m_xmlConditionAttrObjectJetCounts |
static const std::string | m_xmlConditionAttrObjectMu |
static const std::string | m_xmlConditionAttrObjectNoIsoEG |
static const std::string | m_xmlConditionAttrObjectTauJet |
static const std::string | m_xmlConditionAttrType |
static const std::string | m_xmlConditionAttrType1s |
static const std::string | m_xmlConditionAttrType2cor |
static const std::string | m_xmlConditionAttrType2s |
static const std::string | m_xmlConditionAttrType2wsc |
static const std::string | m_xmlConditionAttrType3s |
static const std::string | m_xmlConditionAttrType4s |
static const std::string | m_xmlConditionAttrTypeBptx |
static const std::string | m_xmlConditionAttrTypeCastor |
static const std::string | m_xmlConditionAttrTypeExternal |
static const std::string | m_xmlTagAlgorithms |
static const std::string | m_xmlTagCa |
static const std::string | m_xmlTagChargeCorrelation |
static const std::string | m_xmlTagChip |
static const std::string | m_xmlTagChip1 |
static const std::string | m_xmlTagChipDef |
static const std::string | m_xmlTagConditions |
static const std::string | m_xmlTagCountOverflow |
static const std::string | m_xmlTagCountThreshold |
static const std::string | m_xmlTagDef |
static const std::string | m_xmlTagDeltaEta |
static const std::string | m_xmlTagDeltaPhi |
static const std::string | m_xmlTagEnableIso |
static const std::string | m_xmlTagEnableMip |
static const std::string | m_xmlTagEnergyOverflow |
static const std::string | m_xmlTagEta |
static const std::string | m_xmlTagEtThreshold |
static const std::string | m_xmlTagGEq |
static const std::string | m_xmlTagHeader |
static const std::string | m_xmlTagMenuAlgImpl |
static const std::string | m_xmlTagMenuAuthor |
static const std::string | m_xmlTagMenuDate |
static const std::string | m_xmlTagMenuDescription |
static const std::string | m_xmlTagMenuInterface |
static const std::string | m_xmlTagMenuInterfaceAuthor |
static const std::string | m_xmlTagMenuInterfaceDate |
static const std::string | m_xmlTagMenuInterfaceDescription |
static const std::string | m_xmlTagOutput |
static const std::string | m_xmlTagOutputPin |
static const std::string | m_xmlTagPhi |
static const std::string | m_xmlTagPhiHigh |
static const std::string | m_xmlTagPhiLow |
static const std::string | m_xmlTagPtHighThreshold |
static const std::string | m_xmlTagPtLowThreshold |
static const std::string | m_xmlTagQuality |
static const std::string | m_xmlTagRequestIso |
static const std::string | m_xmlTagScaleDbKey |
static const std::string | m_xmlTagTechTriggers |
static const std::string | m_xmlTagValue |
static const std::string | m_xmlTagVme |
static const std::string | m_xmlTagVmeAddress |
Description: core class to write the VME xml file.
Implementation: Core class to write the VME xml file: L1GtVmeWriter is an EDM wrapper for this class. L1GtVmeWriterCore can also be used in L1 Trigger Supervisor framework, with another wrapper - it must be therefore EDM-framework free.
Definition at line 34 of file L1GtVmeWriterCore.h.
L1GtVmeWriterCore::L1GtVmeWriterCore | ( | const std::string & | outputDir, |
const std::string & | vmeXmlFile | ||
) |
constructor
Definition at line 39 of file L1GtVmeWriterCore.cc.
References CenJet, ETM, ETT, ForJet, HTT, IsoEG, jetObj2reg_, jetType2reg_, L1GtXmlParserTags::m_xmlTagChargeCorrelation, L1GtXmlParserTags::m_xmlTagEtThreshold, L1GtXmlParserTags::m_xmlTagPtHighThreshold, L1GtXmlParserTags::m_xmlTagPtLowThreshold, L1GtXmlParserTags::m_xmlTagQuality, Mu, NoIsoEG, object2reg_, reg2hex_, spacesPerLevel_, TauJet, Type1s, type2reg_, Type2s, Type2wsc, Type3s, Type4s, TypeETM, TypeETT, and TypeHTT.
|
virtual |
destructor
Definition at line 100 of file L1GtVmeWriterCore.cc.
std::string L1GtVmeWriterCore::calculateAddress | ( | const L1GtObject & | obj, |
const L1GtConditionType & | type, | ||
const std::string & | reg, | ||
const int & | index | ||
) |
calculates address
Definition at line 129 of file L1GtVmeWriterCore.cc.
References condIndex2reg(), getGTfromDQMFile::obj, object2reg_, reg2hex_, query::result, and type2reg_.
Referenced by writeVME().
std::string L1GtVmeWriterCore::calculateJetsAddress | ( | const int & | countIndex, |
const int & | obj, | ||
const int & | index | ||
) |
calculates addresses for jets counts
Definition at line 115 of file L1GtVmeWriterCore.cc.
References condIndex2reg(), jetObj2reg_, jetType2reg_, getGTfromDQMFile::obj, reg2hex_, and query::result.
Referenced by writeVME().
std::string L1GtVmeWriterCore::closeTag | ( | const std::string & | tag | ) |
closes xml tag
Definition at line 150 of file L1GtVmeWriterCore.cc.
Referenced by vmeAddrValueBlock(), and writeVME().
int L1GtVmeWriterCore::condIndex2reg | ( | const unsigned int & | index | ) |
conversion algorithm for condition index to hex value used to calculate address values
Definition at line 107 of file L1GtVmeWriterCore.cc.
References cmsHarvester::index.
Referenced by calculateAddress(), and calculateJetsAddress().
std::string L1GtVmeWriterCore::openTag | ( | const std::string & | tag | ) |
opens a new xml tag
Definition at line 145 of file L1GtVmeWriterCore.cc.
Referenced by vmeAddrValueBlock(), and writeVME().
std::string L1GtVmeWriterCore::spaces | ( | const unsigned int & | level | ) |
returns a string containing spaces dependant on level
Definition at line 176 of file L1GtVmeWriterCore.cc.
References i, and spacesPerLevel_.
Referenced by vmeAddrValueBlock(), and writeVME().
std::string L1GtVmeWriterCore::vmeAddrValueBlock | ( | const std::string & | addr, |
const int & | val, | ||
const int & | spaceLevel, | ||
const bool | setMsb = false |
||
) |
builds a address value block
Definition at line 155 of file L1GtVmeWriterCore.cc.
References closeTag(), L1GtXmlParserTags::m_xmlTagValue, L1GtXmlParserTags::m_xmlTagVmeAddress, openTag(), and spaces().
Referenced by writeVME().
void L1GtVmeWriterCore::writeVME | ( | const std::vector< ConditionMap > & | conditionMap, |
const std::map< std::string, int > & | cond2intMap, | ||
const L1GtVhdlTemplateFile & | header, | ||
const int | spacesPerLevel = 2 |
||
) |
Definition at line 189 of file L1GtVmeWriterCore.cc.
References asciidump::at, calculateAddress(), calculateJetsAddress(), closeTag(), CondCalo, CondCorrelation, CondEnergySum, CondJetCounts, CondMuon, CondNull, L1GtMuonTemplate::correlationParameter(), gather_cfg::cout, CommonMethods::cp(), MillePedeFileConverter_cfg::fileName, i, cmsHarvester::index, L1GtVhdlWriterCore::int2str(), groupFilesInBlocks::lines, m_outputDir, m_vmeXmlFile, L1GtXmlParserTags::m_xmlConditionAttrObject, L1GtXmlParserTags::m_xmlConditionAttrType, L1GtXmlParserTags::m_xmlTagChargeCorrelation, L1GtXmlParserTags::m_xmlTagChip, L1GtXmlParserTags::m_xmlTagHeader, L1GtXmlParserTags::m_xmlTagPtHighThreshold, L1GtXmlParserTags::m_xmlTagPtLowThreshold, L1GtXmlParserTags::m_xmlTagQuality, L1GtXmlParserTags::m_xmlTagVme, Mu, getGTfromDQMFile::obj, L1GtVhdlDefinitions::obj2str(), L1GtJetCountsTemplate::objectParameter(), L1GtEnergySumTemplate::objectParameter(), L1GtCaloTemplate::objectParameter(), L1GtMuonTemplate::objectParameter(), openTag(), download_sqlite_cfg::outputFile, L1GtVhdlTemplateFile::removeEmptyLines(), L1GtVhdlTemplateFile::returnLines(), spaces(), spacesPerLevel_, AlCaHLTBitMon_QueryRunRegistry::string, L1GtVhdlTemplateFile::substitute(), L1GtVhdlDefinitions::type2str(), and vmeAddrValueBlock().
Referenced by L1GtVhdlWriter::analyze().
|
private |
Definition at line 91 of file L1GtVmeWriterCore.h.
Referenced by calculateJetsAddress(), and L1GtVmeWriterCore().
|
private |
Definition at line 89 of file L1GtVmeWriterCore.h.
Referenced by calculateJetsAddress(), and L1GtVmeWriterCore().
|
private |
|
private |
|
private |
Definition at line 83 of file L1GtVmeWriterCore.h.
Referenced by calculateAddress(), and L1GtVmeWriterCore().
|
private |
Definition at line 87 of file L1GtVmeWriterCore.h.
Referenced by calculateAddress(), calculateJetsAddress(), and L1GtVmeWriterCore().
|
private |
Definition at line 93 of file L1GtVmeWriterCore.h.
Referenced by L1GtVmeWriterCore(), spaces(), and writeVME().
|
private |
Definition at line 85 of file L1GtVmeWriterCore.h.
Referenced by calculateAddress(), and L1GtVmeWriterCore().