CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | Friends
OMTFConfiguration Class Reference

#include <OMTFConfiguration.h>

Inheritance diagram for OMTFConfiguration:
ProcConfigurationBase

Classes

struct  PatternPt
 pattern pt range in Gev More...
 

Public Types

typedef std::vector< int > vector1D
 
typedef std::vector< int > vector1D
 
typedef std::vector< std::pair< unsigned int, unsigned int > > vector1D_pair
 
typedef std::vector< std::pair< unsigned int, unsigned int > > vector1D_pair
 
typedef std::vector< vector1Dvector2D
 
typedef std::vector< vector1Dvector2D
 
typedef std::vector< vector1D_pairvector2D_pair
 
typedef std::vector< vector1D_pairvector2D_pair
 
typedef std::vector< vector2Dvector3D
 
typedef std::vector< vector2Dvector3D
 
typedef std::vector< vector2D_pairvector3D_pair
 
typedef std::vector< vector2D_pairvector3D_pair
 
typedef std::vector< vector3Dvector4D
 
typedef std::vector< vector3Dvector4D
 

Public Member Functions

void configure (const L1TMuonOverlapParams *omtfParams)
 
virtual void configure (const L1TMuonOverlapParams *omtfParams)
 
void configureFromEdmParameterSet (const edm::ParameterSet &edmParameterSet) override
 
int etaToHwEta (double eta) const override
 
unsigned int fwVersion () const
 
unsigned int fwVersion () const
 
const std::vector< unsigned int > & getBarrelMax () const
 
const std::vector< unsigned int > & getBarrelMax () const
 
const std::vector< unsigned int > & getBarrelMin () const
 
const std::vector< unsigned int > & getBarrelMin () const
 
const std::set< int > & getBendingLayers () const
 
const std::set< int > & getBendingLayers () const
 
const vector3D_pairgetConnections () const
 
const vector3D_pairgetConnections () const
 
const std::vector< unsigned int > & getEndcap10DegMax () const
 
const std::vector< unsigned int > & getEndcap10DegMax () const
 
const std::vector< unsigned int > & getEndcap10DegMin () const
 
const std::vector< unsigned int > & getEndcap10DegMin () const
 
const std::vector< unsigned int > & getEndcap20DegMax () const
 
const std::vector< unsigned int > & getEndcap20DegMax () const
 
const std::vector< unsigned int > & getEndcap20DegMin () const
 
const std::vector< unsigned int > & getEndcap20DegMin () const
 
const std::string & getGhostBusterType () const
 
int getGoldenPatternResultFinalizeFunction () const
 
const std::map< int, int > & getHwToLogicLayer () const
 
const std::map< int, int > & getHwToLogicLayer () const
 
uint32_t getLayerNumber (uint32_t rawId) const
 
uint32_t getLayerNumber (uint32_t rawId) const
 
const std::map< int, int > & getLogicToHwLayer () const
 
const std::map< int, int > & getLogicToHwLayer () const
 
const std::map< int, int > & getLogicToLogic () const
 
const std::map< int, int > & getLogicToLogic () const
 
vector4DgetMeasurements4D ()
 
const vector4DgetMeasurements4D () const
 
vector4DgetMeasurements4D ()
 
const vector4DgetMeasurements4D () const
 
vector4DgetMeasurements4Dref ()
 
const vector4DgetMeasurements4Dref () const
 
vector4DgetMeasurements4Dref ()
 
const vector4DgetMeasurements4Dref () const
 
template<class GoldenPatternType >
vector2D getPatternGroups (const std::vector< std::unique_ptr< GoldenPatternType > > &goldenPats) const
 
unsigned int getPatternNum (double pt, int charge) const
 charge: -1 - negative, +1 - positive More...
 
PatternPt getPatternPtRange (unsigned int patNum) const
 
const std::vector< std::vector< int > > & getProcessorPhiVsRefLayer () const
 
const std::vector< std::vector< int > > & getProcessorPhiVsRefLayer () const
 
unsigned int getProcIndx (unsigned int iProcessor, l1t::tftype mtfType) const
 input phi should be in the hardware scale (nPhiBins units for 2pi), can be in range -nPhiBins ... nPhiBins, More...
 
int getProcScalePhi (unsigned int iProcessor, double phiRad) const
 
int getProcScalePhi (double phiRad, double procPhiZeroRad=0) const override
 
const L1TMuonOverlapParamsgetRawParams () const
 
const L1TMuonOverlapParamsgetRawParams () const
 
const std::vector< std::vector< RefHitDef > > & getRefHitsDefs () const
 
const std::vector< std::vector< RefHitDef > > & getRefHitsDefs () const
 
const std::vector< int > & getRefToLogicNumber () const
 
const std::vector< int > & getRefToLogicNumber () const
 
unsigned int getRegionNumberFromMap (unsigned int iInput, unsigned int iRefLayer, int iPhi) 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
 
const std::vector< std::vector< std::vector< std::pair< int, int > > > > & getRegionPhisVsRefLayerVsInput () const
 
int getSorterType () const
 
int globalPhiStart (unsigned int iProcessor) const
 
int globalPhiStart (unsigned int iProcessor) const
 
virtual double hwEtaToEta (int hwEta) const
 center of eta bin More...
 
virtual double hwPhiToGlobalPhi (int phi) const
 
double hwPtToGev (int hwPt) const override
 uGMT pt scale conversion More...
 
void initCounterMatrices ()
 
void initCounterMatrices ()
 
bool isBendingLayer (unsigned int iLayer) const override
 
bool isInRegionRange (int iPhiStart, unsigned int coneSize, int iPhi) const
 
bool isInRegionRange (int iPhiStart, unsigned int coneSize, int iPhi) const
 
bool isNoHitValueInPdf () const
 
float minPdfVal () const
 
float minPdfVal () const
 
unsigned int nGoldenPatterns () const
 
unsigned int nGoldenPatterns () const
 
unsigned int nHitsPerLayer () const
 
unsigned int nHitsPerLayer () const
 
unsigned int nInputs () const
 
unsigned int nInputs () const
 
unsigned int nLayers () const
 
unsigned int nLayers () const override
 
unsigned int nLogicRegions () const
 
unsigned int nLogicRegions () const
 
unsigned int nPdfAddrBits () const
 
unsigned int nPdfAddrBits () const
 
unsigned int nPdfBins () const
 
unsigned int nPdfValBits () const
 
unsigned int nPdfValBits () const
 
unsigned int nPhiBins () const
 
unsigned int nPhiBins () const override
 
unsigned int nPhiBits () const
 
unsigned int nPhiBits () const
 
unsigned int nProcessors () const
 
unsigned int nProcessors () const
 
unsigned int nRefHits () const
 
unsigned int nRefHits () const
 
unsigned int nRefLayers () const
 
unsigned int nRefLayers () const
 
unsigned int nTestRefHits () const
 
unsigned int nTestRefHits () const
 
 OMTFConfiguration ()
 
 OMTFConfiguration ()
 
unsigned int patternsVersion () const
 
unsigned int patternsVersion () const
 
int pdfMaxValue () const
 
virtual int phiToGlobalHwPhi (double phi) const
 
void printConfig () const
 
unsigned int processorCnt () const
 
double procHwPhiToGlobalPhi (int procHwPhi, int procHwPhi0) const
 
int procPhiToGmtPhi (int procPhi) const
 
int ptGevToHw (double ptGev) const override
 uGMT pt scale conversion: [0GeV, 0.5GeV) = 1 [0.5GeV, 1 Gev) = 2 More...
 
void setGhostBusterType (const std::string &ghostBusterType="")
 
void setGoldenPatternResultFinalizeFunction (int goldenPatternResultFinalizeFunction=0)
 
void setNoHitValueInPdf (bool noHitValueInPdf=false)
 
void setPatternPtRange (const std::vector< PatternPt > &patternPts)
 
void setSorterType (int sorterType=0)
 
- Public Member Functions inherited from ProcConfigurationBase
virtual int cscLctCentralBx () const
 
virtual unsigned int etaHwToEtaBin (int etaHw) const
 
virtual int foldPhi (int phi) const
 
virtual unsigned int getBxToProcess () const
 
virtual bool getFixCscGeometryOffset () const
 
virtual int getMinDtPhiBQuality () const
 
virtual int getMinDtPhiQuality () const
 
virtual bool getRpcDropAllClustersIfMoreThanMax () const
 
virtual unsigned int getRpcMaxClusterCnt () const
 
virtual unsigned int getRpcMaxClusterSize () const
 
 ProcConfigurationBase ()
 
virtual unsigned int ptGeVToPtBin (float ptGeV) const
 
virtual unsigned int ptHwToPtBin (int ptHw) const
 
virtual void setCscLctCentralBx (int lctCentralBx)
 
