CMS 3D CMS Logo

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

#include <OMTFConfiguration.h>

Public Types

typedef std::vector< int > vector1D
 
typedef std::vector< std::pair
< unsigned int, unsigned int > > 
vector1D_pair
 
typedef std::vector< vector1Dvector2D
 
typedef std::vector
< vector1D_pair
vector2D_pair
 
typedef std::vector< vector2Dvector3D
 
typedef std::vector
< vector2D_pair
vector3D_pair
 
typedef std::vector< vector3Dvector4D
 

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_pairgetConnections () 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
 
vector4DgetMeasurements4D ()
 
const vector4DgetMeasurements4D () const
 
vector4DgetMeasurements4Dref ()
 
const vector4DgetMeasurements4Dref () const
 
const std::vector< std::vector
< int > > & 
getProcessorPhiVsRefLayer () const
 
const L1TMuonOverlapParamsgetRawParams () 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)
 

Detailed Description

Definition at line 49 of file OMTFConfiguration.h.

Member Typedef Documentation

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.

Definition at line 54 of file OMTFConfiguration.h.

typedef std::vector<vector2D > OMTFConfiguration::vector3D

Definition at line 59 of file OMTFConfiguration.h.

Definition at line 55 of file OMTFConfiguration.h.

typedef std::vector<vector3D > OMTFConfiguration::vector4D

Definition at line 60 of file OMTFConfiguration.h.

Constructor & Destructor Documentation

OMTFConfiguration::OMTFConfiguration ( )
inline

Definition at line 62 of file OMTFConfiguration.h.

Member Function Documentation

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.

unsigned int OMTFConfiguration::fwVersion ( ) const
inline

Definition at line 92 of file OMTFConfiguration.h.

const std::vector<unsigned int>& OMTFConfiguration::getBarrelMax ( ) const
inline

Definition at line 119 of file OMTFConfiguration.h.

const std::vector<unsigned int>& OMTFConfiguration::getBarrelMin ( ) const
inline

Definition at line 118 of file OMTFConfiguration.h.

const std::set<int>& OMTFConfiguration::getBendingLayers ( ) const
inline

Definition at line 115 of file OMTFConfiguration.h.

Referenced by OMTFResult::finalise(), and OMTFinput::shiftMyPhi().

const vector3D_pair& OMTFConfiguration::getConnections ( ) const
inline

Definition at line 129 of file OMTFConfiguration.h.

const std::vector<unsigned int>& OMTFConfiguration::getEndcap10DegMax ( ) const
inline

Definition at line 121 of file OMTFConfiguration.h.

const std::vector<unsigned int>& OMTFConfiguration::getEndcap10DegMin ( ) const
inline

Definition at line 120 of file OMTFConfiguration.h.

const std::vector<unsigned int>& OMTFConfiguration::getEndcap20DegMax ( ) const
inline

Definition at line 123 of file OMTFConfiguration.h.

const std::vector<unsigned int>& OMTFConfiguration::getEndcap20DegMin ( ) const
inline

Definition at line 122 of file OMTFConfiguration.h.

const std::map<int,int>& OMTFConfiguration::getHwToLogicLayer ( ) const
inline

Definition at line 112 of file OMTFConfiguration.h.

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.

const std::map<int,int>& OMTFConfiguration::getLogicToHwLayer ( ) const
inline

Definition at line 113 of file OMTFConfiguration.h.

const std::map<int,int>& OMTFConfiguration::getLogicToLogic ( ) const
inline

Definition at line 114 of file OMTFConfiguration.h.

Referenced by OMTFResult::finalise().

vector4D& OMTFConfiguration::getMeasurements4D ( )
inline

Definition at line 131 of file OMTFConfiguration.h.

const vector4D& OMTFConfiguration::getMeasurements4D ( ) const
inline

Definition at line 134 of file OMTFConfiguration.h.

vector4D& OMTFConfiguration::getMeasurements4Dref ( )
inline

Definition at line 132 of file OMTFConfiguration.h.

const vector4D& OMTFConfiguration::getMeasurements4Dref ( ) const
inline

Definition at line 135 of file OMTFConfiguration.h.

const std::vector<std::vector<int> >& OMTFConfiguration::getProcessorPhiVsRefLayer ( ) const
inline

Definition at line 125 of file OMTFConfiguration.h.

const L1TMuonOverlapParams* OMTFConfiguration::getRawParams ( ) const
inline

Definition at line 95 of file OMTFConfiguration.h.

const std::vector<std::vector<RefHitDef> >& OMTFConfiguration::getRefHitsDefs ( ) const
inline

Definition at line 127 of file OMTFConfiguration.h.

Referenced by OMTFinput::getRefHits().

const std::vector<int>& OMTFConfiguration::getRefToLogicNumber ( ) const
inline

