#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.
References highPtTrackIsolations_cff::coneSize.
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 L1TMuonOverlapParams::LayerMapNode::bendingLayer, L1TMuonOverlapParams::connectedSectorsEnd(), L1TMuonOverlapParams::connectedSectorsStart(), L1TMuonOverlapParams::LayerMapNode::connectedToLayer, popcon2dropbox::copy(), L1TMuonOverlapParams::globalPhiStartMap(), L1TMuonOverlapParams::LayerMapNode::hwNumber, RefHitDef::iInput, RefHitDef::iRefLayer, RefHitDef::iRegion, L1TMuonOverlapParams::layerInputMap(), L1TMuonOverlapParams::layerMap(), L1TMuonOverlapParams::LayerMapNode::logicNumber, L1TMuonOverlapParams::RefLayerMapNode::logicNumber, MuonTCMETValueMapProducer_cff::nLayers, ecaldqm::binning::nPhiBins, RefHitDef::RefHitDef(), L1TMuonOverlapParams::refHitMap(), L1TMuonOverlapParams::RefLayerMapNode::refLayer, and L1TMuonOverlapParams::refLayerMap().
Referenced by OMTFPatternMaker::beginRun(), OMTFReconstruction::beginRun(), and OMTFPatternMaker::endJob().
|
inline |
Definition at line 92 of file OMTFConfiguration.h.
|
inline |
Definition at line 119 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi().
|
inline |
Definition at line 118 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), and OMTFinputMaker::getInputNumber().
|
inline |
Definition at line 115 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::fillCounts(), OMTFResult::finalise(), OMTFProcessor::processInput(), and OMTFinput::shiftMyPhi().
|
inline |
Definition at line 129 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::restrictInput().
|
inline |
Definition at line 121 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi().
|
inline |
Definition at line 120 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), and OMTFinputMaker::getInputNumber().
|
inline |
Definition at line 123 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi().
|
inline |
Definition at line 122 of file OMTFConfiguration.h.
Referenced by OMTFinputMaker::acceptDigi(), and OMTFinputMaker::getInputNumber().
|
inline |
Definition at line 112 of file OMTFConfiguration.h.
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, gedGsfElectrons_cfi::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.
|
inline |
|
inline |
Definition at line 131 of file OMTFConfiguration.h.
Referenced by OMTFPatternMaker::endJob(), OMTFConfigMaker::fillInputRange(), and XMLConfigWriter::writeConnectionsData().
|
inline |
Definition at line 134 of file OMTFConfiguration.h.
|
inline |
Definition at line 132 of file OMTFConfiguration.h.
Referenced by OMTFConfigMaker::fillInputRange(), OMTFConfigMaker::printConnections(), and XMLConfigWriter::writeConnectionsData().
|
inline |
Definition at line 135 of file OMTFConfiguration.h.
References edm::operator<<(), and MillePedeFileConverter_cfg::out.
|
inline |
Definition at line 125 of file OMTFConfiguration.h.
Referenced by XMLConfigWriter::writeConnectionsData().
|
inline |
|
inline |
Definition at line 127 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::fillCounts(), OMTFinput::getRefHits(), and OMTFProcessor::processInput().
|
inline |
Definition at line 116 of file OMTFConfiguration.h.
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, RefHitDef::iRegion, and edm::second().
Referenced by OMTFConfigMaker::fillPhiMaps(), and OMTFConfigMaker::makeConnetionsMap().
|
inline |
Definition at line 126 of file OMTFConfiguration.h.
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.
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 MuonTCMETValueMapProducer_cff::nLayers.
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 createfilelist::int, and ecaldqm::binning::nPhiBins.
|
inline |
Definition at line 97 of file OMTFConfiguration.h.
Referenced by GoldenPattern::normalise().
|
inline |
Definition at line 110 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::configure().
|
inline |
|
inline |
Definition at line 109 of file OMTFConfiguration.h.
Referenced by OMTFConfigMaker::fillPhiMaps(), and OMTFConfigMaker::printConnections().
|
inline |
Definition at line 98 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::averagePatterns(), OMTFinput::clear(), OMTFResult::clear(), OMTFProcessor::configure(), OMTFProcessor::fillCounts(), OMTFConfigMaker::fillInputRange(), 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.
Referenced by OMTFConfigMaker::makeConnetionsMap(), OMTFConfigMaker::OMTFConfigMaker(), and OMTFConfigMaker::printPhiMap().
|
inline |
Definition at line 102 of file OMTFConfiguration.h.
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.
Referenced by GoldenPattern::normalise(), and operator<<().
|
inline |
Definition at line 104 of file OMTFConfiguration.h.
Referenced by GoldenPattern::addCount(), OMTFinput::addLayerHit(), OMTFReconstruction::beginRun(), OMTFinput::clear(), OMTFConfigMaker::fillInputRange(), OMTFConfigMaker::fillPhiMaps(), OMTFinput::getRefHits(), OMTFinputMaker::initialize(), OMTFConfigMaker::OMTFConfigMaker(), GoldenPattern::process1Layer1RefLayer(), OMTFProcessor::restrictInput(), OMTFinput::shiftMyPhi(), XMLConfigWriter::writeConnectionsData(), and XMLConfigWriter::writeEventData().
|
inline |
Definition at line 101 of file OMTFConfiguration.h.
Referenced by OMTFinput::shiftMyPhi(), and XMLConfigWriter::writeConnectionsData().
|
inline |
Definition at line 107 of file OMTFConfiguration.h.
Referenced by operator<<(), and OMTFReconstruction::reconstruct().
|
inline |
Definition at line 105 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::fillCounts(), OMTFProcessor::processInput(), and XMLConfigWriter::writeConnectionsData().
|
inline |
Definition at line 100 of file OMTFConfiguration.h.
Referenced by OMTFProcessor::averagePatterns(), OMTFResult::clear(), OMTFProcessor::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.
Referenced by OMTFProcessor::configure(), OMTFProcessor::processInput(), and OMTFReconstruction::writeResultToXML().
|
inline |
Definition at line 93 of file OMTFConfiguration.h.
Referenced by XMLConfigWriter::initialiseXMLDocument().
|
friend |
Definition at line 171 of file OMTFConfiguration.cc.
|
private |
Definition at line 153 of file OMTFConfiguration.h.
|
private |
Starting and final sectors connected to processors. Index: processor number
Definition at line 152 of file OMTFConfiguration.h.
|
private |
Definition at line 146 of file OMTFConfiguration.h.
|
private |
Map of connections.
Definition at line 181 of file OMTFConfiguration.h.
|
private |
Definition at line 155 of file OMTFConfiguration.h.
|
private |
Definition at line 154 of file OMTFConfiguration.h.
|
private |
Definition at line 157 of file OMTFConfiguration.h.
|
private |
Definition at line 156 of file OMTFConfiguration.h.
|
private |
Definition at line 143 of file OMTFConfiguration.h.
|
private |
Definition at line 144 of file OMTFConfiguration.h.
|
private |
Definition at line 145 of file OMTFConfiguration.h.
|
private |
4D matrices used during creation of the connections tables.
Definition at line 184 of file OMTFConfiguration.h.
|
private |
Definition at line 185 of file OMTFConfiguration.h.
|
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 operator<<().
|
private |
Definition at line 141 of file OMTFConfiguration.h.
|
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.
|
private |
Definition at line 147 of file OMTFConfiguration.h.
|
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.