virtual bool setFixCscGeometryOffset (bool fixCscGeometryOffset)
 
virtual void setMinDtPhiBQuality (int minDtPhiBQuality=2)
 
virtual void setMinDtPhiQuality (int minDtPhiQuality=2)
 
virtual void setRpcDropAllClustersIfMoreThanMax (bool rpcDropAllClustersIfMoreThanMax=true)
 
virtual void setRpcMaxClusterCnt (unsigned int rpcMaxClusterCnt=2)
 
virtual void setRpcMaxClusterSize (unsigned int rpcMaxClusterSize=4)
 
virtual ~ProcConfigurationBase ()
 

Public Attributes

double etaUnit = 0.010875
 
double phiGmtUnit = 2. * M_PI / 576
 
double ptUnit = 0.5
 

Static Public Attributes

static const unsigned int patternsInGroup = 4
 

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::string ghostBusterType = ""
 
int goldenPatternResultFinalizeFunction = 0
 
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
 
bool noHitValueInPdf = false
 
std::vector< PatternPtpatternPts
 
unsigned int pdfBins = 0
 
int pdfMaxVal = 0
 
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
 
int sorterType = 0
 

Friends

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

Detailed Description

Definition at line 44 of file OMTFConfiguration.h.

Member Typedef Documentation

◆ vector1D [1/2]

typedef std::vector<int> OMTFConfiguration::vector1D

Definition at line 50 of file OMTFConfiguration.h.

◆ vector1D [2/2]

typedef std::vector<int> OMTFConfiguration::vector1D

Definition at line 58 of file OMTFConfiguration.h.

◆ vector1D_pair [1/2]

typedef std::vector<std::pair<unsigned int, unsigned int> > OMTFConfiguration::vector1D_pair

Definition at line 46 of file OMTFConfiguration.h.

◆ vector1D_pair [2/2]

typedef std::vector<std::pair<unsigned int, unsigned int> > OMTFConfiguration::vector1D_pair

Definition at line 54 of file OMTFConfiguration.h.

◆ vector2D [1/2]

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

Definition at line 51 of file OMTFConfiguration.h.

◆ vector2D [2/2]

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

Definition at line 59 of file OMTFConfiguration.h.

◆ vector2D_pair [1/2]

Definition at line 47 of file OMTFConfiguration.h.

◆ vector2D_pair [2/2]

Definition at line 55 of file OMTFConfiguration.h.

◆ vector3D [1/2]

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

Definition at line 52 of file OMTFConfiguration.h.

◆ vector3D [2/2]

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

Definition at line 60 of file OMTFConfiguration.h.

◆ vector3D_pair [1/2]

Definition at line 48 of file OMTFConfiguration.h.

◆ vector3D_pair [2/2]

Definition at line 56 of file OMTFConfiguration.h.

◆ vector4D [1/2]

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

Definition at line 53 of file OMTFConfiguration.h.

◆ vector4D [2/2]

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

Definition at line 61 of file OMTFConfiguration.h.

Constructor & Destructor Documentation

◆ OMTFConfiguration() [1/2]

OMTFConfiguration::OMTFConfiguration ( )
inline

Definition at line 55 of file OMTFConfiguration.h.

55 { ; };

◆ OMTFConfiguration() [2/2]

OMTFConfiguration::OMTFConfiguration ( )
inline

Definition at line 63 of file OMTFConfiguration.h.

63 { ; };

Member Function Documentation

◆ configure() [1/2]

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 49 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, nInputs(), nLayers(), nLogicRegions(), nPhiBins(), nProcessors(), nRefHits(), nRefLayers(), fakeOmtfParams_cff::omtfParams, processorPhiVsRefLayer, rawParams, refHitsDefs, L1TMuonOverlapParams::RefLayerMapNode::refLayer, refToLogicNumber, and regionPhisVsRefLayerVsInput.

Referenced by OMTFPatternMaker::beginRun(), OMTFReconstruction::beginRun(), and OMTFPatternMaker::endJob().

49  {
51 
53  barrelMin.resize(nProcessors());
54  endcap10DegMin.resize(nProcessors());
55  endcap20DegMin.resize(nProcessors());
56 
57  barrelMax.resize(nProcessors());
58  endcap10DegMax.resize(nProcessors());
59  endcap20DegMax.resize(nProcessors());
60 
61  const std::vector<int> *connectedSectorsStartVec = omtfParams->connectedSectorsStart();
62  const std::vector<int> *connectedSectorsEndVec = omtfParams->connectedSectorsEnd();
63 
64  std::copy(connectedSectorsStartVec->begin(), connectedSectorsStartVec->begin() + 6, barrelMin.begin());
65  std::copy(connectedSectorsStartVec->begin() + 6, connectedSectorsStartVec->begin() + 12, endcap10DegMin.begin());
66  std::copy(connectedSectorsStartVec->begin() + 12, connectedSectorsStartVec->end(), endcap20DegMin.begin());
67 
68  std::copy(connectedSectorsEndVec->begin(), connectedSectorsEndVec->begin() + 6, barrelMax.begin());
69  std::copy(connectedSectorsEndVec->begin() + 6, connectedSectorsEndVec->begin() + 12, endcap10DegMax.begin());
70  std::copy(connectedSectorsEndVec->begin() + 12, connectedSectorsEndVec->end(), endcap20DegMax.begin());
71 
73  const std::vector<L1TMuonOverlapParams::LayerMapNode> *layerMap = omtfParams->layerMap();
74 
75  for (unsigned int iLayer = 0; iLayer < nLayers(); ++iLayer) {
76  L1TMuonOverlapParams::LayerMapNode aNode = layerMap->at(iLayer);
77  hwToLogicLayer[aNode.hwNumber] = aNode.logicNumber;
78  logicToHwLayer[aNode.logicNumber] = aNode.hwNumber;
80  if (aNode.bendingLayer)
81  bendingLayers.insert(aNode.logicNumber);
82  }
84  refToLogicNumber.resize(nRefLayers());
85 
86  const std::vector<L1TMuonOverlapParams::RefLayerMapNode> *refLayerMap = omtfParams->refLayerMap();
87  for (unsigned int iRefLayer = 0; iRefLayer < nRefLayers(); ++iRefLayer) {
88  L1TMuonOverlapParams::RefLayerMapNode aNode = refLayerMap->at(iRefLayer);
89  refToLogicNumber[aNode.refLayer] = aNode.logicNumber;
90  }
92  std::vector<int> vector1D(nRefLayers(), nPhiBins());
94 
97  vector1D_pair aLayer1D(nLayers());
99  vector2D_pair aLayer2D;
100  aLayer2D.assign(nLogicRegions(), aLayer1D);
102  connections.assign(nProcessors(), aLayer2D);
103 
106  std::vector<std::pair<int, int> > aRefHit1D(nLogicRegions(), std::pair<int, int>(9999, 9999));
108  std::vector<std::vector<std::pair<int, int> > > aRefHit2D;
109  aRefHit2D.assign(nRefLayers(), aRefHit1D);
111  regionPhisVsRefLayerVsInput.assign(nInputs(), aRefHit2D);
112 
113  //Vector of ref hit definitions
114  std::vector<RefHitDef> aRefHitsDefs(nRefHits());
116  refHitsDefs.assign(nProcessors(), aRefHitsDefs);
117 
118  const std::vector<int> *phiStartMap = omtfParams->globalPhiStartMap();
119  const std::vector<L1TMuonOverlapParams::RefHitNode> *refHitMap = omtfParams->refHitMap();
120  const std::vector<L1TMuonOverlapParams::LayerInputNode> *layerInputMap = omtfParams->layerInputMap();
121  unsigned int tmpIndex = 0;
122  for (unsigned int iProcessor = 0; iProcessor < nProcessors(); ++iProcessor) {
123  for (unsigned int iRefLayer = 0; iRefLayer < nRefLayers(); ++iRefLayer) {
124  int iPhiStart = phiStartMap->at(iRefLayer + iProcessor * nRefLayers());
125  processorPhiVsRefLayer[iProcessor][iRefLayer] = iPhiStart;
126  }
127  for (unsigned int iRefHit = 0; iRefHit < nRefHits(); ++iRefHit) {
128  int iPhiMin = refHitMap->at(iRefHit + iProcessor * nRefHits()).iPhiMin;
129  int iPhiMax = refHitMap->at(iRefHit + iProcessor * nRefHits()).iPhiMax;
130  unsigned int iInput = refHitMap->at(iRefHit + iProcessor * nRefHits()).iInput;
131  unsigned int iRegion = refHitMap->at(iRefHit + iProcessor * nRefHits()).iRegion;
132  unsigned int iRefLayer = refHitMap->at(iRefHit + iProcessor * nRefHits()).iRefLayer;
133  regionPhisVsRefLayerVsInput[iInput][iRefLayer][iRegion] = std::pair<int, int>(iPhiMin, iPhiMax);
134  refHitsDefs[iProcessor][iRefHit] = RefHitDef(iInput, iPhiMin, iPhiMax, iRegion, iRefLayer);
135  }
136  for (unsigned int iLogicRegion = 0; iLogicRegion < nLogicRegions(); ++iLogicRegion) {
137  for (unsigned int iLayer = 0; iLayer < nLayers(); ++iLayer) {
138  tmpIndex = iLayer + iLogicRegion * nLayers() + iProcessor * nLogicRegions() * nLayers();
139  unsigned int iFirstInput = layerInputMap->at(tmpIndex).iFirstInput;
140  unsigned int nInputsInRegion = layerInputMap->at(tmpIndex).nInputs;
141  connections[iProcessor][iLogicRegion][iLayer] =
142  std::pair<unsigned int, unsigned int>(iFirstInput, nInputsInRegion);
144  if (iProcessor != 0)
145  connections[iProcessor][iLogicRegion][iLayer] = connections[0][iLogicRegion][iLayer];
146  }
147  }
148  }
149 
151 }
std::vector< std::pair< unsigned int, unsigned int > > vector1D_pair
unsigned int hwNumber
short layer number used within OMTF emulator
std::vector< unsigned int > endcap20DegMax
unsigned int logicNumber
logic numer of the layer
std::vector< unsigned int > endcap10DegMin
std::vector< unsigned int > barrelMax
std::vector< std::vector< std::vector< std::pair< int, int > > > > regionPhisVsRefLayerVsInput
std::map< int, int > logicToLogic
unsigned int nRefHits() const
unsigned int nPhiBins() const
omtfParams
OMTF ESProducer.
std::vector< unsigned int > barrelMin
std::vector< std::vector< int > > processorPhiVsRefLayer
vector3D_pair connections
Map of connections.
std::vector< int > vector1D
unsigned int nLayers() const
bool bendingLayer
Is this a bending layers?
std::vector< int > refToLogicNumber
unsigned int nRefLayers() const
std::map< int, int > hwToLogicLayer
unsigned int refLayer
Reference layer number.
std::map< int, int > logicToHwLayer
unsigned int nInputs() const
std::set< int > bendingLayers
L1TMuonOverlapParams rawParams
unsigned int logicNumber
Corresponding logical layer number.
unsigned int nProcessors() const
std::vector< unsigned int > endcap10DegMax
std::vector< unsigned int > endcap20DegMin
unsigned int nLogicRegions() const
std::vector< vector1D_pair > vector2D_pair
std::vector< std::vector< RefHitDef > > refHitsDefs

