#include <OMTFConfiguration.h>
Public Types | |
typedef std::vector< int > | vector1D |
typedef std::vector< std::pair < unsigned int, unsigned int > > | vector1D_A |
Map of connections. More... | |
typedef std::vector< vector1D > | vector2D |
typedef std::vector< vector1D_A > | vector2D_A |
typedef std::vector< vector2D > | vector3D |
typedef std::vector< vector2D_A > | vector3D_A |
typedef std::vector< vector3D > | vector4D |
Public Member Functions | |
void | configure (XMLConfigReader *aReader) |
void | configure (const L1TMuonOverlapParams *omtfParams) |
uint32_t | getLayerNumber (uint32_t rawId) const |
unsigned int | getRegionNumberFromMap (unsigned int iInput, unsigned int iRefLayer, int iPhi) const |
int | globalPhiStart (unsigned int iProcessor) const |
void | initCounterMatrices () |
bool | isInRegionRange (int iPhiStart, unsigned int coneSize, int iPhi) const |
OMTFConfiguration (const edm::ParameterSet &cfg) | |
Static Public Member Functions | |
static const OMTFConfiguration * | instance () |
Public Attributes | |
std::vector< unsigned int > | barrelMax |
std::vector< unsigned int > | barrelMin |
std::set< int > | bendingLayers |
vector3D_A | connections |
std::vector< unsigned int > | endcap10DegMax |
std::vector< unsigned int > | endcap10DegMin |
std::vector< unsigned int > | endcap20DegMax |
std::vector< unsigned int > | endcap20DegMin |
unsigned int | fwVersion |
std::map< int, int > | hwToLogicLayer |
std::map< int, int > | logicToHwLayer |
std::map< int, int > | logicToLogic |
vector4D | measurements4D |
vector4D | measurements4Dref |
float | minPdfVal |
unsigned int | nGoldenPatterns |
unsigned int | nHitsPerLayer |
unsigned int | nInputs |
unsigned int | nLayers |
unsigned int | nLogicRegions |
unsigned int | nPdfAddrBits |
unsigned int | nPdfValBits |
unsigned int | nPhiBins |
unsigned int | nPhiBits |
unsigned int | nProcessors |
unsigned int | nRefHits |
unsigned int | nRefLayers |
unsigned int | nTestRefHits |
std::vector< std::vector< int > > | processorPhiVsRefLayer |
std::vector< std::vector < RefHitDef > > | refHitsDefs |
std::vector< int > | refToLogicNumber |
std::vector< std::vector < std::vector< std::pair< int, int > > > > | regionPhisVsRefLayerVsInput |
Static Public Attributes | |
static OMTFConfiguration * | latest_instance_ = NULL |
Friends | |
std::ostream & | operator<< (std::ostream &out, const OMTFConfiguration &aConfig) |
Definition at line 50 of file OMTFConfiguration.h.
typedef std::vector<int> OMTFConfiguration::vector1D |
Temporary hack to pass data from deep inside class Matrices are used during creation of the connections tables.
Definition at line 127 of file OMTFConfiguration.h.
typedef std::vector< std::pair<unsigned int, unsigned int> > OMTFConfiguration::vector1D_A |
Map of connections.
Definition at line 120 of file OMTFConfiguration.h.
typedef std::vector<vector1D > OMTFConfiguration::vector2D |
Definition at line 128 of file OMTFConfiguration.h.
typedef std::vector<vector1D_A > OMTFConfiguration::vector2D_A |
Definition at line 121 of file OMTFConfiguration.h.
typedef std::vector<vector2D > OMTFConfiguration::vector3D |
Definition at line 129 of file OMTFConfiguration.h.
typedef std::vector<vector2D_A > OMTFConfiguration::vector3D_A |
Definition at line 122 of file OMTFConfiguration.h.
typedef std::vector<vector3D > OMTFConfiguration::vector4D |
Definition at line 130 of file OMTFConfiguration.h.
OMTFConfiguration::OMTFConfiguration | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 52 of file OMTFConfiguration.cc.
References configure(), edm::ParameterSet::exists(), MainPageGenerator::fName, contentValuesFiles::fullPath, edm::ParameterSet::getParameter(), latest_instance_, XMLConfigReader::setConfigFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
void OMTFConfiguration::configure | ( | XMLConfigReader * | aReader | ) |
Definition at line 85 of file OMTFConfiguration.cc.
References initCounterMatrices(), and XMLConfigReader::readConfig().
Referenced by OMTFPatternMaker::beginRun(), OMTFReconstruction::beginRun(), L1TMuonOverlapParamsESProducer::L1TMuonOverlapParamsESProducer(), and OMTFConfiguration().
void OMTFConfiguration::configure | ( | const L1TMuonOverlapParams * | omtfParams | ) |
Set global parameters
Set chamber sectors connections to logic processros.
Set connections tables
connections tables for each processor each logic cone Vector of all layers
Vector of all logic cones
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
Symetrize connections. Use th same connections for all processors
Definition at line 93 of file OMTFConfiguration.cc.
References barrelMax, barrelMin, L1TMuonOverlapParams::LayerMapNode::bendingLayer, bendingLayers, L1TMuonOverlapParams::connectedSectorsEnd(), L1TMuonOverlapParams::connectedSectorsStart(), L1TMuonOverlapParams::LayerMapNode::connectedToLayer, connections, filterCSVwithJSON::copy, endcap10DegMax, endcap10DegMin, endcap20DegMax, endcap20DegMin, fwVersion, L1TMuonOverlapParams::fwVersion(), L1TMuonOverlapParams::globalPhiStartMap(), L1TMuonOverlapParams::LayerMapNode::hwNumber, hwToLogicLayer, initCounterMatrices(), L1TMuonOverlapParams::layerInputMap(), L1TMuonOverlapParams::layerMap(), L1TMuonOverlapParams::LayerMapNode::logicNumber, L1TMuonOverlapParams::RefLayerMapNode::logicNumber, logicToHwLayer, logicToLogic, minPdfVal, nGoldenPatterns, L1TMuonOverlapParams::nGoldenPatterns(), nHitsPerLayer, L1TMuonOverlapParams::nHitsPerLayer(), nInputs, L1TMuonOverlapParams::nInputs(), nLayers, L1TMuonOverlapParams::nLayers(), nLogicRegions, L1TMuonOverlapParams::nLogicRegions(), nPdfAddrBits, L1TMuonOverlapParams::nPdfAddrBits(), nPdfValBits, L1TMuonOverlapParams::nPdfValBits(), nPhiBins, L1TMuonOverlapParams::nPhiBins(), nPhiBits, L1TMuonOverlapParams::nPhiBits(), nProcessors, L1TMuonOverlapParams::nProcessors(), nRefHits, L1TMuonOverlapParams::nRefHits(), nRefLayers, L1TMuonOverlapParams::nRefLayers(), nTestRefHits, L1TMuonOverlapParams::nTestRefHits(), processorPhiVsRefLayer, L1TMuonOverlapParams::refHitMap(), refHitsDefs, L1TMuonOverlapParams::RefLayerMapNode::refLayer, L1TMuonOverlapParams::refLayerMap(), refToLogicNumber, and regionPhisVsRefLayerVsInput.
uint32_t OMTFConfiguration::getLayerNumber | ( | uint32_t | rawId | ) | const |
Return layer number encoding subsystem, and station number in a simple formula: aLayer+100*detId.subdetId() where aLayer is a layer number counting from vertex
Definition at line 277 of file OMTFConfiguration.cc.
References gather_cfg::cout, MuonSubdetId::CSC, DetId::det(), MuonSubdetId::DT, dt, GeomDetEnumerators::isBarrel(), RPCDetId::layer(), DetId::Muon, RPCDetId::region(), CSCDetId::ring(), MuonSubdetId::RPC, DTChamberId::station(), CSCDetId::station(), RPCDetId::station(), and DetId::subdetId().
Referenced by OMTFinputMaker::processCSC(), OMTFinputMaker::processDT(), and OMTFinputMaker::processRPC().
unsigned int OMTFConfiguration::getRegionNumberFromMap | ( | unsigned int | iInput, |
unsigned int | iRefLayer, | ||
int | iPhi | ||
) | const |
Find logic region number using first input number and then local phi value. The input and phi ranges are taken from DB.
Definition at line 255 of file OMTFConfiguration.cc.
References plotBeamSpotDB::first, nLogicRegions, regionPhisVsRefLayerVsInput, and edm::second().
Referenced by OMTFConfigMaker::fillPhiMaps(), and OMTFConfigMaker::makeConnetionsMap().
int OMTFConfiguration::globalPhiStart | ( | unsigned int | iProcessor | ) | const |
Return global phi for beggining of given processor Uses minim phi over all reference layers.
Definition at line 269 of file OMTFConfiguration.cc.
References begin, end, and processorPhiVsRefLayer.
Referenced by XMLConfigWriter::writeConnectionsData().
void OMTFConfiguration::initCounterMatrices | ( | ) |
Vector of all inputs
Vector of all layers
Vector of all logic cones
Vector of all processors
Definition at line 66 of file OMTFConfiguration.cc.
References measurements4D, measurements4Dref, nInputs, nLayers, nLogicRegions, and nProcessors.
Referenced by configure().
|
inlinestatic |
Definition at line 54 of file OMTFConfiguration.h.
References latest_instance_.
Referenced by OMTFinputMaker::acceptDigi(), GoldenPattern::addCount(), OMTFinput::addLayerHit(), OMTFProcessor::averagePatterns(), OMTFinput::clear(), OMTFResult::clear(), OMTFProcessor::configure(), OMTFResult::empty(), OMTFPatternMaker::endJob(), OMTFProcessor::fillCounts(), OMTFConfigMaker::fillInputRange(), OMTFConfigMaker::fillPhiMaps(), OMTFResult::finalise(), OMTFinputMaker::getInputNumber(), AngleConverter::getProcessorPhi(), OMTFinput::getRefHits(), XMLConfigWriter::initialiseXMLDocument(), OMTFConfigMaker::makeConnetionsMap(), OMTFinput::mergeData(), GoldenPattern::normalise(), OMTFConfigMaker::OMTFConfigMaker(), OMTFConfigMaker::printConnections(), OMTFConfigMaker::printPhiMap(), GoldenPattern::process1Layer1RefLayer(), OMTFinputMaker::processCSC(), OMTFinputMaker::processDT(), OMTFProcessor::processInput(), OMTFinputMaker::processRPC(), OMTFReconstruction::reconstruct(), GoldenPattern::reset(), OMTFProcessor::restrictInput(), OMTFGhostBuster::select(), OMTFProcessor::shiftGP(), OMTFinput::shiftMyPhi(), OMTFSorter::sortProcessorAndFillCandidates(), XMLConfigWriter::writeConnectionsData(), XMLConfigWriter::writeEventData(), XMLConfigWriter::writeGPData(), XMLConfigWriter::writeResultsData(), and OMTFReconstruction::writeResultToXML().
bool OMTFConfiguration::isInRegionRange | ( | int | iPhiStart, |
unsigned int | coneSize, | ||
int | iPhi | ||
) | const |
Check if given referecne hit is in phi range for some logic cone. Care is needed arounf +Pi and +2Pi points
Definition at line 235 of file OMTFConfiguration.cc.
References nPhiBins.
|
friend |
Definition at line 212 of file OMTFConfiguration.cc.
std::vector<unsigned int> OMTFConfiguration::barrelMax |
Definition at line 92 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), configure(), and XMLConfigReader::readConfig().
std::vector<unsigned int> OMTFConfiguration::barrelMin |
Starting and final sectors connected to processors. Index: processor number
Definition at line 91 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), configure(), OMTFinputMaker::getInputNumber(), and XMLConfigReader::readConfig().
std::set<int> OMTFConfiguration::bendingLayers |
Definition at line 85 of file OMTFConfiguration.h.
Referenced by configure(), OMTFResult::finalise(), XMLConfigReader::readConfig(), and OMTFinput::shiftMyPhi().
vector3D_A OMTFConfiguration::connections |
Definition at line 123 of file OMTFConfiguration.h.
Referenced by configure(), XMLConfigReader::readConfig(), and OMTFProcessor::restrictInput().
std::vector<unsigned int> OMTFConfiguration::endcap10DegMax |
Definition at line 94 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), configure(), and XMLConfigReader::readConfig().
std::vector<unsigned int> OMTFConfiguration::endcap10DegMin |
Definition at line 93 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), configure(), OMTFinputMaker::getInputNumber(), and XMLConfigReader::readConfig().
std::vector<unsigned int> OMTFConfiguration::endcap20DegMax |
Definition at line 96 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), configure(), and XMLConfigReader::readConfig().
std::vector<unsigned int> OMTFConfiguration::endcap20DegMin |
Definition at line 95 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), configure(), OMTFinputMaker::getInputNumber(), and XMLConfigReader::readConfig().
unsigned int OMTFConfiguration::fwVersion |
Definition at line 66 of file OMTFConfiguration.h.
Referenced by configure(), XMLConfigWriter::initialiseXMLDocument(), and XMLConfigReader::readConfig().
std::map<int,int> OMTFConfiguration::hwToLogicLayer |
Definition at line 82 of file OMTFConfiguration.h.
Referenced by configure(), OMTFinputMaker::processCSC(), OMTFinputMaker::processDT(), OMTFinputMaker::processRPC(), and XMLConfigReader::readConfig().
|
static |
Definition at line 159 of file OMTFConfiguration.h.
Referenced by instance(), and OMTFConfiguration().
std::map<int,int> OMTFConfiguration::logicToHwLayer |
Definition at line 83 of file OMTFConfiguration.h.
Referenced by configure(), and XMLConfigReader::readConfig().
std::map<int,int> OMTFConfiguration::logicToLogic |
Definition at line 84 of file OMTFConfiguration.h.
Referenced by configure(), OMTFResult::finalise(), and XMLConfigReader::readConfig().
vector4D OMTFConfiguration::measurements4D |
Definition at line 131 of file OMTFConfiguration.h.
Referenced by OMTFConfigMaker::fillInputRange(), initCounterMatrices(), and XMLConfigWriter::writeConnectionsData().
vector4D OMTFConfiguration::measurements4Dref |
Definition at line 132 of file OMTFConfiguration.h.
Referenced by OMTFConfigMaker::fillInputRange(), initCounterMatrices(), OMTFConfigMaker::printConnections(), and XMLConfigWriter::writeConnectionsData().
float OMTFConfiguration::minPdfVal |
Definition at line 67 of file OMTFConfiguration.h.
Referenced by configure(), and XMLConfigReader::readConfig().
unsigned int OMTFConfiguration::nGoldenPatterns |
Definition at line 80 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::configure(), configure(), and XMLConfigReader::readConfig().
unsigned int OMTFConfiguration::nHitsPerLayer |
Definition at line 69 of file OMTFConfiguration.h.
Referenced by configure(), operator<<(), and XMLConfigReader::readConfig().
unsigned int OMTFConfiguration::nInputs |
Definition at line 79 of file OMTFConfiguration.h.
Referenced by configure(), OMTFConfigMaker::fillPhiMaps(), initCounterMatrices(), and XMLConfigReader::readConfig().
unsigned int OMTFConfiguration::nLayers |
Definition at line 68 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::averagePatterns(), XMLConfigReader::buildGP(), OMTFProcessor::configure(), configure(), OMTFProcessor::fillCounts(), OMTFConfigMaker::fillInputRange(), initCounterMatrices(), OMTFinput::mergeData(), operator<<(), OMTFConfigMaker::printConnections(), OMTFProcessor::processInput(), XMLConfigReader::readConfig(), XMLConfigReader::readEvent(), XMLConfigReader::readLUT(), OMTFProcessor::shiftGP(), XMLConfigWriter::writeConnectionsData(), XMLConfigWriter::writeEventData(), XMLConfigWriter::writeGPData(), and XMLConfigWriter::writeResultsData().
unsigned int OMTFConfiguration::nLogicRegions |
Definition at line 78 of file OMTFConfiguration.h.
Referenced by configure(), getRegionNumberFromMap(), initCounterMatrices(), OMTFConfigMaker::OMTFConfigMaker(), OMTFConfigMaker::printPhiMap(), and XMLConfigReader::readConfig().
unsigned int OMTFConfiguration::nPdfAddrBits |
Definition at line 72 of file OMTFConfiguration.h.
Referenced by OMTFPatternMaker::beginRun(), XMLConfigReader::buildGP(), OMTFProcessor::configure(), configure(), OMTFPatternMaker::endJob(), operator<<(), XMLConfigReader::readConfig(), and XMLConfigReader::readLUT().
unsigned int OMTFConfiguration::nPdfValBits |
Definition at line 73 of file OMTFConfiguration.h.
Referenced by configure(), GoldenPattern::normalise(), operator<<(), and XMLConfigReader::readConfig().
unsigned int OMTFConfiguration::nPhiBins |
Definition at line 74 of file OMTFConfiguration.h.
Referenced by GoldenPattern::addCount(), configure(), OMTFConfigMaker::fillInputRange(), AngleConverter::getProcessorPhi(), isInRegionRange(), OMTFConfigMaker::OMTFConfigMaker(), XMLConfigReader::readConfig(), XMLConfigReader::readEvent(), OMTFProcessor::restrictInput(), OMTFGhostBuster::select(), OMTFinput::shiftMyPhi(), OMTFSorter::sortProcessorAndFillCandidates(), XMLConfigWriter::writeConnectionsData(), and XMLConfigWriter::writeEventData().
unsigned int OMTFConfiguration::nPhiBits |
Definition at line 71 of file OMTFConfiguration.h.
Referenced by configure(), and XMLConfigReader::readConfig().
unsigned int OMTFConfiguration::nProcessors |
Definition at line 77 of file OMTFConfiguration.h.
Referenced by configure(), initCounterMatrices(), operator<<(), XMLConfigReader::readConfig(), and OMTFReconstruction::reconstruct().
unsigned int OMTFConfiguration::nRefHits |
Definition at line 75 of file OMTFConfiguration.h.
Referenced by configure(), OMTFProcessor::fillCounts(), OMTFProcessor::processInput(), XMLConfigReader::readConfig(), and XMLConfigWriter::writeConnectionsData().
unsigned int OMTFConfiguration::nRefLayers |
Definition at line 70 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::averagePatterns(), XMLConfigReader::buildGP(), OMTFProcessor::configure(), configure(), OMTFResult::empty(), OMTFConfigMaker::fillPhiMaps(), OMTFConfigMaker::makeConnetionsMap(), operator<<(), OMTFConfigMaker::printPhiMap(), XMLConfigReader::readConfig(), XMLConfigReader::readLUT(), OMTFProcessor::shiftGP(), XMLConfigWriter::writeConnectionsData(), XMLConfigWriter::writeGPData(), and XMLConfigWriter::writeResultsData().
unsigned int OMTFConfiguration::nTestRefHits |
Definition at line 76 of file OMTFConfiguration.h.
Referenced by configure(), OMTFProcessor::processInput(), XMLConfigReader::readConfig(), and OMTFReconstruction::writeResultToXML().
std::vector<std::vector<int> > OMTFConfiguration::processorPhiVsRefLayer |
Starting iPhi for each processor and each referecne layer Global phi scale is used First index: processor number Second index: referecne layer number
Definition at line 102 of file OMTFConfiguration.h.
Referenced by configure(), globalPhiStart(), operator<<(), XMLConfigReader::readConfig(), and XMLConfigWriter::writeConnectionsData().
std::vector<std::vector<RefHitDef> > OMTFConfiguration::refHitsDefs |
Vector with definitions of reference hits Vector has fixed size of nRefHits Order of elements defines priority order First index: processor number (0-5) Second index: ref hit number (0-127)
Definition at line 117 of file OMTFConfiguration.h.
Referenced by configure(), OMTFProcessor::fillCounts(), OMTFProcessor::processInput(), and XMLConfigReader::readConfig().
std::vector<int> OMTFConfiguration::refToLogicNumber |
Definition at line 86 of file OMTFConfiguration.h.
Referenced by configure(), GoldenPattern::normalise(), XMLConfigReader::readConfig(), and XMLConfigWriter::writeResultsData().
std::vector<std::vector<std::vector<std::pair<int,int> > > > OMTFConfiguration::regionPhisVsRefLayerVsInput |
Begin and end local phi for each logis region First index: input number Second index: reference layer number Third index: region pair.first: starting phi of region (inclusive) pair.second: ending phi of region (inclusive)
Definition at line 110 of file OMTFConfiguration.h.
Referenced by configure(), getRegionNumberFromMap(), and XMLConfigReader::readConfig().