#include <XMLConfigReader.h>
Public Member Functions | |
unsigned int | getPatternsVersion () const |
void | readConfig (const std::string fName) |
void | readConfig (L1TMuonOverlapParams *aConfig) const |
std::vector< std::vector< int > > | readEvent (unsigned int iEvent=0, unsigned int iProcessor=0, bool readEta=false) |
void | readLUT (l1t::LUT *lut, const L1TMuonOverlapParams &aConfig, const std::string &type) |
std::vector< std::shared_ptr< GoldenPattern > > | readPatterns (const L1TMuonOverlapParams &aConfig) |
void | setConfigFile (const std::string &fName) |
void | setEventsFile (const std::string &fName) |
void | setPatternsFile (const std::string &fName) |
XMLConfigReader () | |
~XMLConfigReader () | |
Private Member Functions | |
std::unique_ptr< GoldenPattern > | buildGP (xercesc::DOMElement *aGPElement, const L1TMuonOverlapParams &aConfig, 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 |
std::string | patternsFile |
Definition at line 27 of file XMLConfigReader.h.
XMLConfigReader::XMLConfigReader | ( | ) |
Initialise XML parser
Definition at line 42 of file XMLConfigReader.cc.
XMLConfigReader::~XMLConfigReader | ( | ) |
Definition at line 54 of file XMLConfigReader.cc.
|
private |
Build empty GP
Loop over layers
MeanDistPhi vector
PDF vector
Definition at line 225 of file XMLConfigReader.cc.
References _toDOMS(), _toString(), diffTreeTool::index, MuonTCMETValueMapProducer_cff::nLayers, L1TMuonOverlapParams::nLayers(), L1TMuonOverlapParams::nPdfAddrBits(), L1TMuonOverlapParams::nRefLayers(), fetchall_from_DQM_v2::release, and heppy_batch::val.
Referenced by readPatterns().
unsigned int XMLConfigReader::getPatternsVersion | ( | ) | const |
Definition at line 122 of file XMLConfigReader.cc.
References _toDOMS(), _toString(), createfilelist::parser, patternsFile, fetchall_from_DQM_v2::release, and jetIDSelector_cfi::version.
Referenced by L1TMuonOverlapParamsESProducer::L1TMuonOverlapParamsESProducer().
void XMLConfigReader::readConfig | ( | const std::string | fName | ) |
Referenced by L1TMuonOverlapParamsESProducer::readConnectionsXML().
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 336 of file XMLConfigReader.cc.
References _toDOMS(), _toString(), 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, 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, MuonTCMETValueMapProducer_cff::nLayers, ecaldqm::binning::nPhiBins, createfilelist::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 jetIDSelector_cfi::version.
std::vector< std::vector< int > > XMLConfigReader::readEvent | ( | unsigned int | iEvent = 0 , |
unsigned int | iProcessor = 0 , |
||
bool | readEta = false |
||
) |
void XMLConfigReader::readLUT | ( | l1t::LUT * | lut, |
const L1TMuonOverlapParams & | aConfig, | ||
const std::string & | type | ||
) |
Prepare the header
Fill payload string
Read the data into LUT
Definition at line 61 of file XMLConfigReader.cc.
References aGPs, recoMuon::in, L1TMuonOverlapParams::nLayers(), L1TMuonOverlapParams::nPdfAddrBits(), L1TMuonOverlapParams::nRefLayers(), MillePedeFileConverter_cfg::out, l1t::LUT::read(), and readPatterns().
Referenced by L1TMuonOverlapParamsESProducer::readPatternsXML().
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 153 of file XMLConfigReader.cc.
References _toDOMS(), aGPs, buildGP(), diffTreeTool::index, eostools::move(), createfilelist::parser, patternsFile, and fetchall_from_DQM_v2::release.
Referenced by readLUT().
|
inline |
Definition at line 36 of file XMLConfigReader.h.
Referenced by L1TMuonOverlapParamsESProducer::L1TMuonOverlapParamsESProducer().
|
inline |
Definition at line 40 of file XMLConfigReader.h.
References iEvent, lumiPlot::lut, edm::readConfig(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 38 of file XMLConfigReader.h.
Referenced by L1TMuonOverlapParamsESProducer::L1TMuonOverlapParamsESProducer().
|
private |
Cache with GPs read.
Definition at line 69 of file XMLConfigReader.h.
Referenced by readLUT(), and readPatterns().
|
private |
Definition at line 56 of file XMLConfigReader.h.
Referenced by readConfig(), and cmsswPreprocessor.CmsswPreprocessor::run().
|
private |
Definition at line 58 of file XMLConfigReader.h.
|
private |
Definition at line 57 of file XMLConfigReader.h.
Referenced by getPatternsVersion(), and readPatterns().