◆ configure() [2/2]

virtual void OMTFConfiguration::configure ( const L1TMuonOverlapParams omtfParams)
virtual

◆ configureFromEdmParameterSet()

void OMTFConfiguration::configureFromEdmParameterSet ( const edm::ParameterSet edmParameterSet)
overridevirtual

configuration from the edm::ParameterSet the parameters are set (i.e. overwritten) only if their exist in the edmParameterSet

Reimplemented from ProcConfigurationBase.

Definition at line 189 of file OMTFConfiguration.cc.

References ProcConfigurationBase::configureFromEdmParameterSet(), edm::ParameterSet::exists(), getGhostBusterType(), edm::ParameterSet::getParameter(), ProcConfigurationBase::setFixCscGeometryOffset(), setGhostBusterType(), setGoldenPatternResultFinalizeFunction(), setNoHitValueInPdf(), sorterType, and AlCaHLTBitMon_QueryRunRegistry::string.

189  {
190  edm::LogVerbatim("OMTFReconstruction") << "OMTFConfiguration::configureFromEdmParameterSet: setting the params from "
191  "python config (overwrites the EventSetup (DB) params): "
192  << std::endl;
193 
195 
196  if (edmParameterSet.exists("goldenPatternResultFinalizeFunction")) {
197  int finalizeFunction = edmParameterSet.getParameter<int>("goldenPatternResultFinalizeFunction");
198  setGoldenPatternResultFinalizeFunction(finalizeFunction);
199  edm::LogVerbatim("OMTFReconstruction")
200  << "GoldenPatternResult::setFinalizeFunction: " << finalizeFunction << std::endl;
201  }
202 
203  if (edmParameterSet.exists("noHitValueInPdf")) {
204  setNoHitValueInPdf(edmParameterSet.getParameter<bool>("noHitValueInPdf"));
205  edm::LogVerbatim("OMTFReconstruction")
206  << "noHitValueInPdf: " << edmParameterSet.getParameter<bool>("noHitValueInPdf") << std::endl;
207  }
208 
209  if (edmParameterSet.exists("sorterType")) {
210  string sorterTypeStr = edmParameterSet.getParameter<std::string>("sorterType");
211  if (sorterTypeStr == "byNhitsByLLH")
212  sorterType = 0;
213  if (sorterTypeStr == "byLLH")
214  sorterType = 1;
215 
216  edm::LogVerbatim("OMTFReconstruction") << "sorterType: " << sorterType << " = "
217  << edmParameterSet.getParameter<std::string>("sorterType") << std::endl;
218  }
219 
220  if (edmParameterSet.exists("ghostBusterType")) {
221  setGhostBusterType(edmParameterSet.getParameter<std::string>("ghostBusterType"));
222 
223  edm::LogVerbatim("OMTFReconstruction") << "ghostBusterType: " << getGhostBusterType() << std::endl;
224  }
225 
226  setFixCscGeometryOffset(true); //for the OMTF by default is true, read from python if needed
227 }
Log< level::Info, true > LogVerbatim
virtual bool setFixCscGeometryOffset(bool fixCscGeometryOffset)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
void setNoHitValueInPdf(bool noHitValueInPdf=false)
virtual void configureFromEdmParameterSet(const edm::ParameterSet &edmParameterSet)
bool exists(std::string const &parameterName) const
checks if a parameter exists
void setGoldenPatternResultFinalizeFunction(int goldenPatternResultFinalizeFunction=0)
void setGhostBusterType(const std::string &ghostBusterType="")
const std::string & getGhostBusterType() const

◆ etaToHwEta()

int OMTFConfiguration::etaToHwEta ( double  eta) const
inlineoverridevirtual

Implements ProcConfigurationBase.

Definition at line 152 of file OMTFConfiguration.h.

References PVValHelper::eta, and etaUnit.

◆ fwVersion() [1/2]

unsigned int OMTFConfiguration::fwVersion ( ) const
inline

◆ fwVersion() [2/2]

unsigned int OMTFConfiguration::fwVersion ( ) const
inline

Definition at line 89 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::fwVersion(), and rawParams.

89 { return (rawParams.fwVersion() >> 16) & 0xFFFF; };
unsigned fwVersion() const
L1TMuonOverlapParams rawParams

◆ getBarrelMax() [1/2]

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

Definition at line 108 of file OMTFConfiguration.h.

References barrelMax.

Referenced by OMTFinputMaker::acceptDigi().

108 { return barrelMax; }
std::vector< unsigned int > barrelMax

◆ getBarrelMax() [2/2]

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

Definition at line 121 of file OMTFConfiguration.h.

References barrelMax.

121 { return barrelMax; }
std::vector< unsigned int > barrelMax

◆ getBarrelMin() [1/2]

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

Definition at line 107 of file OMTFConfiguration.h.

References barrelMin.

Referenced by OMTFinputMaker::acceptDigi(), and OMTFinputMaker::getInputNumber().

107 { return barrelMin; }
std::vector< unsigned int > barrelMin

◆ getBarrelMin() [2/2]

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

Definition at line 120 of file OMTFConfiguration.h.

References barrelMin.

120 { return barrelMin; }
std::vector< unsigned int > barrelMin

◆ getBendingLayers() [1/2]

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

◆ getBendingLayers() [2/2]

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

Definition at line 117 of file OMTFConfiguration.h.

References bendingLayers.

117 { return bendingLayers; }
std::set< int > bendingLayers

◆ getConnections() [1/2]

const vector3D_pair& OMTFConfiguration::getConnections ( ) const
inline

Definition at line 120 of file OMTFConfiguration.h.

References connections.

Referenced by OMTFProcessor< GoldenPatternType >::restrictInput().

120 { return connections; };
vector3D_pair connections
Map of connections.

◆ getConnections() [2/2]

const vector3D_pair& OMTFConfiguration::getConnections ( ) const
inline

Definition at line 133 of file OMTFConfiguration.h.

References connections.

133 { return connections; };
vector3D_pair connections
Map of connections.

◆ getEndcap10DegMax() [1/2]

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

Definition at line 110 of file OMTFConfiguration.h.

References endcap10DegMax.

Referenced by OMTFinputMaker::acceptDigi().

