CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
XMLConfigReader Class Reference

#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< 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

GoldenPatternbuildGP (xercesc::DOMElement *aGPElement, const L1TMuonOverlapParams &aConfig, unsigned int index=0, unsigned int aGPNumber=999)
 

Private Attributes

std::vector< GoldenPattern * > aGPs
 Cache with GPs read. More...
 
std::string configFile
 
std::string eventsFile
 
std::string patternsFile
 

Detailed Description

Definition at line 26 of file XMLConfigReader.h.

Constructor & Destructor Documentation

XMLConfigReader::XMLConfigReader ( )

Initialise XML parser

Definition at line 42 of file XMLConfigReader.cc.

XMLConfigReader::~XMLConfigReader ( )

Definition at line 54 of file XMLConfigReader.cc.

Member Function Documentation

GoldenPattern * XMLConfigReader::buildGP ( xercesc::DOMElement *  aGPElement,
const L1TMuonOverlapParams aConfig,
unsigned int  index = 0,
unsigned int  aGPNumber = 999 
)
private

Build empty GP

Loop over layers

MeanDistPhi vector

PDF vector

Definition at line 225 of file XMLConfigReader.cc.

unsigned int XMLConfigReader::getPatternsVersion ( ) const
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 336 of file XMLConfigReader.cc.

std::vector< std::vector< int > > XMLConfigReader::readEvent ( unsigned int  iEvent = 0,
unsigned int  iProcessor = 0,
bool  readEta = false 
)

Definition at line 327 of file XMLConfigReader.cc.

Referenced by OMTFinput::readData().

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.

Referenced by L1TMuonOverlapParamsESProducer::readPatternsXML().

std::vector< 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.

void XMLConfigReader::setConfigFile ( const std::string &  fName)
inline
void XMLConfigReader::setEventsFile ( const std::string &  fName)
inline

Definition at line 39 of file XMLConfigReader.h.

References eventsFile, and MainPageGenerator::fName.

void XMLConfigReader::setPatternsFile ( const std::string &  fName)
inline

Member Data Documentation

std::vector<GoldenPattern*> XMLConfigReader::aGPs
private

Cache with GPs read.

Definition at line 68 of file XMLConfigReader.h.

std::string XMLConfigReader::configFile
private

Definition at line 55 of file XMLConfigReader.h.

Referenced by setConfigFile().

std::string XMLConfigReader::eventsFile
private

Definition at line 57 of file XMLConfigReader.h.

Referenced by setEventsFile().

std::string XMLConfigReader::patternsFile
private

Definition at line 56 of file XMLConfigReader.h.

Referenced by setPatternsFile().