![]() |
![]() |
#include <XMLConfigReader.h>
Public Member Functions | |
void | readConfig (const std::string fName) |
void | readConfig (OMTFConfiguration *aConfig) |
void | readConfig (L1TMuonOverlapParams *aConfig) |
std::vector< std::vector< int > > | readEvent (unsigned int iEvent=0, unsigned int iProcessor=0, bool readEta=false) |
void | readLUT (l1t::LUT *lut, const std::string &type) |
std::vector< GoldenPattern * > | readPatterns () |
void | setConfigFile (const std::string &fName) |
void | setEventsFile (const std::string &fName) |
void | setPatternsFile (const std::string &fName) |
XMLConfigReader (OMTFConfiguration *omtf_config) | |
Private Member Functions | |
GoldenPattern * | buildGP (xercesc::DOMElement *aGPElement, unsigned int index=0) |
Private Attributes | |
std::vector< GoldenPattern * > | aGPs |
Cache with GPs read. More... | |
std::string | configFile |
xercesc::DOMDocument * | doc |
std::string | eventsFile |
OMTFConfiguration * | m_omtf_config |
xercesc::XercesDOMParser * | parser |
std::string | patternsFile |
Definition at line 26 of file XMLConfigReader.h.
XMLConfigReader::XMLConfigReader | ( | OMTFConfiguration * | omtf_config | ) |
|
private |
Loop over layers
MeanDistPhi vector
PDF vector
Definition at line 161 of file XMLConfigReader.cc.
References _toDOMS(), _toString(), assert(), cmsHarvester::index, m_omtf_config, OMTFConfiguration::nLayers, OMTFConfiguration::nPdfAddrBits, OMTFConfiguration::nRefLayers, GoldenPattern::setMeanDistPhi(), and GoldenPattern::setPdf().
Referenced by readPatterns().
void XMLConfigReader::readConfig | ( | const std::string | fName | ) |
Referenced by OMTFConfiguration::configure(), and L1TMuonOverlapParamsESProducer::readConnectionsXML().
void XMLConfigReader::readConfig | ( | OMTFConfiguration * | aConfig | ) |
Addresing bits numbers
Chamber sectors connections to logic processros.
hw <-> logic numbering map
ref<->logic numberig map
processors initial phi for each reference layer
connections tables for each processor each logic cone Vector of all layers
Vector of all logic regions
Vector of all processors
Starting phis of each region Vector of all regions in one processor
Vector of all reflayers
Vector of all inputs
Vector of all processros
Fill all processors with the same setting as for processor 0.
Fill all processors with the same setting as for processor 0.
Definition at line 507 of file XMLConfigReader.cc.
References _toDOMS(), _toString(), assert(), OMTFConfiguration::barrelMax, OMTFConfiguration::barrelMin, OMTFConfiguration::bendingLayers, configFile, OMTFConfiguration::connections, doc, OMTFConfiguration::endcap10DegMax, OMTFConfiguration::endcap10DegMin, OMTFConfiguration::endcap20DegMax, OMTFConfiguration::endcap20DegMin, stage2BMTFBufferRaw_cfi::fwVersion, OMTFConfiguration::fwVersion, OMTFConfiguration::hwToLogicLayer, i, cuy::ii, OMTFConfiguration::logicToHwLayer, OMTFConfiguration::logicToLogic, m_omtf_config, OMTFConfiguration::minPdfVal, OMTFConfiguration::nGoldenPatterns, OMTFConfiguration::nHitsPerLayer, OMTFConfiguration::nInputs, OMTFConfiguration::nLayers, OMTFConfiguration::nLogicRegions, OMTFConfiguration::nPdfAddrBits, OMTFConfiguration::nPdfValBits, ecaldqm::binning::nPhiBins, OMTFConfiguration::nPhiBins, OMTFConfiguration::nPhiBits, OMTFConfiguration::nProcessors, OMTFConfiguration::nRefHits, OMTFConfiguration::nRefLayers, OMTFConfiguration::nTestRefHits, parser, OMTFConfiguration::processorPhiVsRefLayer, OMTFConfiguration::refHitsDefs, OMTFConfiguration::refToLogicNumber, and OMTFConfiguration::regionPhisVsRefLayerVsInput.
void XMLConfigReader::readConfig | ( | L1TMuonOverlapParams * | aConfig | ) |
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 306 of file XMLConfigReader.cc.
References _toDOMS(), _toString(), assert(), L1TMuonOverlapParams::LayerMapNode::bendingLayer, configFile, L1TMuonOverlapParams::LayerMapNode::connectedToLayer, doc, 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, ecaldqm::binning::nPhiBins, parser, L1TMuonOverlapParams::RefLayerMapNode::refLayer, L1TMuonOverlapParams::setConnectedSectorsEnd(), L1TMuonOverlapParams::setConnectedSectorsStart(), L1TMuonOverlapParams::setFwVersion(), L1TMuonOverlapParams::setGeneralParams(), L1TMuonOverlapParams::setGlobalPhiStartMap(), L1TMuonOverlapParams::setLayerInputMap(), L1TMuonOverlapParams::setLayerMap(), L1TMuonOverlapParams::setRefHitMap(), L1TMuonOverlapParams::setRefLayerMap(), and relval_steps::version.
std::vector< std::vector< int > > XMLConfigReader::readEvent | ( | unsigned int | iEvent = 0 , |
unsigned int | iProcessor = 0 , |
||
bool | readEta = false |
||
) |
Definition at line 227 of file XMLConfigReader.cc.
References _toDOMS(), _toString(), assert(), doc, eventsFile, input, m_omtf_config, OMTFConfiguration::nLayers, OMTFConfiguration::nPhiBins, and parser.
Referenced by OMTFinput::readData().
void XMLConfigReader::readLUT | ( | l1t::LUT * | lut, |
const std::string & | type | ||
) |
Prepare the header
Fill payload string
Read the data into LUT
Definition at line 57 of file XMLConfigReader.cc.
References aGPs, recoMuon::in, m_omtf_config, OMTFConfiguration::nLayers, OMTFConfiguration::nPdfAddrBits, OMTFConfiguration::nRefLayers, GenerateHcalLaserBadRunList::out, l1t::LUT::read(), and readPatterns().
Referenced by L1TMuonOverlapParamsESProducer::readPatternsXML().
std::vector< GoldenPattern * > XMLConfigReader::readPatterns | ( | ) |
Patterns XMl format backward compatibility. Can use both packed by 4, or by 1 XML files.
Definition at line 116 of file XMLConfigReader.cc.
References _toDOMS(), aGPs, assert(), buildGP(), doc, cmsHarvester::index, parser, and patternsFile.
Referenced by OMTFProcessor::configure(), and readLUT().
|
inline |
Definition at line 34 of file XMLConfigReader.h.
References configFile, and MainPageGenerator::fName.
Referenced by L1TMuonOverlapParamsESProducer::L1TMuonOverlapParamsESProducer(), and OMTFConfiguration::OMTFConfiguration().
|
inline |
Definition at line 38 of file XMLConfigReader.h.
References eventsFile, and MainPageGenerator::fName.
|
inline |
Definition at line 36 of file XMLConfigReader.h.
References MainPageGenerator::fName, and patternsFile.
Referenced by L1TMuonOverlapParamsESProducer::L1TMuonOverlapParamsESProducer(), and OMTFProcessor::OMTFProcessor().
|
private |
Cache with GPs read.
Definition at line 65 of file XMLConfigReader.h.
Referenced by readLUT(), and readPatterns().
|
private |
Definition at line 54 of file XMLConfigReader.h.
Referenced by readConfig(), cmsswPreprocessor.CmsswPreprocessor::run(), and setConfigFile().
|
private |
Definition at line 62 of file XMLConfigReader.h.
Referenced by readConfig(), readEvent(), readPatterns(), and XMLConfigReader().
|
private |
Definition at line 56 of file XMLConfigReader.h.
Referenced by readEvent(), and setEventsFile().
|
private |
Definition at line 67 of file XMLConfigReader.h.
Referenced by buildGP(), readConfig(), readEvent(), and readLUT().
|
private |
Definition at line 61 of file XMLConfigReader.h.
Referenced by readConfig(), readEvent(), readPatterns(), and XMLConfigReader().
|
private |
Definition at line 55 of file XMLConfigReader.h.
Referenced by readPatterns(), and setPatternsFile().