110 { return endcap10DegMax; }
std::vector< unsigned int > endcap10DegMax

◆ getEndcap10DegMax() [2/2]

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

Definition at line 123 of file OMTFConfiguration.h.

References endcap10DegMax.

123 { return endcap10DegMax; }
std::vector< unsigned int > endcap10DegMax

◆ getEndcap10DegMin() [1/2]

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

Definition at line 109 of file OMTFConfiguration.h.

References endcap10DegMin.

Referenced by OMTFinputMaker::acceptDigi(), and OMTFinputMaker::getInputNumber().

109 { return endcap10DegMin; }
std::vector< unsigned int > endcap10DegMin

◆ getEndcap10DegMin() [2/2]

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

Definition at line 122 of file OMTFConfiguration.h.

References endcap10DegMin.

122 { return endcap10DegMin; }
std::vector< unsigned int > endcap10DegMin

◆ getEndcap20DegMax() [1/2]

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

Definition at line 112 of file OMTFConfiguration.h.

References endcap20DegMax.

Referenced by OMTFinputMaker::acceptDigi().

112 { return endcap20DegMax; }
std::vector< unsigned int > endcap20DegMax

◆ getEndcap20DegMax() [2/2]

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

Definition at line 125 of file OMTFConfiguration.h.

References endcap20DegMax.

125 { return endcap20DegMax; }
std::vector< unsigned int > endcap20DegMax

◆ getEndcap20DegMin() [1/2]

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

Definition at line 111 of file OMTFConfiguration.h.

References endcap20DegMin.

Referenced by OMTFinputMaker::acceptDigi(), and OMTFinputMaker::getInputNumber().

111 { return endcap20DegMin; }
std::vector< unsigned int > endcap20DegMin

◆ getEndcap20DegMin() [2/2]

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

Definition at line 124 of file OMTFConfiguration.h.

References endcap20DegMin.

124 { return endcap20DegMin; }
std::vector< unsigned int > endcap20DegMin

◆ getGhostBusterType()

const std::string& OMTFConfiguration::getGhostBusterType ( ) const
inline

Definition at line 252 of file OMTFConfiguration.h.

References ghostBusterType.

Referenced by configureFromEdmParameterSet(), and GhostBusterPreferRefDt::select().

252 { return ghostBusterType; }
std::string ghostBusterType

◆ getGoldenPatternResultFinalizeFunction()

int OMTFConfiguration::getGoldenPatternResultFinalizeFunction ( ) const
inline

◆ getHwToLogicLayer() [1/2]

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

Definition at line 101 of file OMTFConfiguration.h.

References hwToLogicLayer.

Referenced by OMTFinputMaker::processCSC(), OMTFinputMaker::processDT(), and OMTFinputMaker::processRPC().

101 { return hwToLogicLayer; }
std::map< int, int > hwToLogicLayer

◆ getHwToLogicLayer() [2/2]

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

Definition at line 114 of file OMTFConfiguration.h.

References hwToLogicLayer.

114 { return hwToLogicLayer; }
std::map< int, int > hwToLogicLayer

◆ getLayerNumber() [1/2]

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 204 of file OMTFConfiguration.cc.

References gather_cfg::cout, MuonSubdetId::CSC, omtf::DataWord64::csc, hcalRecHitTable_cff::detId, MuonSubdetId::DT, dt, PixelPluginsPhase0_cfi::isBarrel, RPCDetId::layer(), DetId::Muon, nano_mu_digi_cff::rawId, RPCDetId::region(), MuonSubdetId::RPC, and RPCDetId::station().

Referenced by OMTFinputMaker::processCSC(), OMTFinputMaker::processDT(), and OMTFinputMaker::processRPC().

204  {
205  uint32_t aLayer = 0;
206 
207  DetId detId(rawId);
208  if (detId.det() != DetId::Muon) {
209  std::cout << "PROBLEM: hit in unknown Det, detID: " << detId.det() << std::endl;
210  return rawId;
211  }
212 
213  switch (detId.subdetId()) {
214  case MuonSubdetId::RPC: {
215  RPCDetId aId(rawId);
216  bool isBarrel = (aId.region() == 0);
217  if (isBarrel)
218  aLayer = aId.station() <= 2 ? 2 * (aId.station() - 1) + aId.layer() : aId.station() + 2;
219  else
220  aLayer = aId.station();
221  aLayer += 10 * (!isBarrel);
222  break;
223  }
224  case MuonSubdetId::DT: {
226  aLayer = dt.station();
227  break;
228  }
229  case MuonSubdetId::CSC: {
230  CSCDetId csc(rawId);
231  aLayer = csc.station();
232  if (csc.ring() == 2 && csc.station() == 1)
233  aLayer = 1811; //1811 = 2011 - 200, as we want to get 2011 for this chamber.
234  if (csc.station() == 4)
235  aLayer = 4;
236  break;
237  }
238  }
239 
240  int hwNumber = aLayer + 100 * detId.subdetId();
241 
242  return hwNumber;
243 }
float dt
Definition: AMPTWrapper.h:136
Definition: L1Track.h:19
Definition: DetId.h:17
static constexpr int RPC
Definition: MuonSubdetId.h:13
static constexpr int DT
Definition: MuonSubdetId.h:11
static constexpr int CSC
Definition: MuonSubdetId.h:12

◆ getLayerNumber() [2/2]

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

◆ getLogicToHwLayer() [1/2]

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

Definition at line 102 of file OMTFConfiguration.h.

References logicToHwLayer.

102 { return logicToHwLayer; }
std::map< int, int > logicToHwLayer

◆ getLogicToHwLayer() [2/2]

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

Definition at line 115 of file OMTFConfiguration.h.

References logicToHwLayer.

115 { return logicToHwLayer; }
std::map< int, int > logicToHwLayer

◆ getLogicToLogic() [1/2]

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

◆ getLogicToLogic() [2/2]

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

Definition at line 116 of file OMTFConfiguration.h.

References logicToLogic.

116 { return logicToLogic; }
std::map< int, int > logicToLogic

◆ getMeasurements4D() [1/4]

vector4D& OMTFConfiguration::getMeasurements4D ( )
inline

Definition at line 122 of file OMTFConfiguration.h.

References measurements4D.

Referenced by OMTFPatternMaker::endJob(), OMTFConfigMaker::fillInputRange(), and XMLConfigWriter::writeConnectionsData().

122 { return measurements4D; }
vector4D measurements4D
4D matrices used during creation of the connections tables.

◆ getMeasurements4D() [2/4]

const vector4D& OMTFConfiguration::getMeasurements4D ( ) const
inline

Definition at line 125 of file OMTFConfiguration.h.

References measurements4D.

125 { return measurements4D; }
vector4D measurements4D
4D matrices used during creation of the connections tables.

◆ getMeasurements4D() [3/4]

vector4D& OMTFConfiguration::getMeasurements4D ( )
inline

Definition at line 135 of file OMTFConfiguration.h.

References measurements4D.

135 { return measurements4D; }
vector4D measurements4D
4D matrices used during creation of the connections tables.

◆ getMeasurements4D() [4/4]

const vector4D& OMTFConfiguration::getMeasurements4D ( ) const
inline

Definition at line 138 of file OMTFConfiguration.h.

References measurements4D.

138 { return measurements4D; }
vector4D measurements4D
4D matrices used during creation of the connections tables.

◆ getMeasurements4Dref() [1/4]

vector4D& OMTFConfiguration::getMeasurements4Dref ( )
inline

◆ getMeasurements4Dref() [2/4]

const vector4D& OMTFConfiguration::getMeasurements4Dref ( ) const
inline

Definition at line 126 of file OMTFConfiguration.h.

References measurements4Dref.

126 { return measurements4Dref; }

◆ getMeasurements4Dref() [3/4]

vector4D& OMTFConfiguration::getMeasurements4Dref ( )
inline

Definition at line 136 of file OMTFConfiguration.h.

References measurements4Dref.

136 { return measurements4Dref; }

◆ getMeasurements4Dref() [4/4]

const vector4D& OMTFConfiguration::getMeasurements4Dref ( ) const
inline

Definition at line 139 of file OMTFConfiguration.h.

References measurements4Dref.

139 { return measurements4Dref; }

◆ getPatternGroups()

template<class GoldenPatternType >
vector2D OMTFConfiguration::getPatternGroups ( const std::vector< std::unique_ptr< GoldenPatternType > > &  goldenPats) const
inline

Definition at line 209 of file OMTFConfiguration.h.

References watchdog::group, and findQualityFiles::size.

Referenced by PatternGenerator::groupPatterns(), PatternGenerator::upadatePdfs(), and XMLConfigWriter::writeGPs().

