#include <XMLConfigReader.h>
Public Member Functions | |
template<class GoldenPatternType > | |
std::unique_ptr < GoldenPatternType > | buildGP (DOMElement *aGPElement, const L1TMuonOverlapParams &aConfig, unsigned int patternGroup, unsigned int index, unsigned int aGPNumber) |
unsigned int | getPatternsVersion () const |
unsigned int | getPatternsVersion () const |
void | readConfig (const std::string fName) |
void | readConfig (const std::string fName) |
void | readConfig (L1TMuonOverlapParams *aConfig) const |
void | readConfig (L1TMuonOverlapParams *aConfig) const |
std::vector< std::vector< int > > | readEvent (unsigned int iEvent=0, unsigned int iProcessor=0, bool readEta=false) |
std::vector< std::vector< int > > | readEvent (unsigned int iEvent=0, unsigned int iProcessor=0, bool readEta=false) |
void | readLUTs (std::vector< l1t::LUT * > luts, const L1TMuonOverlapParams &aConfig, const std::vector< std::string > &types) |
void | readLUTs (std::vector< l1t::LUT * > luts, const L1TMuonOverlapParams &aConfig, const std::vector< std::string > &types) |
std::vector< std::shared_ptr < GoldenPattern > > | readPatterns (const L1TMuonOverlapParams &aConfig) |
template<class GoldenPatternType > | |
GoldenPatternVec < GoldenPatternType > | readPatterns (const L1TMuonOverlapParams &aConfig, const std::string &patternsFile, bool buildEmptyPatterns, bool resetNumbering=true) |
template<class GoldenPatternType > | |
GoldenPatternVec < GoldenPatternType > | readPatterns (const L1TMuonOverlapParams &aConfig, const std::vector< std::string > &patternsFiles, bool buildEmptyPatterns) |
void | setConfigFile (const std::string &fName) |
void | setConfigFile (const std::string &fName) |
void | setEventsFile (const std::string &fName) |
void | setEventsFile (const std::string &fName) |
void | setPatternsFile (const std::string &fName) |
void | setPatternsFiles (std::vector< std::string > &fNames) |
XMLConfigReader () | |
XMLConfigReader () | |
~XMLConfigReader () | |
~XMLConfigReader () | |
Private Member Functions | |
std::unique_ptr< GoldenPattern > | buildGP (xercesc::DOMElement *aGPElement, const L1TMuonOverlapParams &aConfig, unsigned int index=0, unsigned int aGPNumber=999) |
template<class GoldenPatternType > | |
std::unique_ptr < GoldenPatternType > | buildGP (xercesc::DOMElement *aGPElement, const L1TMuonOverlapParams &aConfig, unsigned int patternGroup, unsigned int index=0, unsigned int aGPNumber=999) |
Private Attributes | |
std::vector< std::shared_ptr < GoldenPattern > > | aGPs |
Cache with GPs read. More... | |
std::string | configFile |
std::string | eventsFile |
unsigned int | iGPNumber = 0 |
unsigned int | iPatternGroup = 0 |
std::string | patternsFile |
std::vector< std::string > | patternsFiles |
Definition at line 26 of file XMLConfigReader.h.
XMLConfigReader::XMLConfigReader | ( | ) |
Initialise XML parser
Definition at line 42 of file XMLConfigReader.cc.
XMLConfigReader::~XMLConfigReader | ( | ) |
Definition at line 53 of file XMLConfigReader.cc.
XMLConfigReader::XMLConfigReader | ( | ) |
XMLConfigReader::~XMLConfigReader | ( | ) |
|
private |
Referenced by readPatterns().
|
private |
std::unique_ptr<GoldenPatternType> XMLConfigReader::buildGP | ( | DOMElement * | aGPElement, |
const L1TMuonOverlapParams & | aConfig, | ||
unsigned int | patternGroup, | ||
unsigned int | index, | ||
unsigned int | aGPNumber | ||
) |
Build empty GP
Loop over layers
MeanDistPhi vector
PDF vector
Definition at line 331 of file XMLConfigReader.cc.
References _toDOMS(), _toString(), cms::cuda::assert(), Exception, mkfit::Config::nLayers, L1TMuonOverlapParams::nLayers(), L1TMuonOverlapParams::nPdfAddrBits(), L1TMuonOverlapParams::nRefLayers(), fetchall_from_DQM_v2::release, AlCaHLTBitMon_QueryRunRegistry::string, Key::theGroup, Key::theIndexInGroup, lowPtGsfElectronSeeds_cfi::thresholds(), and hgcalPerformanceValidation::val.
unsigned int XMLConfigReader::getPatternsVersion | ( | ) | const |
Definition at line 132 of file XMLConfigReader.cc.
References _toDOMS(), _toString(), cms::cuda::assert(), writedatasetfile::parser, patternsFile, fetchall_from_DQM_v2::release, and relval_steps::version.
Referenced by L1TMuonOverlapParamsESProducer::L1TMuonOverlapParamsESProducer(), and L1TMuonOverlapPhase1ParamsESProducer::L1TMuonOverlapPhase1ParamsESProducer().
unsigned int XMLConfigReader::getPatternsVersion | ( | ) | const |
void XMLConfigReader::readConfig | ( | const std::string | fName | ) |
void XMLConfigReader::readConfig | ( | const std::string | fName | ) |
void XMLConfigReader::readConfig | ( | L1TMuonOverlapParams * | aConfig | ) | const |
Addresing bits numbers
Chamber sectors connections to logic processros. Start/End values for all processors, and chamber types are put into a single vector
hw <-> logic numbering map
ref<->logic numberig map
Definition at line 340 of file XMLConfigReader.cc.
References _toDOMS(), _toString(), cms::cuda::assert(), L1TMuonOverlapParams::LayerMapNode::bendingLayer, configFile, L1TMuonOverlapParams::LayerMapNode::connectedToLayer, L1TMuonOverlapParams::GENERAL_ADDRBITS, L1TMuonOverlapParams::GENERAL_HITSPERLAYER, L1TMuonOverlapParams::GENERAL_NCONFIG, L1TMuonOverlapParams::GENERAL_NGOLDENPATTERNS, L1TMuonOverlapParams::GENERAL_NINPUTS, L1TMuonOverlapParams::GENERAL_NLAYERS, L1TMuonOverlapParams::GENERAL_NLOGIC_REGIONS, L1TMuonOverlapParams::GENERAL_NPROCESSORS, L1TMuonOverlapParams::GENERAL_NREFHITS, L1TMuonOverlapParams::GENERAL_NREFLAYERS, L1TMuonOverlapParams::GENERAL_NTESTREFHITS, L1TMuonOverlapParams::GENERAL_PHIBINS, L1TMuonOverlapParams::GENERAL_PHIBITS, L1TMuonOverlapParams::GENERAL_VALBITS, L1TMuonOverlapParams::LayerMapNode::hwNumber, mps_fire::i, L1TMuonOverlapParams::LayerInputNode::iFirstInput, cuy::ii, L1TMuonOverlapParams::RefHitNode::iInput, L1TMuonOverlapParams::LayerInputNode::iLayer, L1TMuonOverlapParams::RefHitNode::iPhiMax, L1TMuonOverlapParams::RefHitNode::iPhiMin, L1TMuonOverlapParams::RefHitNode::iRefHit, L1TMuonOverlapParams::RefHitNode::iRefLayer, L1TMuonOverlapParams::RefHitNode::iRegion, L1TMuonOverlapParams::LayerMapNode::logicNumber, L1TMuonOverlapParams::RefLayerMapNode::logicNumber, L1TMuonOverlapParams::LayerInputNode::nInputs, mkfit::Config::nLayers, ecaldqm::binning::nPhiBins, writedatasetfile::parser, L1TMuonOverlapParams::RefLayerMapNode::refLayer, fetchall_from_DQM_v2::release, L1TMuonOverlapParams::setConnectedSectorsEnd(), L1TMuonOverlapParams::setConnectedSectorsStart(), L1TMuonOverlapParams::setFwVersion(), L1TMuonOverlapParams::setGeneralParams(), L1TMuonOverlapParams::setGlobalPhiStartMap(), L1TMuonOverlapParams::setLayerInputMap(), L1TMuonOverlapParams::setLayerMap(), L1TMuonOverlapParams::setRefHitMap(), L1TMuonOverlapParams::setRefLayerMap(), and relval_steps::version.
void XMLConfigReader::readConfig | ( | L1TMuonOverlapParams * | aConfig | ) | const |
std::vector< std::vector< int > > XMLConfigReader::readEvent | ( | unsigned int | iEvent = 0 , |
unsigned int | iProcessor = 0 , |
||
bool | readEta = false |
||
) |
std::vector<std::vector<int> > XMLConfigReader::readEvent | ( | unsigned int | iEvent = 0 , |
unsigned int | iProcessor = 0 , |
||
bool | readEta = false |
||
) |
void XMLConfigReader::readLUTs | ( | std::vector< l1t::LUT * > | luts, |
const L1TMuonOverlapParams & | aConfig, | ||
const std::vector< std::string > & | types | ||
) |
Fill payload string
Prepare the header
Read the data into LUT
Definition at line 59 of file XMLConfigReader.cc.
References aGPs, mps_fire::i, recoMuon::in, L1TMuonOverlapParams::nLayers(), L1TMuonOverlapParams::nPdfAddrBits(), L1TMuonOverlapParams::nRefLayers(), submitPVResolutionJobs::out, l1t::LUT::read(), readPatterns(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by L1TMuonOverlapParamsESProducer::readPatternsXML(), and L1TMuonOverlapPhase1ParamsESProducer::readPatternsXML().
void XMLConfigReader::readLUTs | ( | std::vector< l1t::LUT * > | luts, |
const L1TMuonOverlapParams & | aConfig, | ||
const std::vector< std::string > & | types | ||
) |
std::vector< std::shared_ptr< GoldenPattern > > XMLConfigReader::readPatterns | ( | const L1TMuonOverlapParams & | aConfig | ) |
Patterns XML format backward compatibility. Can use both packed by 4, or by 1 XML files.
Definition at line 163 of file XMLConfigReader.cc.
References _toDOMS(), aGPs, cms::cuda::assert(), buildGP(), iGPNumber, eostools::move(), writedatasetfile::parser, patternsFile, and fetchall_from_DQM_v2::release.
Referenced by OMTFReconstruction::beginRun(), and readLUTs().
template GoldenPatternVec< GoldenPatternWithStat > XMLConfigReader::readPatterns< GoldenPatternWithStat > | ( | const L1TMuonOverlapParams & | aConfig, |
const std::string & | patternsFile, | ||
bool | buildEmptyPatterns, | ||
bool | resetNumbering = true |
||
) |
Patterns XML format backward compatibility. Can use both packed by 4, or by 1 XML files.
Definition at line 237 of file XMLConfigReader.cc.
References _toDOMS(), aGPs, cms::cuda::assert(), iGPNumber, iPatternGroup, eostools::move(), writedatasetfile::parser, and fetchall_from_DQM_v2::release.
template GoldenPatternVec< GoldenPatternWithStat > XMLConfigReader::readPatterns< GoldenPatternWithStat > | ( | const L1TMuonOverlapParams & | aConfig, |
const std::vector< std::string > & | patternsFiles, | ||
bool | buildEmptyPatterns | ||
) |
Definition at line 315 of file XMLConfigReader.cc.
References aGPs, runTauDisplay::gp, iGPNumber, iPatternGroup, and eostools::move().
|
inline |
Definition at line 33 of file XMLConfigReader.h.
References configFile, and isotrackTrainRegressor::fName.
Referenced by L1TMuonOverlapParamsESProducer::L1TMuonOverlapParamsESProducer(), and L1TMuonOverlapPhase1ParamsESProducer::L1TMuonOverlapPhase1ParamsESProducer().
|
inline |
Definition at line 35 of file XMLConfigReader.h.
References configFile, and isotrackTrainRegressor::fName.
|
inline |
Definition at line 37 of file XMLConfigReader.h.
References eventsFile, and isotrackTrainRegressor::fName.
|
inline |
Definition at line 39 of file XMLConfigReader.h.
References eventsFile, and isotrackTrainRegressor::fName.
|
inline |
Definition at line 35 of file XMLConfigReader.h.
References isotrackTrainRegressor::fName, and patternsFile.
Referenced by L1TMuonOverlapParamsESProducer::L1TMuonOverlapParamsESProducer().
|
inline |
Definition at line 37 of file XMLConfigReader.h.
References patternsFiles.
Referenced by L1TMuonOverlapPhase1ParamsESProducer::L1TMuonOverlapPhase1ParamsESProducer().
|
private |
Cache with GPs read.
Definition at line 65 of file XMLConfigReader.h.
Referenced by readLUTs(), and readPatterns().
|
private |
Definition at line 52 of file XMLConfigReader.h.
Referenced by readConfig(), cmsswPreprocessor.CmsswPreprocessor::run(), and setConfigFile().
|
private |
Definition at line 54 of file XMLConfigReader.h.
Referenced by setEventsFile().
|
private |
Definition at line 78 of file XMLConfigReader.h.
Referenced by readPatterns().
|
private |
Definition at line 79 of file XMLConfigReader.h.
Referenced by readPatterns().
|
private |
Definition at line 53 of file XMLConfigReader.h.
Referenced by getPatternsVersion(), readPatterns(), and setPatternsFile().
|
private |
Definition at line 68 of file XMLConfigReader.h.
Referenced by setPatternsFiles().