#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 (std::shared_ptr< L1TMuonOverlapParams > omtfParams) |
void | initCounterMatrices () |
OMTFConfiguration (const edm::ParameterSet &cfg) | |
Static Public Member Functions | |
static uint32_t | getLayerNumber (uint32_t rawId) |
static unsigned int | getRegionNumber (unsigned int iProcessor, unsigned int iRefLayer, int iPhi) |
static unsigned int | getRegionNumberFromMap (unsigned int iProcessor, unsigned int iRefLayer, int iPhi) |
static int | globalPhiStart (unsigned int iProcessor) |
static bool | isInRegionRange (int iPhiStart, unsigned int coneSize, int iPhi) |
Static Public Attributes | |
static std::vector< unsigned int > | barrelMax |
static std::vector< unsigned int > | barrelMin |
static std::set< int > | bendingLayers |
static vector3D_A | connections |
static std::vector< unsigned int > | endcap10DegMax |
static std::vector< unsigned int > | endcap10DegMin |
static std::vector< unsigned int > | endcap20DegMax |
static std::vector< unsigned int > | endcap20DegMin |
static std::map< int, int > | hwToLogicLayer |
static std::map< int, int > | logicToHwLayer |
static std::map< int, int > | logicToLogic |
static vector4D | measurements4D |
static vector4D | measurements4Dref |
static float | minPdfVal |
static unsigned int | nGoldenPatterns |
static unsigned int | nHitsPerLayer |
static unsigned int | nInputs |
static unsigned int | nLayers |
static unsigned int | nLogicRegions |
static unsigned int | nPdfAddrBits |
static unsigned int | nPdfValBits |
static unsigned int | nPhiBins |
static unsigned int | nPhiBits |
static unsigned int | nProcessors |
static unsigned int | nRefHits |
static unsigned int | nRefLayers |
static unsigned int | nTestRefHits |
static std::vector < std::vector< int > > | processorPhiVsRefLayer |
static std::vector < std::vector< RefHitDef > > | refHitsDefs |
static std::vector< int > | refToLogicNumber |
static std::vector < std::vector< std::vector < std::pair< int, int > > > > | regionPhisVsRefLayerVsProcessor |
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 124 of file OMTFConfiguration.h.
typedef std::vector< std::pair<unsigned int, unsigned int> > OMTFConfiguration::vector1D_A |
Map of connections.
Definition at line 117 of file OMTFConfiguration.h.
typedef std::vector<vector1D > OMTFConfiguration::vector2D |
Definition at line 125 of file OMTFConfiguration.h.
typedef std::vector<vector1D_A > OMTFConfiguration::vector2D_A |
Definition at line 118 of file OMTFConfiguration.h.
typedef std::vector<vector2D > OMTFConfiguration::vector3D |
Definition at line 126 of file OMTFConfiguration.h.
typedef std::vector<vector2D_A > OMTFConfiguration::vector3D_A |
Definition at line 119 of file OMTFConfiguration.h.
typedef std::vector<vector3D > OMTFConfiguration::vector4D |
Definition at line 127 of file OMTFConfiguration.h.
OMTFConfiguration::OMTFConfiguration | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 87 of file OMTFConfiguration.cc.
References configure(), edm::ParameterSet::exists(), MainPageGenerator::fName, contentValuesFiles::fullPath, edm::ParameterSet::getParameter(), XMLConfigReader::setConfigFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
void OMTFConfiguration::configure | ( | XMLConfigReader * | aReader | ) |
Definition at line 119 of file OMTFConfiguration.cc.
References initCounterMatrices(), and XMLConfigReader::readConfig().
Referenced by L1TMuonOverlapTrackProducer::beginRun(), L1TMuonOverlapParamsESProducer::L1TMuonOverlapParamsESProducer(), and OMTFConfiguration().
void OMTFConfiguration::configure | ( | std::shared_ptr< 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 processors
Vector of all processros
Symetrize connections. Use th same connections for all processors
Definition at line 127 of file OMTFConfiguration.cc.
References barrelMax, barrelMin, L1TMuonOverlapParams::LayerMapNode::bendingLayer, bendingLayers, L1TMuonOverlapParams::LayerMapNode::connectedToLayer, connections, filterCSVwithJSON::copy, endcap10DegMax, endcap10DegMin, endcap20DegMax, endcap20DegMin, L1TMuonOverlapParams::LayerMapNode::hwNumber, hwToLogicLayer, initCounterMatrices(), L1TMuonOverlapParams::LayerMapNode::logicNumber, L1TMuonOverlapParams::RefLayerMapNode::logicNumber, logicToHwLayer, logicToLogic, minPdfVal, nGoldenPatterns, nHitsPerLayer, nInputs, nLayers, nLogicRegions, nPdfAddrBits, nPdfValBits, nPhiBins, nPhiBits, nProcessors, nRefHits, nRefLayers, nTestRefHits, processorPhiVsRefLayer, refHitsDefs, L1TMuonOverlapParams::RefLayerMapNode::refLayer, refToLogicNumber, and regionPhisVsRefLayerVsProcessor.
|
static |
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 332 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().
|
static |
Find number of logic region within a given processor. Number is calculated assuming 10 deg wide logic regions Global phi scale is assumed at input.
FIX ME 2Pi wrapping
Definition at line 288 of file OMTFConfiguration.cc.
References isInRegionRange(), nLogicRegions, nPhiBins, nProcessors, and processorPhiVsRefLayer.
Referenced by OMTFConfigMaker::makeConnetionsMap().
|
static |
Find logic region number using shifted, 10 bit phi values, and commection maps
Definition at line 311 of file OMTFConfiguration.cc.
References plotBeamSpotDB::first, nLogicRegions, regionPhisVsRefLayerVsProcessor, and edm::second().
|
static |
Return global phi for beggining of given processor Uses minim phi over all reference layers.
Definition at line 324 of file OMTFConfiguration.cc.
References begin, end, and processorPhiVsRefLayer.
Referenced by L1TMuonOverlapTrackProducer::processCandidates(), OMTFProcessor::shiftInput(), and 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 100 of file OMTFConfiguration.cc.
References measurements4D, measurements4Dref, nInputs, nLayers, nLogicRegions, and nProcessors.
Referenced by configure().
|
static |
Check if given referecne hit is in phi range for some logic cone. Care is needed arounf +Pi and +2Pi points
Definition at line 268 of file OMTFConfiguration.cc.
References nPhiBins.
Referenced by getRegionNumber().
|
friend |
Definition at line 245 of file OMTFConfiguration.cc.
|
static |
Definition at line 89 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), configure(), and XMLConfigReader::readConfig().
|
static |
Starting and final sectors connected to processors. Index: processor number
Definition at line 88 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), configure(), OMTFinputMaker::getInputNumber(), and XMLConfigReader::readConfig().
|
static |
Definition at line 82 of file OMTFConfiguration.h.
Referenced by configure(), OMTFProcessor::fillCounts(), OMTFResult::finalise(), OMTFProcessor::processInput(), XMLConfigReader::readConfig(), and OMTFinput::shiftMyPhi().
|
static |
Definition at line 120 of file OMTFConfiguration.h.
Referenced by configure(), XMLConfigReader::readConfig(), and OMTFProcessor::restrictInput().
|
static |
Definition at line 91 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), configure(), and XMLConfigReader::readConfig().
|
static |
Definition at line 90 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), configure(), OMTFinputMaker::getInputNumber(), and XMLConfigReader::readConfig().
|
static |
Definition at line 93 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), configure(), and XMLConfigReader::readConfig().
|
static |
Definition at line 92 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), configure(), OMTFinputMaker::getInputNumber(), and XMLConfigReader::readConfig().
|
static |
Definition at line 79 of file OMTFConfiguration.h.
Referenced by configure(), OMTFinputMaker::processCSC(), OMTFinputMaker::processDT(), OMTFinputMaker::processRPC(), and XMLConfigReader::readConfig().
|
static |
Definition at line 80 of file OMTFConfiguration.h.
Referenced by configure(), and XMLConfigReader::readConfig().
|
static |
Definition at line 81 of file OMTFConfiguration.h.
Referenced by configure(), OMTFResult::finalise(), and XMLConfigReader::readConfig().
|
static |
Definition at line 128 of file OMTFConfiguration.h.
Referenced by OMTFConfigMaker::fillInputRange(), initCounterMatrices(), and XMLConfigWriter::writeConnectionsData().
|
static |
Definition at line 129 of file OMTFConfiguration.h.
Referenced by OMTFConfigMaker::fillInputRange(), initCounterMatrices(), OMTFConfigMaker::printConnections(), and XMLConfigWriter::writeConnectionsData().
|
static |
Definition at line 64 of file OMTFConfiguration.h.
Referenced by configure(), GoldenPattern::normalise(), and XMLConfigReader::readConfig().
|
static |
Definition at line 77 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::configure(), configure(), and XMLConfigReader::readConfig().
|
static |
Definition at line 66 of file OMTFConfiguration.h.
Referenced by configure(), operator<<(), and XMLConfigReader::readConfig().
|
static |
Definition at line 76 of file OMTFConfiguration.h.
Referenced by configure(), initCounterMatrices(), and XMLConfigReader::readConfig().
|
static |
Definition at line 65 of file OMTFConfiguration.h.
Referenced by OMTFinput::addLayerHit(), OMTFProcessor::averagePatterns(), XMLConfigReader::buildGP(), OMTFinput::clear(), OMTFResult::clear(), OMTFProcessor::configure(), configure(), OMTFProcessor::fillCounts(), OMTFConfigMaker::fillInputRange(), initCounterMatrices(), OMTFinput::mergeData(), operator<<(), OMTFConfigMaker::printConnections(), OMTFProcessor::processInput(), XMLConfigReader::readConfig(), XMLConfigReader::readEvent(), XMLConfigReader::readLUT(), GoldenPattern::reset(), OMTFProcessor::shiftGP(), XMLConfigWriter::writeConnectionsData(), XMLConfigWriter::writeEventData(), XMLConfigWriter::writeGPData(), and XMLConfigWriter::writeResultsData().
|
static |
Definition at line 75 of file OMTFConfiguration.h.
Referenced by configure(), getRegionNumber(), getRegionNumberFromMap(), initCounterMatrices(), and XMLConfigReader::readConfig().
|
static |
Definition at line 69 of file OMTFConfiguration.h.
Referenced by GoldenPattern::addCount(), XMLConfigReader::buildGP(), OMTFProcessor::configure(), configure(), GoldenPattern::normalise(), operator<<(), GoldenPattern::process1Layer1RefLayer(), XMLConfigReader::readConfig(), XMLConfigReader::readLUT(), GoldenPattern::reset(), OMTFProcessor::shiftGP(), and XMLConfigWriter::writeGPData().
|
static |
Definition at line 70 of file OMTFConfiguration.h.
Referenced by configure(), GoldenPattern::normalise(), operator<<(), and XMLConfigReader::readConfig().
|
static |
Definition at line 71 of file OMTFConfiguration.h.
Referenced by GoldenPattern::addCount(), OMTFinput::addLayerHit(), OMTFinput::clear(), configure(), OMTFConfigMaker::fillInputRange(), OMTFConfigMaker::fillPhiMaps(), AngleConverter::getGlobalPhi(), OMTFinput::getRefHits(), getRegionNumber(), isInRegionRange(), OMTFConfigMaker::OMTFConfigMaker(), GoldenPattern::process1Layer1RefLayer(), L1TMuonOverlapTrackProducer::processCandidates(), OMTFinputMaker::processRPC(), XMLConfigReader::readConfig(), XMLConfigReader::readEvent(), OMTFProcessor::restrictInput(), OMTFProcessor::shiftInput(), OMTFinput::shiftMyPhi(), OMTFSorter::sortProcessorResults(), XMLConfigWriter::writeConnectionsData(), and XMLConfigWriter::writeEventData().
|
static |
Definition at line 68 of file OMTFConfiguration.h.
Referenced by configure(), L1TMuonOverlapTrackProducer::processCandidates(), XMLConfigReader::readConfig(), OMTFinput::shiftMyPhi(), and XMLConfigWriter::writeConnectionsData().
|
static |
Definition at line 74 of file OMTFConfiguration.h.
Referenced by configure(), getRegionNumber(), initCounterMatrices(), operator<<(), and XMLConfigReader::readConfig().
|
static |
Definition at line 72 of file OMTFConfiguration.h.
Referenced by configure(), OMTFProcessor::fillCounts(), OMTFProcessor::processInput(), XMLConfigReader::readConfig(), and XMLConfigWriter::writeConnectionsData().
|
static |
Definition at line 67 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::averagePatterns(), XMLConfigReader::buildGP(), OMTFResult::clear(), OMTFProcessor::configure(), configure(), OMTFResult::empty(), OMTFConfigMaker::fillPhiMaps(), OMTFConfigMaker::makeConnetionsMap(), OMTFConfigMaker::OMTFConfigMaker(), operator<<(), OMTFConfigMaker::printPhiMap(), XMLConfigReader::readConfig(), XMLConfigReader::readLUT(), GoldenPattern::reset(), OMTFProcessor::shiftGP(), XMLConfigWriter::writeConnectionsData(), XMLConfigWriter::writeGPData(), and XMLConfigWriter::writeResultsData().
|
static |
Definition at line 73 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::configure(), configure(), OMTFProcessor::processInput(), L1TMuonOverlapTrackProducer::produce(), and XMLConfigReader::readConfig().
|
static |
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 99 of file OMTFConfiguration.h.
Referenced by configure(), getRegionNumber(), globalPhiStart(), operator<<(), OMTFConfigMaker::printPhiMap(), XMLConfigReader::readConfig(), and XMLConfigWriter::writeConnectionsData().
|
static |
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-79)
Definition at line 114 of file OMTFConfiguration.h.
Referenced by configure(), OMTFProcessor::fillCounts(), OMTFinput::getRefHits(), OMTFProcessor::processInput(), and XMLConfigReader::readConfig().
|
static |
Definition at line 83 of file OMTFConfiguration.h.
Referenced by GoldenPattern::addCount(), configure(), OMTFProcessor::fillCounts(), OMTFConfigMaker::fillPhiMaps(), OMTFinput::getRefHits(), OMTFConfigMaker::makeConnetionsMap(), GoldenPattern::normalise(), OMTFProcessor::processInput(), XMLConfigReader::readConfig(), and XMLConfigWriter::writeResultsData().
|
static |
Begin and end local phi for each processor and each reference layer First index: processor 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 107 of file OMTFConfiguration.h.
Referenced by configure(), getRegionNumberFromMap(), and XMLConfigReader::readConfig().