209  {
210  //unsigned int mergedCnt = 4;
211  vector2D mergedPatterns;
212  for (unsigned int iPat = 0; iPat < goldenPats.size(); iPat++) {
213  unsigned int group = goldenPats.at(iPat)->key().theGroup;
214 
215  if (mergedPatterns.size() == group) {
216  mergedPatterns.push_back(vector1D());
217  }
218 
219  if (group < mergedPatterns.size()) {
220  //theIndexInGroup starts from 1, as in xml
221  if (mergedPatterns[group].size() == (goldenPats.at(iPat)->key().theIndexInGroup - 1))
222  mergedPatterns[group].push_back(iPat);
223  else
224  return mergedPatterns; //TODO should throw error
225  } else
226  return mergedPatterns; //TODO should throw error
227  }
228  return mergedPatterns;
229  }
size
Write out results.
std::vector< vector1D > vector2D
std::vector< int > vector1D

◆ getPatternNum()

unsigned int OMTFConfiguration::getPatternNum ( double  pt,
int  charge 
) const

charge: -1 - negative, +1 - positive

Definition at line 374 of file OMTFConfiguration.cc.

References ALCARECOTkAlJpsiMuMu_cff::charge, OMTFConfiguration::PatternPt::charge, getPatternPtRange(), patternPts, DiDispStaMuonMonitor_cfi::pt, OMTFConfiguration::PatternPt::ptFrom, and OMTFConfiguration::PatternPt::ptTo.

Referenced by PatternOptimizerBase::observeEventEnd(), and PatternGenerator::updateStat().

374  {
375  //in LUT the charge is in convention 0 is -, 1 is + (so it is not the uGMT convention!!!)
376  //so we change the charge here
377  //if(charge == -1)
378  //charge = 0; //TODO but in the xml (and in GPs) the charge is +1 and -1, so it is important from where the patternPts is loaded FIXME!!!
379  for (unsigned int iPat = 0; iPat < patternPts.size(); iPat++) {
380  //std::cout<<"iPAt "<<iPat<<" ptFrom "<<getPatternPtRange(iPat).ptFrom<<" "<<getPatternPtRange(iPat).ptTo<<" "<<rawParams.chargeLUT()->data(iPat)<<std::endl;
381  PatternPt patternPt = getPatternPtRange(iPat);
382  if (pt >= patternPt.ptFrom && pt < patternPt.ptTo && charge == patternPt.charge)
383  return iPat;
384  }
385  return 0; //FIXME in this way if pt < 4GeV, the pattern = 0 is return , regardless of sign!
386 }
std::vector< PatternPt > patternPts
PatternPt getPatternPtRange(unsigned int patNum) const

◆ getPatternPtRange()

OMTFConfiguration::PatternPt OMTFConfiguration::getPatternPtRange ( unsigned int  patNum) const

Definition at line 364 of file OMTFConfiguration.cc.

References Exception, and patternPts.

Referenced by getPatternNum(), PatternGenerator::modifyClassProb(), PatternOptimizerBase::printPatterns(), and PatternOptimizerBase::savePatternsInRoot().

364  {
365  if (patternPts.empty())
366  throw cms::Exception("OMTFConfiguration::getPatternPtRange: patternPts vector not initialized");
367 
368  if (patNum > patternPts.size()) {
369  throw cms::Exception("OMTFConfiguration::getPatternPtRange: patNum > patternPts.size()");
370  }
371  return patternPts[patNum];
372 }
std::vector< PatternPt > patternPts

◆ getProcessorPhiVsRefLayer() [1/2]

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

Definition at line 114 of file OMTFConfiguration.h.

References processorPhiVsRefLayer.

Referenced by XMLConfigWriter::writeConnectionsData().

114 { return processorPhiVsRefLayer; }
std::vector< std::vector< int > > processorPhiVsRefLayer

◆ getProcessorPhiVsRefLayer() [2/2]

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

Definition at line 127 of file OMTFConfiguration.h.

References processorPhiVsRefLayer.

127 { return processorPhiVsRefLayer; }
std::vector< std::vector< int > > processorPhiVsRefLayer

◆ getProcIndx()

unsigned int OMTFConfiguration::getProcIndx ( unsigned int  iProcessor,
l1t::tftype  mtfType 
) const
inline

input phi should be in the hardware scale (nPhiBins units for 2pi), can be in range -nPhiBins ... nPhiBins,

Continuous processor number [0...12], to be used in as array index,

Definition at line 183 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nProcessors(), l1t::omtf_neg, and rawParams.

Referenced by EmulationObserverBase::observeProcesorEmulation(), and EventCapture::observeProcesorEmulation().

183  {
184  return ((mtfType - l1t::tftype::omtf_neg) * rawParams.nProcessors() + iProcessor);
185  };
L1TMuonOverlapParams rawParams

◆ getProcScalePhi() [1/2]

int OMTFConfiguration::getProcScalePhi ( unsigned int  iProcessor,
double  phiRad 
) const

iProcessor - 0...5 phiRad [-pi,pi] return phi inside the processor

Definition at line 329 of file OMTFConfiguration.cc.

References M_PI, and nPhiBins().

329  {
330  double phi15deg =
331  M_PI / 3. * (iProcessor) + M_PI / 12.; // "0" is 15degree moved cyclically to each processor, note [0,2pi]
332 
333  const double phiUnit = 2 * M_PI / nPhiBins(); //rad/unit
334 
335  // adjust [0,2pi] and [-pi,pi] to get deltaPhi difference properly
336  switch (iProcessor + 1) {
337  case 1:
338  break;
339  case 6: {
340  phi15deg -= 2 * M_PI;
341  break;
342  }
343  default: {
344  if (phiRad < 0)
345  phiRad += 2 * M_PI;
346  break;
347  }
348  }
349 
350  // local angle in CSC halfStrip usnits
351  return lround((phiRad - phi15deg) / phiUnit); //FIXME lround or floor ???
352 }
unsigned int nPhiBins() const
#define M_PI

◆ getProcScalePhi() [2/2]

int OMTFConfiguration::getProcScalePhi ( double  phiRad,
double  procPhiZeroRad = 0 
) const
inlineoverridevirtual

Implements ProcConfigurationBase.

Definition at line 166 of file OMTFConfiguration.h.

166  {
167  return 0; // TODO replace getProcScalePhi(unsigned int iProcessor, double phiRad) with this function
168  }

◆ getRawParams() [1/2]

const L1TMuonOverlapParams* OMTFConfiguration::getRawParams ( ) const
inline

Definition at line 84 of file OMTFConfiguration.h.

References rawParams.

Referenced by OMTFPatternMaker::endJob().

84 { return &rawParams; };
L1TMuonOverlapParams rawParams

◆ getRawParams() [2/2]

const L1TMuonOverlapParams* OMTFConfiguration::getRawParams ( ) const
inline

Definition at line 92 of file OMTFConfiguration.h.

References rawParams.

92 { return &rawParams; };
L1TMuonOverlapParams rawParams

◆ getRefHitsDefs() [1/2]

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

Definition at line 118 of file OMTFConfiguration.h.

References refHitsDefs.

Referenced by OMTFProcessor< GoldenPatternType >::fillCounts(), OMTFinput::getRefHits(), and OMTFProcessor< GoldenPatternType >::processInput().

118 { return refHitsDefs; }
std::vector< std::vector< RefHitDef > > refHitsDefs

◆ getRefHitsDefs() [2/2]

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

Definition at line 131 of file OMTFConfiguration.h.

References refHitsDefs.

131 { return refHitsDefs; }
std::vector< std::vector< RefHitDef > > refHitsDefs

◆ getRefToLogicNumber() [1/2]

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

◆ getRefToLogicNumber() [2/2]

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

Definition at line 118 of file OMTFConfiguration.h.

References refToLogicNumber.

118 { return refToLogicNumber; }
std::vector< int > refToLogicNumber

◆ getRegionNumberFromMap() [1/2]

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 188 of file OMTFConfiguration.cc.

References dqmdumpme::first, nLogicRegions(), regionPhisVsRefLayerVsInput, and edm::second().

Referenced by OMTFConfigMaker::fillPhiMaps(), and OMTFConfigMaker::makeConnetionsMap().

188  {
189  for (unsigned int iRegion = 0; iRegion < nLogicRegions(); ++iRegion) {
190  if (iPhi >= regionPhisVsRefLayerVsInput[iInput][iRefLayer][iRegion].first &&
191  iPhi <= regionPhisVsRefLayerVsInput[iInput][iRefLayer][iRegion].second)
192  return iRegion;
193  }
194 
195  return 99;
196 }
std::vector< std::vector< std::vector< std::pair< int, int > > > > regionPhisVsRefLayerVsInput
U second(std::pair< T, U > const &p)
unsigned int nLogicRegions() const

◆ getRegionNumberFromMap() [2/2]

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.

◆ getRegionPhisVsRefLayerVsInput() [1/2]