Definition at line 116 of file OMTFConfiguration.h.

Referenced by OMTFinput::getRefHits().

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.

const std::vector<std::vector<std::vector<std::pair<int,int> > > >& OMTFConfiguration::getRegionPhisVsRefLayerVsInput ( ) const
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.

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.

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.

float OMTFConfiguration::minPdfVal ( ) const
inline

Definition at line 97 of file OMTFConfiguration.h.

unsigned int OMTFConfiguration::nGoldenPatterns ( ) const
inline

Definition at line 110 of file OMTFConfiguration.h.

unsigned int OMTFConfiguration::nHitsPerLayer ( ) const
inline

Definition at line 99 of file OMTFConfiguration.h.

unsigned int OMTFConfiguration::nInputs ( ) const
inline

Definition at line 109 of file OMTFConfiguration.h.

unsigned int OMTFConfiguration::nLayers ( ) const
inline

Definition at line 98 of file OMTFConfiguration.h.

Referenced by OMTFinput::clear(), OMTFResult::clear(), and OMTFinput::mergeData().

unsigned int OMTFConfiguration::nLogicRegions ( ) const
inline

Definition at line 108 of file OMTFConfiguration.h.

unsigned int OMTFConfiguration::nPdfAddrBits ( ) const
inline

Definition at line 102 of file OMTFConfiguration.h.

unsigned int OMTFConfiguration::nPdfValBits ( ) const
inline

Definition at line 103 of file OMTFConfiguration.h.

unsigned int OMTFConfiguration::nPhiBins ( ) const
inline
unsigned int OMTFConfiguration::nPhiBits ( ) const
inline

Definition at line 101 of file OMTFConfiguration.h.

Referenced by OMTFinput::shiftMyPhi().

unsigned int OMTFConfiguration::nProcessors ( ) const
inline

Definition at line 107 of file OMTFConfiguration.h.

unsigned int OMTFConfiguration::nRefHits ( ) const
inline

Definition at line 105 of file OMTFConfiguration.h.

unsigned int OMTFConfiguration::nRefLayers ( ) const
inline

Definition at line 100 of file OMTFConfiguration.h.

Referenced by OMTFResult::clear(), and OMTFResult::empty().

unsigned int OMTFConfiguration::nTestRefHits ( ) const
inline

Definition at line 106 of file OMTFConfiguration.h.

unsigned int OMTFConfiguration::patternsVersion ( ) const
inline

Definition at line 93 of file OMTFConfiguration.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const OMTFConfiguration aConfig 
)
friend

Definition at line 171 of file OMTFConfiguration.cc.

Member Data Documentation

std::vector<unsigned int> OMTFConfiguration::barrelMax
private

Definition at line 153 of file OMTFConfiguration.h.

std::vector<unsigned int> OMTFConfiguration::barrelMin
private

Starting and final sectors connected to processors. Index: processor number

Definition at line 152 of file OMTFConfiguration.h.

std::set<int> OMTFConfiguration::bendingLayers
private

Definition at line 146 of file OMTFConfiguration.h.

vector3D_pair OMTFConfiguration::connections
private

Map of connections.

Definition at line 181 of file OMTFConfiguration.h.

std::vector<unsigned int> OMTFConfiguration::endcap10DegMax
private

Definition at line 155 of file OMTFConfiguration.h.

std::vector<unsigned int> OMTFConfiguration::endcap10DegMin
private

Definition at line 154 of file OMTFConfiguration.h.

std::vector<unsigned int> OMTFConfiguration::endcap20DegMax
private

Definition at line 157 of file OMTFConfiguration.h.

std::vector<unsigned int> OMTFConfiguration::endcap20DegMin
private

Definition at line 156 of file OMTFConfiguration.h.

std::map<int,int> OMTFConfiguration::hwToLogicLayer
private

Definition at line 143 of file OMTFConfiguration.h.

std::map<int,int> OMTFConfiguration::logicToHwLayer
private

Definition at line 144 of file OMTFConfiguration.h.

std::map<int,int> OMTFConfiguration::logicToLogic
private

Definition at line 145 of file OMTFConfiguration.h.

vector4D OMTFConfiguration::measurements4D
private

4D matrices used during creation of the connections tables.

Definition at line 184 of file OMTFConfiguration.h.

vector4D OMTFConfiguration::measurements4Dref
private

Definition at line 185 of file OMTFConfiguration.h.

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

L1TMuonOverlapParams OMTFConfiguration::rawParams
private

Definition at line 141 of file OMTFConfiguration.h.

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

std::vector<int> OMTFConfiguration::refToLogicNumber
private

Definition at line 147 of file OMTFConfiguration.h.

std::vector<std::vector<std::vector<std::pair<int,int> > > > OMTFConfiguration::regionPhisVsRefLayerVsInput
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.