#include <OMTFConfiguration.h>
Public Types | |
typedef std::vector< int > | vector1D |
typedef std::vector< std::pair < unsigned int, unsigned int > > | vector1D_pair |
typedef std::vector< vector1D > | vector2D |
typedef std::vector < vector1D_pair > | vector2D_pair |
typedef std::vector< vector2D > | vector3D |
typedef std::vector < vector2D_pair > | vector3D_pair |
typedef std::vector< vector3D > | vector4D |
Public Member Functions | |
void | configure (const L1TMuonOverlapParams *omtfParams) |
unsigned int | fwVersion () const |
const std::vector< unsigned int > & | getBarrelMax () const |
const std::vector< unsigned int > & | getBarrelMin () const |
const std::set< int > & | getBendingLayers () const |
const vector3D_pair & | getConnections () const |
const std::vector< unsigned int > & | getEndcap10DegMax () const |
const std::vector< unsigned int > & | getEndcap10DegMin () const |
const std::vector< unsigned int > & | getEndcap20DegMax () const |
const std::vector< unsigned int > & | getEndcap20DegMin () const |
const std::map< int, int > & | getHwToLogicLayer () const |
uint32_t | getLayerNumber (uint32_t rawId) const |
const std::map< int, int > & | getLogicToHwLayer () const |
const std::map< int, int > & | getLogicToLogic () const |
vector4D & | getMeasurements4D () |
const vector4D & | getMeasurements4D () const |
vector4D & | getMeasurements4Dref () |
const vector4D & | getMeasurements4Dref () const |
const std::vector< std::vector < int > > & | getProcessorPhiVsRefLayer () const |
const L1TMuonOverlapParams * | getRawParams () const |
const std::vector< std::vector < RefHitDef > > & | getRefHitsDefs () const |
const std::vector< int > & | getRefToLogicNumber () const |
unsigned int | getRegionNumberFromMap (unsigned int iInput, unsigned int iRefLayer, int iPhi) const |
const std::vector< std::vector < std::vector< std::pair< int, int > > > > & | getRegionPhisVsRefLayerVsInput () const |
int | globalPhiStart (unsigned int iProcessor) const |
void | initCounterMatrices () |
bool | isInRegionRange (int iPhiStart, unsigned int coneSize, int iPhi) const |
float | minPdfVal () const |
unsigned int | nGoldenPatterns () const |
unsigned int | nHitsPerLayer () const |
unsigned int | nInputs () const |
unsigned int | nLayers () const |
unsigned int | nLogicRegions () const |
unsigned int | nPdfAddrBits () const |
unsigned int | nPdfValBits () const |
unsigned int | nPhiBins () const |
unsigned int | nPhiBits () const |
unsigned int | nProcessors () const |
unsigned int | nRefHits () const |
unsigned int | nRefLayers () const |
unsigned int | nTestRefHits () const |
OMTFConfiguration () | |
unsigned int | patternsVersion () const |
Private Attributes | |
std::vector< unsigned int > | barrelMax |
std::vector< unsigned int > | barrelMin |
std::set< int > | bendingLayers |
vector3D_pair | connections |
Map of connections. More... | |
std::vector< unsigned int > | endcap10DegMax |
std::vector< unsigned int > | endcap10DegMin |
std::vector< unsigned int > | endcap20DegMax |
std::vector< unsigned int > | endcap20DegMin |
std::map< int, int > | hwToLogicLayer |
std::map< int, int > | logicToHwLayer |
std::map< int, int > | logicToLogic |
vector4D | measurements4D |
4D matrices used during creation of the connections tables. More... | |
vector4D | measurements4Dref |
std::vector< std::vector< int > > | processorPhiVsRefLayer |
L1TMuonOverlapParams | rawParams |
std::vector< std::vector < RefHitDef > > | refHitsDefs |
std::vector< int > | refToLogicNumber |
std::vector< std::vector < std::vector< std::pair< int, int > > > > | regionPhisVsRefLayerVsInput |
Friends | |
std::ostream & | operator<< (std::ostream &out, const OMTFConfiguration &aConfig) |
Definition at line 49 of file OMTFConfiguration.h.
typedef std::vector<int> OMTFConfiguration::vector1D |
Definition at line 57 of file OMTFConfiguration.h.
typedef std::vector< std::pair<unsigned int, unsigned int> > OMTFConfiguration::vector1D_pair |
Definition at line 53 of file OMTFConfiguration.h.
typedef std::vector<vector1D > OMTFConfiguration::vector2D |
Definition at line 58 of file OMTFConfiguration.h.
typedef std::vector<vector1D_pair > OMTFConfiguration::vector2D_pair |
Definition at line 54 of file OMTFConfiguration.h.
typedef std::vector<vector2D > OMTFConfiguration::vector3D |
Definition at line 59 of file OMTFConfiguration.h.
typedef std::vector<vector2D_pair > OMTFConfiguration::vector3D_pair |
Definition at line 55 of file OMTFConfiguration.h.
typedef std::vector<vector3D > OMTFConfiguration::vector4D |
Definition at line 60 of file OMTFConfiguration.h.
|
inline |
Definition at line 62 of file OMTFConfiguration.h.
void OMTFConfiguration::configure | ( | const L1TMuonOverlapParams * | omtfParams | ) |
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 66 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, L1TMuonOverlapParams::globalPhiStartMap(), L1TMuonOverlapParams::LayerMapNode::hwNumber, hwToLogicLayer, initCounterMatrices(), L1TMuonOverlapParams::layerInputMap(), L1TMuonOverlapParams::layerMap(), L1TMuonOverlapParams::LayerMapNode::logicNumber, L1TMuonOverlapParams::RefLayerMapNode::logicNumber, logicToHwLayer, logicToLogic, nInputs(), nLayers(), nLogicRegions(), nPhiBins(), nProcessors(), nRefHits(), nRefLayers(), fakeOmtfParams_cff::omtfParams, processorPhiVsRefLayer, rawParams, L1TMuonOverlapParams::refHitMap(), refHitsDefs, L1TMuonOverlapParams::RefLayerMapNode::refLayer, L1TMuonOverlapParams::refLayerMap(), refToLogicNumber, and regionPhisVsRefLayerVsInput.
Referenced by OMTFPatternMaker::beginRun(), OMTFReconstruction::beginRun(), and OMTFPatternMaker::endJob().
|
inline |
Definition at line 92 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::fwVersion(), and rawParams.
|
inline |
Definition at line 119 of file OMTFConfiguration.h.
References barrelMax.
Referenced by OMTFinputMaker::acceptDigi().
|
inline |
Definition at line 118 of file OMTFConfiguration.h.
References barrelMin.
Referenced by OMTFinputMaker::acceptDigi(), and OMTFinputMaker::getInputNumber().
|
inline |
Definition at line 115 of file OMTFConfiguration.h.
References bendingLayers.
Referenced by OMTFProcessor::fillCounts(), OMTFResult::finalise(), OMTFProcessor::processInput(), and OMTFinput::shiftMyPhi().
|
inline |
Definition at line 129 of file OMTFConfiguration.h.
References connections.
Referenced by OMTFProcessor::restrictInput().
|
inline |
Definition at line 121 of file OMTFConfiguration.h.
References endcap10DegMax.
Referenced by OMTFinputMaker::acceptDigi().
|
inline |
Definition at line 120 of file OMTFConfiguration.h.
References endcap10DegMin.
Referenced by OMTFinputMaker::acceptDigi(), and OMTFinputMaker::getInputNumber().
|
inline |
Definition at line 123 of file OMTFConfiguration.h.
References endcap20DegMax.
Referenced by OMTFinputMaker::acceptDigi().
|
inline |
Definition at line 122 of file OMTFConfiguration.h.
References endcap20DegMin.
Referenced by OMTFinputMaker::acceptDigi(), and OMTFinputMaker::getInputNumber().
|
inline |
Definition at line 112 of file OMTFConfiguration.h.
References hwToLogicLayer.
Referenced by OMTFinputMaker::processCSC(), OMTFinputMaker::processDT(), and OMTFinputMaker::processRPC().
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 236 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().
|
inline |
Definition at line 113 of file OMTFConfiguration.h.
References logicToHwLayer.
|
inline |
Definition at line 114 of file OMTFConfiguration.h.
References logicToLogic.
Referenced by OMTFResult::finalise().
|
inline |
Definition at line 131 of file OMTFConfiguration.h.
References measurements4D.
Referenced by OMTFPatternMaker::endJob(), OMTFConfigMaker::fillInputRange(), and XMLConfigWriter::writeConnectionsData().
|
inline |
Definition at line 134 of file OMTFConfiguration.h.
References measurements4D.
|
inline |
Definition at line 132 of file OMTFConfiguration.h.
References measurements4Dref.
Referenced by OMTFConfigMaker::fillInputRange(), OMTFConfigMaker::printConnections(), and XMLConfigWriter::writeConnectionsData().
|
inline |
|
inline |
Definition at line 125 of file OMTFConfiguration.h.
References processorPhiVsRefLayer.
Referenced by XMLConfigWriter::writeConnectionsData().
|
inline |
Definition at line 95 of file OMTFConfiguration.h.
References rawParams.
Referenced by OMTFPatternMaker::endJob().
|
inline |
Definition at line 127 of file OMTFConfiguration.h.
References refHitsDefs.
Referenced by OMTFProcessor::fillCounts(), OMTFinput::getRefHits(), and OMTFProcessor::processInput().
|
inline |
Definition at line 116 of file OMTFConfiguration.h.
References refToLogicNumber.
Referenced by GoldenPattern::addCount(), OMTFProcessor::fillCounts(), OMTFConfigMaker::fillPhiMaps(), OMTFinput::getRefHits(), OMTFConfigMaker::makeConnetionsMap(), GoldenPattern::normalise(), OMTFProcessor::processInput(), and XMLConfigWriter::writeResultsData().
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 214 of file OMTFConfiguration.cc.
References plotBeamSpotDB::first, nLogicRegions(), regionPhisVsRefLayerVsInput, and edm::second().
Referenced by OMTFConfigMaker::fillPhiMaps(), and OMTFConfigMaker::makeConnetionsMap().
|
inline |
Definition at line 126 of file OMTFConfiguration.h.
References regionPhisVsRefLayerVsInput.
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 228 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 47 of file OMTFConfiguration.cc.
References measurements4D, measurements4Dref, nInputs(), nLayers(), nLogicRegions(), and nProcessors().
Referenced by configure().
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 194 of file OMTFConfiguration.cc.
References nPhiBins().
|
inline |
Definition at line 97 of file OMTFConfiguration.h.
Referenced by GoldenPattern::normalise().
|
inline |
Definition at line 110 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nGoldenPatterns(), and rawParams.
Referenced by OMTFProcessor::configure().
|
inline |
Definition at line 99 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nHitsPerLayer(), and rawParams.
Referenced by operator<<().
|
inline |
Definition at line 109 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nInputs(), and rawParams.
Referenced by configure(), OMTFConfigMaker::fillPhiMaps(), initCounterMatrices(), and OMTFConfigMaker::printConnections().
|
inline |
Definition at line 98 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nLayers(), and rawParams.
Referenced by OMTFProcessor::averagePatterns(), OMTFinput::clear(), OMTFResult::clear(), OMTFProcessor::configure(), configure(), OMTFProcessor::fillCounts(), OMTFConfigMaker::fillInputRange(), initCounterMatrices(), OMTFinput::mergeData(), operator<<(), OMTFConfigMaker::printConnections(), OMTFProcessor::processInput(), GoldenPattern::reset(), OMTFProcessor::shiftGP(), XMLConfigWriter::writeConnectionsData(), XMLConfigWriter::writeEventData(), XMLConfigWriter::writeGPData(), and XMLConfigWriter::writeResultsData().
|
inline |
Definition at line 108 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nLogicRegions(), and rawParams.
Referenced by configure(), getRegionNumberFromMap(), initCounterMatrices(), OMTFConfigMaker::makeConnetionsMap(), OMTFConfigMaker::OMTFConfigMaker(), and OMTFConfigMaker::printPhiMap().
|
inline |
Definition at line 102 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nPdfAddrBits(), and rawParams.
Referenced by GoldenPattern::addCount(), OMTFProcessor::configure(), GoldenPattern::normalise(), operator<<(), GoldenPattern::process1Layer1RefLayer(), GoldenPattern::reset(), OMTFProcessor::shiftGP(), and XMLConfigWriter::writeGPData().
|
inline |
Definition at line 103 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nPdfValBits(), and rawParams.
Referenced by GoldenPattern::normalise(), and operator<<().
|
inline |
Definition at line 104 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nPhiBins(), and rawParams.
Referenced by GoldenPattern::addCount(), OMTFinput::addLayerHit(), OMTFReconstruction::beginRun(), OMTFinput::clear(), configure(), OMTFConfigMaker::fillInputRange(), OMTFConfigMaker::fillPhiMaps(), OMTFinput::getRefHits(), OMTFinputMaker::initialize(), isInRegionRange(), OMTFConfigMaker::OMTFConfigMaker(), GoldenPattern::process1Layer1RefLayer(), OMTFProcessor::restrictInput(), OMTFinput::shiftMyPhi(), XMLConfigWriter::writeConnectionsData(), and XMLConfigWriter::writeEventData().
|
inline |
Definition at line 101 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nPhiBits(), and rawParams.
Referenced by OMTFinput::shiftMyPhi(), and XMLConfigWriter::writeConnectionsData().
|
inline |
Definition at line 107 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nProcessors(), and rawParams.
Referenced by configure(), initCounterMatrices(), operator<<(), and OMTFReconstruction::reconstruct().
|
inline |
Definition at line 105 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nRefHits(), and rawParams.
Referenced by configure(), OMTFProcessor::fillCounts(), OMTFProcessor::processInput(), and XMLConfigWriter::writeConnectionsData().
|
inline |
Definition at line 100 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nRefLayers(), and rawParams.
Referenced by OMTFProcessor::averagePatterns(), OMTFResult::clear(), OMTFProcessor::configure(), configure(), OMTFResult::empty(), OMTFConfigMaker::fillPhiMaps(), OMTFConfigMaker::makeConnetionsMap(), OMTFConfigMaker::OMTFConfigMaker(), operator<<(), OMTFConfigMaker::printPhiMap(), GoldenPattern::reset(), OMTFProcessor::shiftGP(), XMLConfigWriter::writeConnectionsData(), XMLConfigWriter::writeGPData(), and XMLConfigWriter::writeResultsData().
|
inline |
Definition at line 106 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::nTestRefHits(), and rawParams.
Referenced by OMTFProcessor::configure(), OMTFProcessor::processInput(), and OMTFReconstruction::writeResultToXML().
|
inline |
Definition at line 93 of file OMTFConfiguration.h.
References L1TMuonOverlapParams::fwVersion(), and rawParams.
Referenced by XMLConfigWriter::initialiseXMLDocument().
|
friend |
Definition at line 171 of file OMTFConfiguration.cc.
|
private |
Definition at line 153 of file OMTFConfiguration.h.
Referenced by configure(), and getBarrelMax().
|
private |
Starting and final sectors connected to processors. Index: processor number
Definition at line 152 of file OMTFConfiguration.h.
Referenced by configure(), and getBarrelMin().
|
private |
Definition at line 146 of file OMTFConfiguration.h.
Referenced by configure(), and getBendingLayers().
|
private |
Map of connections.
Definition at line 181 of file OMTFConfiguration.h.
Referenced by configure(), and getConnections().
|
private |
Definition at line 155 of file OMTFConfiguration.h.
Referenced by configure(), and getEndcap10DegMax().
|
private |
Definition at line 154 of file OMTFConfiguration.h.
Referenced by configure(), and getEndcap10DegMin().
|
private |
Definition at line 157 of file OMTFConfiguration.h.
Referenced by configure(), and getEndcap20DegMax().
|
private |
Definition at line 156 of file OMTFConfiguration.h.
Referenced by configure(), and getEndcap20DegMin().
|
private |
Definition at line 143 of file OMTFConfiguration.h.
Referenced by configure(), and getHwToLogicLayer().
|
private |
Definition at line 144 of file OMTFConfiguration.h.
Referenced by configure(), and getLogicToHwLayer().
|
private |
Definition at line 145 of file OMTFConfiguration.h.
Referenced by configure(), and getLogicToLogic().
|
private |
4D matrices used during creation of the connections tables.
Definition at line 184 of file OMTFConfiguration.h.
Referenced by getMeasurements4D(), and initCounterMatrices().
|
private |
Definition at line 185 of file OMTFConfiguration.h.
Referenced by getMeasurements4Dref(), and initCounterMatrices().
|
private |
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 163 of file OMTFConfiguration.h.
Referenced by configure(), getProcessorPhiVsRefLayer(), globalPhiStart(), and operator<<().
|
private |
Definition at line 141 of file OMTFConfiguration.h.
Referenced by configure(), fwVersion(), getRawParams(), nGoldenPatterns(), nHitsPerLayer(), nInputs(), nLayers(), nLogicRegions(), nPdfAddrBits(), nPdfValBits(), nPhiBins(), nPhiBits(), nProcessors(), nRefHits(), nRefLayers(), nTestRefHits(), and patternsVersion().
|
private |
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 178 of file OMTFConfiguration.h.
Referenced by configure(), and getRefHitsDefs().
|
private |
Definition at line 147 of file OMTFConfiguration.h.
Referenced by configure(), and getRefToLogicNumber().
|
private |
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 171 of file OMTFConfiguration.h.
Referenced by configure(), getRegionNumberFromMap(), and getRegionPhisVsRefLayerVsInput().