const std::vector<std::vector<std::vector<std::pair<int, int> > > >& OMTFConfiguration::getRegionPhisVsRefLayerVsInput ( ) const
inline

Definition at line 115 of file OMTFConfiguration.h.

References regionPhisVsRefLayerVsInput.

115  {
117  }
std::vector< std::vector< std::vector< std::pair< int, int > > > > regionPhisVsRefLayerVsInput

◆ getRegionPhisVsRefLayerVsInput() [2/2]

const std::vector<std::vector<std::vector<std::pair<int, int> > > >& OMTFConfiguration::getRegionPhisVsRefLayerVsInput ( ) const
inline

Definition at line 128 of file OMTFConfiguration.h.

References regionPhisVsRefLayerVsInput.

128  {
130  }
std::vector< std::vector< std::vector< std::pair< int, int > > > > regionPhisVsRefLayerVsInput

◆ getSorterType()

int OMTFConfiguration::getSorterType ( ) const
inline

Definition at line 248 of file OMTFConfiguration.h.

References sorterType.

248 { return sorterType; }

◆ globalPhiStart() [1/2]

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 199 of file OMTFConfiguration.cc.

References mps_fire::end, and processorPhiVsRefLayer.

Referenced by XMLConfigWriter::writeConnectionsData().

199  {
200  return *std::min_element(processorPhiVsRefLayer[iProcessor].begin(), processorPhiVsRefLayer[iProcessor].end());
201 }
std::vector< std::vector< int > > processorPhiVsRefLayer

◆ globalPhiStart() [2/2]

int OMTFConfiguration::globalPhiStart ( unsigned int  iProcessor) const

Return global phi for beggining of given processor Uses minim phi over all reference layers.

◆ hwEtaToEta()

virtual double OMTFConfiguration::hwEtaToEta ( int  hwEta) const
inlinevirtual

center of eta bin

Definition at line 150 of file OMTFConfiguration.h.

References etaUnit, and l1trig_cff::hwEta.

Referenced by DataROOTDumper2::observeEventEnd().

150 { return (hwEta * etaUnit); }

◆ hwPhiToGlobalPhi()

virtual double OMTFConfiguration::hwPhiToGlobalPhi ( int  phi) const
inlinevirtual

Definition at line 159 of file OMTFConfiguration.h.

References phi, and phiGmtUnit.

159 { return phi * phiGmtUnit; }

◆ hwPtToGev()

double OMTFConfiguration::hwPtToGev ( int  hwPt) const
inlineoverridevirtual

uGMT pt scale conversion

Implements ProcConfigurationBase.

Definition at line 143 of file OMTFConfiguration.h.

References l1trig_cff::hwPt, and ptUnit.

Referenced by EventCapture::observeEventEnd(), and DataROOTDumper2::observeEventEnd().

143 { return (hwPt - 1.) * ptUnit; }

◆ initCounterMatrices() [1/2]

void OMTFConfiguration::initCounterMatrices ( )

Vector of all inputs

Vector of all layers

Vector of all logic cones

Vector of all processors

Definition at line 31 of file OMTFConfiguration.cc.

References measurements4D, measurements4Dref, nInputs(), nLayers(), nLogicRegions(), and nProcessors().

Referenced by configure().

31  {
33  std::vector<int> aLayer1D(nInputs(), 0);
34 
36  vector2D aLayer2D;
37  aLayer2D.assign(nLayers(), aLayer1D);
38 
40  vector3D aLayer3D;
41  aLayer3D.assign(nLogicRegions(), aLayer2D);
42 
44  measurements4D.assign(nProcessors(), aLayer3D);
45  measurements4Dref.assign(nProcessors(), aLayer3D);
46 }
vector4D measurements4D
4D matrices used during creation of the connections tables.
std::vector< vector1D > vector2D
unsigned int nLayers() const
std::vector< vector2D > vector3D
unsigned int nInputs() const
unsigned int nProcessors() const
unsigned int nLogicRegions() const

◆ initCounterMatrices() [2/2]

void OMTFConfiguration::initCounterMatrices ( )

◆ isBendingLayer()

bool OMTFConfiguration::isBendingLayer ( unsigned int  iLayer) const
inlineoverridevirtual

◆ isInRegionRange() [1/2]

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 171 of file OMTFConfiguration.cc.

References HLT_2023v12_cff::coneSize, createfilelist::int, and nPhiBins().

171  {
172  if (iPhi < 0)
173  iPhi += nPhiBins();
174  if (iPhiStart < 0)
175  iPhiStart += nPhiBins();
176 
177  if (iPhiStart + (int)coneSize < (int)nPhiBins()) {
178  return iPhiStart <= iPhi && iPhiStart + (int)coneSize > iPhi;
179  } else if (iPhi > (int)nPhiBins() / 2) {
180  return iPhiStart <= iPhi;
181  } else if (iPhi < (int)nPhiBins() / 2) {
182  return iPhi < iPhiStart + (int)coneSize - (int)nPhiBins();
183  }
184  return false;
185 }
unsigned int nPhiBins() const

◆ isInRegionRange() [2/2]

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

◆ isNoHitValueInPdf()

bool OMTFConfiguration::isNoHitValueInPdf ( ) const
inline

Definition at line 244 of file OMTFConfiguration.h.

References noHitValueInPdf.

Referenced by GoldenPatternBase::process1Layer1RefLayer().

244 { return noHitValueInPdf; }

◆ minPdfVal() [1/2]

float OMTFConfiguration::minPdfVal ( ) const
inline

Definition at line 86 of file OMTFConfiguration.h.

Referenced by PatternGenerator::modifyClassProb(), GoldenPattern::normalise(), and PatternGenerator::upadatePdfs().

86 { return 0.001; };

◆ minPdfVal() [2/2]

float OMTFConfiguration::minPdfVal ( ) const
inline

Definition at line 94 of file OMTFConfiguration.h.

94 { return 0.001; };

◆ nGoldenPatterns() [1/2]

unsigned int OMTFConfiguration::nGoldenPatterns ( ) const
inline

◆ nGoldenPatterns() [2/2]

unsigned int OMTFConfiguration::nGoldenPatterns ( ) const
inline

Definition at line 112 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nGoldenPatterns(), and rawParams.

112 { return rawParams.nGoldenPatterns(); };
L1TMuonOverlapParams rawParams

◆ nHitsPerLayer() [1/2]

unsigned int OMTFConfiguration::nHitsPerLayer ( ) const
inline

Definition at line 88 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nHitsPerLayer(), and rawParams.

Referenced by operator<<().

88 { return rawParams.nHitsPerLayer(); };
L1TMuonOverlapParams rawParams

◆ nHitsPerLayer() [2/2]

unsigned int OMTFConfiguration::nHitsPerLayer ( ) const
inline

Definition at line 96 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nHitsPerLayer(), and rawParams.

96 { return rawParams.nHitsPerLayer(); };
L1TMuonOverlapParams rawParams

◆ nInputs() [1/2]

unsigned int OMTFConfiguration::nInputs ( ) const
inline

◆ nInputs() [2/2]

unsigned int OMTFConfiguration::nInputs ( ) const
inline

Definition at line 111 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nInputs(), and rawParams.

111 { return rawParams.nInputs(); };
L1TMuonOverlapParams rawParams

◆ nLayers() [1/2]

unsigned int OMTFConfiguration::nLayers ( ) const
inlinevirtual

◆ nLayers() [2/2]

unsigned int OMTFConfiguration::nLayers ( ) const
inlineoverridevirtual

Implements ProcConfigurationBase.

Definition at line 95 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nLayers(), and rawParams.

95 { return rawParams.nLayers(); };
L1TMuonOverlapParams rawParams

◆ nLogicRegions() [1/2]

unsigned int OMTFConfiguration::nLogicRegions ( ) const
inline

◆ nLogicRegions() [2/2]

unsigned int OMTFConfiguration::nLogicRegions ( ) const
inline

Definition at line 110 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nLogicRegions(), and rawParams.

110 { return rawParams.nLogicRegions(); };
L1TMuonOverlapParams rawParams

◆ nPdfAddrBits() [1/2]

unsigned int OMTFConfiguration::nPdfAddrBits ( ) const
inline

◆ nPdfAddrBits() [2/2]

unsigned int OMTFConfiguration::nPdfAddrBits ( ) const
inline

Definition at line 99 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nPdfAddrBits(), and rawParams.

99 { return rawParams.nPdfAddrBits(); };
int nPdfAddrBits() const
Access to specific general settings.
L1TMuonOverlapParams rawParams

◆ nPdfBins()

unsigned int OMTFConfiguration::nPdfBins ( ) const
inline

Definition at line 100 of file OMTFConfiguration.h.

References pdfBins.

Referenced by PatternGenerator::modifyClassProb(), and PatternOptimizerBase::savePatternsInRoot().

100 { return pdfBins; };

◆ nPdfValBits() [1/2]

unsigned int OMTFConfiguration::nPdfValBits ( ) const
inline

Definition at line 92 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nPdfValBits(), and rawParams.

Referenced by GoldenPattern::normalise(), and operator<<().

92 { return rawParams.nPdfValBits(); };
L1TMuonOverlapParams rawParams

◆ nPdfValBits() [2/2]

unsigned int OMTFConfiguration::nPdfValBits ( ) const
inline

Definition at line 101 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nPdfValBits(), and rawParams.

101 { return rawParams.nPdfValBits(); };
L1TMuonOverlapParams rawParams

◆ nPhiBins() [1/2]

unsigned int OMTFConfiguration::nPhiBins ( ) const
inlinevirtual

◆ nPhiBins() [2/2]

unsigned int OMTFConfiguration::nPhiBins ( ) const
inlineoverridevirtual

Implements ProcConfigurationBase.

Definition at line 103 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nPhiBins(), and rawParams.

103 { return rawParams.nPhiBins(); };
L1TMuonOverlapParams rawParams

◆ nPhiBits() [1/2]

unsigned int OMTFConfiguration::nPhiBits ( ) const
inline

Definition at line 90 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nPhiBits(), and rawParams.

Referenced by OMTFinput::shiftMyPhi(), and XMLConfigWriter::writeConnectionsData().

90 { return rawParams.nPhiBits(); };
L1TMuonOverlapParams rawParams

◆ nPhiBits() [2/2]

unsigned int OMTFConfiguration::nPhiBits ( ) const
inline

Definition at line 98 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nPhiBits(), and rawParams.

98 { return rawParams.nPhiBits(); };
L1TMuonOverlapParams rawParams

◆ nProcessors() [1/2]

unsigned int OMTFConfiguration::nProcessors ( ) const
inline

◆ nProcessors() [2/2]

unsigned int OMTFConfiguration::nProcessors ( ) const
inline

Definition at line 107 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nProcessors(), and rawParams.

107 { return rawParams.nProcessors(); };
L1TMuonOverlapParams rawParams

◆ nRefHits() [1/2]

unsigned int OMTFConfiguration::nRefHits ( ) const
inline

◆ nRefHits() [2/2]

unsigned int OMTFConfiguration::nRefHits ( ) const
inline

Definition at line 104 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nRefHits(), and rawParams.

104 { return rawParams.nRefHits(); };
L1TMuonOverlapParams rawParams

◆ nRefLayers() [1/2]

unsigned int OMTFConfiguration::nRefLayers ( ) const
inline

◆ nRefLayers() [2/2]

unsigned int OMTFConfiguration::nRefLayers ( ) const
inline

Definition at line 97 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nRefLayers(), and rawParams.

97 { return rawParams.nRefLayers(); };
L1TMuonOverlapParams rawParams

◆ nTestRefHits() [1/2]

unsigned int OMTFConfiguration::nTestRefHits ( ) const
inline

◆ nTestRefHits() [2/2]

unsigned int OMTFConfiguration::nTestRefHits ( ) const
inline

Definition at line 105 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nTestRefHits(), and rawParams.

105 { return rawParams.nTestRefHits(); };
L1TMuonOverlapParams rawParams

◆ patternsVersion() [1/2]

unsigned int OMTFConfiguration::patternsVersion ( ) const
inline

Definition at line 82 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::fwVersion(), and rawParams.

Referenced by XMLConfigWriter::initialiseXMLDocument().

82 { return rawParams.fwVersion() & 0xFFFF; };
unsigned fwVersion() const
L1TMuonOverlapParams rawParams

◆ patternsVersion() [2/2]

unsigned int OMTFConfiguration::patternsVersion ( ) const
inline

Definition at line 90 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::fwVersion(), and rawParams.

90 { return rawParams.fwVersion() & 0xFFFF; };
unsigned fwVersion() const
L1TMuonOverlapParams rawParams

◆ pdfMaxValue()

int OMTFConfiguration::pdfMaxValue ( ) const
inline

◆ phiToGlobalHwPhi()

virtual int OMTFConfiguration::phiToGlobalHwPhi ( double  phi) const
inlinevirtual

Definition at line 156 of file OMTFConfiguration.h.

References phi, and phiGmtUnit.

156 { return std::floor(phi / phiGmtUnit); }

◆ printConfig()

void OMTFConfiguration::printConfig ( ) const

Definition at line 388 of file OMTFConfiguration.cc.

References ProcConfigurationBase::cscLctCentralBx(), ProcConfigurationBase::getMinDtPhiBQuality(), ProcConfigurationBase::getMinDtPhiQuality(), ProcConfigurationBase::getRpcDropAllClustersIfMoreThanMax(), ProcConfigurationBase::getRpcMaxClusterCnt(), ProcConfigurationBase::getRpcMaxClusterSize(), ghostBusterType, goldenPatternResultFinalizeFunction, noHitValueInPdf, and sorterType.

388  {
389  edm::LogVerbatim("OMTFReconstruction") << "OMTFConfiguration: " << std::endl;
390 
391  edm::LogVerbatim("OMTFReconstruction") << "rpcMaxClusterSize " << getRpcMaxClusterSize() << std::endl;
392  edm::LogVerbatim("OMTFReconstruction") << "rpcMaxClusterCnt " << getRpcMaxClusterCnt() << std::endl;
393  edm::LogVerbatim("OMTFReconstruction") << "rpcDropAllClustersIfMoreThanMax " << getRpcDropAllClustersIfMoreThanMax()
394  << std::endl;
395  edm::LogVerbatim("OMTFReconstruction") << "minDtPhiQuality " << getMinDtPhiQuality() << std::endl;
396  edm::LogVerbatim("OMTFReconstruction") << "minDtPhiBQuality " << getMinDtPhiBQuality() << std::endl;
397 
398  edm::LogVerbatim("OMTFReconstruction") << "cscLctCentralBx_ " << cscLctCentralBx() << std::endl;
399 
400  edm::LogVerbatim("OMTFReconstruction") << "goldenPatternResultFinalizeFunction "
401  << goldenPatternResultFinalizeFunction << std::endl;
402  edm::LogVerbatim("OMTFReconstruction") << "noHitValueInPdf " << noHitValueInPdf << std::endl;
403  edm::LogVerbatim("OMTFReconstruction") << "sorterType " << sorterType << std::endl;
404  edm::LogVerbatim("OMTFReconstruction") << "ghostBusterType " << ghostBusterType << std::endl;
405 }
Log< level::Info, true > LogVerbatim
virtual int getMinDtPhiBQuality() const
virtual unsigned int getRpcMaxClusterSize() const
virtual unsigned int getRpcMaxClusterCnt() const
std::string ghostBusterType
virtual int cscLctCentralBx() const
virtual int getMinDtPhiQuality() const
virtual bool getRpcDropAllClustersIfMoreThanMax() const

◆ processorCnt()

unsigned int OMTFConfiguration::processorCnt ( ) const
inline

Definition at line 109 of file OMTFConfiguration.h.

References L1TMuonOverlapParams::nProcessors(), and rawParams.

Referenced by GoldenPatternBase::setConfig().

109 { return 2 * rawParams.nProcessors(); };
L1TMuonOverlapParams rawParams

◆ procHwPhiToGlobalPhi()

double OMTFConfiguration::procHwPhiToGlobalPhi ( int  procHwPhi,
int  procHwPhi0 
) const

Definition at line 356 of file OMTFConfiguration.cc.

References ProcConfigurationBase::foldPhi(), M_PI, and nPhiBins().

Referenced by StubsSimHitsMatcher::match(), and EventCapture::observeEventEnd().

356  {
357  int globalHwPhi = foldPhi(procHwPhi + procHwPhi0);
358  const double phiUnit = 2 * M_PI / nPhiBins(); //rad/unit
359  return globalHwPhi * phiUnit;
360 }
unsigned int nPhiBins() const
#define M_PI
virtual int foldPhi(int phi) const

◆ procPhiToGmtPhi()

int OMTFConfiguration::procPhiToGmtPhi ( int  procPhi) const
inline

conversion factor from OMTF to uGMT scale is 5400/576 i.e. phiValue/=9.375;

Definition at line 172 of file OMTFConfiguration.h.

Referenced by GhostBuster::select(), and GhostBusterPreferRefDt::select().

172  {
174  return floor(procPhi * 437. / (1 << 12)); // ie. use as in hw: 9.3729977
175  //cannot be (procPhi * 437) >> 12, because this floor is needed
176  }

◆ ptGevToHw()

int OMTFConfiguration::ptGevToHw ( double  ptGev) const
inlineoverridevirtual

uGMT pt scale conversion: [0GeV, 0.5GeV) = 1 [0.5GeV, 1 Gev) = 2

Implements ProcConfigurationBase.

Definition at line 146 of file OMTFConfiguration.h.

References ptUnit.

Referenced by PatternGenerator::reCalibratePt().

146 { return (ptGev / ptUnit + 1); }

◆ setGhostBusterType()

void OMTFConfiguration::setGhostBusterType ( const std::string &  ghostBusterType = "")
inline

Definition at line 254 of file OMTFConfiguration.h.

References ghostBusterType.

Referenced by configureFromEdmParameterSet().

254 { this->ghostBusterType = ghostBusterType; }
std::string ghostBusterType

◆ setGoldenPatternResultFinalizeFunction()

void OMTFConfiguration::setGoldenPatternResultFinalizeFunction ( int  goldenPatternResultFinalizeFunction = 0)
inline

◆ setNoHitValueInPdf()

void OMTFConfiguration::setNoHitValueInPdf ( bool  noHitValueInPdf = false)
inline

Definition at line 246 of file OMTFConfiguration.h.

References noHitValueInPdf.

Referenced by configureFromEdmParameterSet().

◆ setPatternPtRange()

void OMTFConfiguration::setPatternPtRange ( const std::vector< PatternPt > &  patternPts)
inline

◆ setSorterType()

void OMTFConfiguration::setSorterType ( int  sorterType = 0)
inline

Definition at line 250 of file OMTFConfiguration.h.

References sorterType.

Friends And Related Function Documentation

◆ operator<< [1/2]

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

Definition at line 154 of file OMTFConfiguration.cc.

154  {
155  out << "nLayers(): " << aConfig.nLayers() << " nHitsPerLayer(): " << aConfig.nHitsPerLayer()
156  << " nRefLayers(): " << aConfig.nRefLayers() << " nPdfAddrBits: " << aConfig.nPdfAddrBits()
157  << " nPdfValBits: " << aConfig.nPdfValBits() << std::endl;
158 
159  for (unsigned int iProcessor = 0; iProcessor < aConfig.nProcessors(); ++iProcessor) {
160  out << "Processor: " << iProcessor;
161  for (unsigned int iRefLayer = 0; iRefLayer < aConfig.nRefLayers(); ++iRefLayer) {
162  out << " " << aConfig.processorPhiVsRefLayer[iProcessor][iRefLayer];
163  }
164  out << std::endl;
165  }
166 
167  return out;
168 }
unsigned int nPdfValBits() const
unsigned int nHitsPerLayer() const
unsigned int nPdfAddrBits() const
std::vector< std::vector< int > > processorPhiVsRefLayer
unsigned int nLayers() const
unsigned int nRefLayers() const
unsigned int nProcessors() const

◆ operator<< [2/2]

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

Definition at line 154 of file OMTFConfiguration.cc.

154  {
155  out << "nLayers(): " << aConfig.nLayers() << " nHitsPerLayer(): " << aConfig.nHitsPerLayer()
156  << " nRefLayers(): " << aConfig.nRefLayers() << " nPdfAddrBits: " << aConfig.nPdfAddrBits()
157  << " nPdfValBits: " << aConfig.nPdfValBits() << std::endl;
158 
159  for (unsigned int iProcessor = 0; iProcessor < aConfig.nProcessors(); ++iProcessor) {
160  out << "Processor: " << iProcessor;
161  for (unsigned int iRefLayer = 0; iRefLayer < aConfig.nRefLayers(); ++iRefLayer) {
162  out << " " << aConfig.processorPhiVsRefLayer[iProcessor][iRefLayer];
163  }
164  out << std::endl;
165  }
166 
167  return out;
168 }
unsigned int nPdfValBits() const
unsigned int nHitsPerLayer() const
unsigned int nPdfAddrBits() const
std::vector< std::vector< int > > processorPhiVsRefLayer
unsigned int nLayers() const
unsigned int nRefLayers() const
unsigned int nProcessors() const

Member Data Documentation

◆ barrelMax

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

Definition at line 143 of file OMTFConfiguration.h.

Referenced by configure(), and getBarrelMax().

◆ barrelMin

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

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

Definition at line 142 of file OMTFConfiguration.h.

Referenced by configure(), and getBarrelMin().

◆ bendingLayers

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

Definition at line 136 of file OMTFConfiguration.h.

Referenced by configure(), and getBendingLayers().

◆ connections

vector3D_pair OMTFConfiguration::connections
private

Map of connections.

Definition at line 171 of file OMTFConfiguration.h.

Referenced by configure(), and getConnections().

◆ endcap10DegMax

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

Definition at line 145 of file OMTFConfiguration.h.

Referenced by configure(), and getEndcap10DegMax().

◆ endcap10DegMin

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

Definition at line 144 of file OMTFConfiguration.h.

Referenced by configure(), and getEndcap10DegMin().

◆ endcap20DegMax

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

Definition at line 147 of file OMTFConfiguration.h.

Referenced by configure(), and getEndcap20DegMax().

◆ endcap20DegMin

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

Definition at line 146 of file OMTFConfiguration.h.

Referenced by configure(), and getEndcap20DegMin().

◆ etaUnit

double OMTFConfiguration::etaUnit = 0.010875

Definition at line 148 of file OMTFConfiguration.h.

Referenced by etaToHwEta(), and hwEtaToEta().

◆ ghostBusterType

std::string OMTFConfiguration::ghostBusterType = ""
private

Definition at line 316 of file OMTFConfiguration.h.

Referenced by getGhostBusterType(), printConfig(), and setGhostBusterType().

◆ goldenPatternResultFinalizeFunction

int OMTFConfiguration::goldenPatternResultFinalizeFunction = 0
private

◆ hwToLogicLayer

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

Definition at line 133 of file OMTFConfiguration.h.

Referenced by configure(), and getHwToLogicLayer().

◆ logicToHwLayer

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

Definition at line 134 of file OMTFConfiguration.h.

Referenced by configure(), and getLogicToHwLayer().

◆ logicToLogic

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

Definition at line 135 of file OMTFConfiguration.h.

Referenced by configure(), and getLogicToLogic().

◆ measurements4D

vector4D OMTFConfiguration::measurements4D
private

4D matrices used during creation of the connections tables.

Definition at line 174 of file OMTFConfiguration.h.

Referenced by getMeasurements4D(), and initCounterMatrices().

◆ measurements4Dref

vector4D OMTFConfiguration::measurements4Dref
private

Definition at line 175 of file OMTFConfiguration.h.

Referenced by getMeasurements4Dref(), and initCounterMatrices().

◆ noHitValueInPdf

bool OMTFConfiguration::noHitValueInPdf = false
private

Definition at line 312 of file OMTFConfiguration.h.

Referenced by isNoHitValueInPdf(), printConfig(), and setNoHitValueInPdf().

◆ patternPts

std::vector<PatternPt> OMTFConfiguration::patternPts
private

Definition at line 305 of file OMTFConfiguration.h.

Referenced by getPatternNum(), getPatternPtRange(), and setPatternPtRange().

◆ patternsInGroup

const unsigned int OMTFConfiguration::patternsInGroup = 4
static

Definition at line 205 of file OMTFConfiguration.h.

◆ pdfBins

unsigned int OMTFConfiguration::pdfBins = 0
private

Definition at line 308 of file OMTFConfiguration.h.

Referenced by nPdfBins().

◆ pdfMaxVal

int OMTFConfiguration::pdfMaxVal = 0
private

Definition at line 307 of file OMTFConfiguration.h.

Referenced by pdfMaxValue().

◆ phiGmtUnit

double OMTFConfiguration::phiGmtUnit = 2. * M_PI / 576

Definition at line 154 of file OMTFConfiguration.h.

Referenced by hwPhiToGlobalPhi(), and phiToGlobalHwPhi().

◆ processorPhiVsRefLayer

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 153 of file OMTFConfiguration.h.

Referenced by configure(), getProcessorPhiVsRefLayer(), globalPhiStart(), and operator<<().

◆ ptUnit

double OMTFConfiguration::ptUnit = 0.5

Definition at line 141 of file OMTFConfiguration.h.

Referenced by hwPtToGev(), and ptGevToHw().

◆ rawParams

L1TMuonOverlapParams OMTFConfiguration::rawParams
private

◆ refHitsDefs

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 168 of file OMTFConfiguration.h.

Referenced by configure(), and getRefHitsDefs().

◆ refToLogicNumber

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

Definition at line 137 of file OMTFConfiguration.h.

Referenced by configure(), and getRefToLogicNumber().

◆ regionPhisVsRefLayerVsInput

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 161 of file OMTFConfiguration.h.

Referenced by configure(), getRegionNumberFromMap(), and getRegionPhisVsRefLayerVsInput().

◆ sorterType

int OMTFConfiguration::sorterType = 0
private