CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ProcConfigurationBase Class Referenceabstract

#include <ProcConfigurationBase.h>

Inheritance diagram for ProcConfigurationBase:
OMTFConfiguration

Public Member Functions

virtual void configureFromEdmParameterSet (const edm::ParameterSet &edmParameterSet)
 
virtual int cscLctCentralBx () const
 
virtual unsigned int etaHwToEtaBin (int etaHw) const
 
virtual int etaToHwEta (double eta) const =0
 
virtual int foldPhi (int phi) const
 
virtual unsigned int getBxToProcess () const
 
virtual bool getFixCscGeometryOffset () const
 
virtual int getMinDtPhiBQuality () const
 
virtual int getMinDtPhiQuality () const
 
virtual int getProcScalePhi (double phiRad, double procPhiZeroRad=0) const =0
 
virtual bool getRpcDropAllClustersIfMoreThanMax () const
 
virtual unsigned int getRpcMaxClusterCnt () const
 
virtual unsigned int getRpcMaxClusterSize () const
 
virtual double hwPtToGev (int hwPt) const =0
 
virtual bool isBendingLayer (unsigned int iLayer) const =0
 
virtual unsigned int nLayers () const =0
 
virtual unsigned int nPhiBins () const =0
 
 ProcConfigurationBase ()
 
virtual int ptGevToHw (double ptGev) const =0
 uGMT pt scale conversion: [0GeV, 0.5GeV) = 1 [0.5GeV, 1 Gev) = 2 More...
 
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 ()
 

Private Attributes

int cscLctCentralBx_ = 8
 
bool fixCscGeometryOffset = false
 
int minDtPhiBQuality = 2
 
int minDtPhiQuality = 2
 
bool rpcDropAllClustersIfMoreThanMax = false
 
unsigned int rpcMaxClusterCnt = 2
 
unsigned int rpcMaxClusterSize = 3
 

Detailed Description

Definition at line 12 of file ProcConfigurationBase.h.

Constructor & Destructor Documentation

◆ ProcConfigurationBase()

ProcConfigurationBase::ProcConfigurationBase ( )

◆ ~ProcConfigurationBase()

ProcConfigurationBase::~ProcConfigurationBase ( )
virtual

Definition at line 15 of file ProcConfigurationBase.cc.

15 {}

Member Function Documentation

◆ configureFromEdmParameterSet()

void ProcConfigurationBase::configureFromEdmParameterSet ( const edm::ParameterSet edmParameterSet)
virtual

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

Reimplemented in OMTFConfiguration.

Definition at line 27 of file ProcConfigurationBase.cc.

References cscLctCentralBx_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), minDtPhiBQuality, minDtPhiQuality, setRpcDropAllClustersIfMoreThanMax(), setRpcMaxClusterCnt(), and setRpcMaxClusterSize().

Referenced by OMTFConfiguration::configureFromEdmParameterSet().

27  {
28  if (edmParameterSet.exists("rpcMaxClusterSize")) {
29  setRpcMaxClusterSize(edmParameterSet.getParameter<int>("rpcMaxClusterSize"));
30  edm::LogVerbatim("OMTFReconstruction")
31  << "rpcMaxClusterSize: " << edmParameterSet.getParameter<int>("rpcMaxClusterSize") << std::endl;
32  }
33 
34  if (edmParameterSet.exists("rpcMaxClusterCnt")) {
35  setRpcMaxClusterCnt(edmParameterSet.getParameter<int>("rpcMaxClusterCnt"));
36  edm::LogVerbatim("OMTFReconstruction")
37  << "rpcMaxClusterCnt: " << edmParameterSet.getParameter<int>("rpcMaxClusterCnt") << std::endl;
38  }
39 
40  if (edmParameterSet.exists("rpcDropAllClustersIfMoreThanMax")) {
41  setRpcDropAllClustersIfMoreThanMax(edmParameterSet.getParameter<bool>("rpcDropAllClustersIfMoreThanMax"));
42  edm::LogVerbatim("OMTFReconstruction")
43  << "rpcDropAllClustersIfMoreThanMax: " << edmParameterSet.getParameter<bool>("rpcDropAllClustersIfMoreThanMax")
44  << std::endl;
45  }
46 
47  if (edmParameterSet.exists("lctCentralBx")) {
48  cscLctCentralBx_ = edmParameterSet.getParameter<int>("lctCentralBx");
49  edm::LogVerbatim("OMTFReconstruction")
50  << "lctCentralBx: " << edmParameterSet.getParameter<int>("lctCentralBx") << std::endl;
51  }
52 
53  if (edmParameterSet.exists("minDtPhiQuality")) {
54  minDtPhiQuality = edmParameterSet.getParameter<int>("minDtPhiQuality");
55  edm::LogVerbatim("OMTFReconstruction")
56  << "minDtPhiQuality: " << edmParameterSet.getParameter<int>("minDtPhiQuality") << std::endl;
57  }
58 
59  if (edmParameterSet.exists("minDtPhiBQuality")) {
60  minDtPhiBQuality = edmParameterSet.getParameter<int>("minDtPhiBQuality");
61  edm::LogVerbatim("OMTFReconstruction")
62  << "minDtPhiBQuality: " << edmParameterSet.getParameter<int>("minDtPhiBQuality") << std::endl;
63  }
64 }
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
virtual void setRpcMaxClusterSize(unsigned int rpcMaxClusterSize=4)
bool exists(std::string const &parameterName) const
checks if a parameter exists
virtual void setRpcMaxClusterCnt(unsigned int rpcMaxClusterCnt=2)
virtual void setRpcDropAllClustersIfMoreThanMax(bool rpcDropAllClustersIfMoreThanMax=true)

◆ cscLctCentralBx()

virtual int ProcConfigurationBase::cscLctCentralBx ( ) const
inlinevirtual

Definition at line 50 of file ProcConfigurationBase.h.

References cscLctCentralBx_.

Referenced by OMTFConfiguration::printConfig().

◆ etaHwToEtaBin()

virtual unsigned int ProcConfigurationBase::etaHwToEtaBin ( int  etaHw) const
inlinevirtual

Definition at line 40 of file ProcConfigurationBase.h.

40 { return 0; }

◆ etaToHwEta()

virtual int ProcConfigurationBase::etaToHwEta ( double  eta) const
pure virtual

Implemented in OMTFConfiguration.

◆ foldPhi()

int ProcConfigurationBase::foldPhi ( int  phi) const
virtual

Definition at line 17 of file ProcConfigurationBase.cc.

References nPhiBins(), phi, and l1tTrackJets_cfi::phiBins.

Referenced by GoldenPatternBase::process1Layer1RefLayer(), and OMTFConfiguration::procHwPhiToGlobalPhi().

17  {
18  int phiBins = nPhiBins();
19  if (phi > phiBins / 2)
20  return (phi - phiBins);
21  else if (phi < -phiBins / 2)
22  return (phi + phiBins);
23 
24  return phi;
25 }
virtual unsigned int nPhiBins() const =0

◆ getBxToProcess()

virtual unsigned int ProcConfigurationBase::getBxToProcess ( ) const
inlinevirtual

Definition at line 48 of file ProcConfigurationBase.h.

48 { return 1; }

◆ getFixCscGeometryOffset()

virtual bool ProcConfigurationBase::getFixCscGeometryOffset ( ) const
inlinevirtual

Definition at line 76 of file ProcConfigurationBase.h.

References fixCscGeometryOffset.

◆ getMinDtPhiBQuality()

virtual int ProcConfigurationBase::getMinDtPhiBQuality ( ) const
inlinevirtual

Definition at line 72 of file ProcConfigurationBase.h.

References minDtPhiBQuality.

Referenced by OMTFConfiguration::printConfig().

◆ getMinDtPhiQuality()

virtual int ProcConfigurationBase::getMinDtPhiQuality ( ) const
inlinevirtual

Definition at line 68 of file ProcConfigurationBase.h.

References minDtPhiQuality.

Referenced by OMTFConfiguration::printConfig().

◆ getProcScalePhi()

virtual int ProcConfigurationBase::getProcScalePhi ( double  phiRad,
double  procPhiZeroRad = 0 
) const
pure virtual

Implemented in OMTFConfiguration.

◆ getRpcDropAllClustersIfMoreThanMax()

virtual bool ProcConfigurationBase::getRpcDropAllClustersIfMoreThanMax ( ) const
inlinevirtual

◆ getRpcMaxClusterCnt()

virtual unsigned int ProcConfigurationBase::getRpcMaxClusterCnt ( ) const
inlinevirtual

Definition at line 60 of file ProcConfigurationBase.h.

References rpcMaxClusterCnt.

Referenced by OMTFConfiguration::printConfig().

60 { return rpcMaxClusterCnt; }

◆ getRpcMaxClusterSize()

virtual unsigned int ProcConfigurationBase::getRpcMaxClusterSize ( ) const
inlinevirtual

Definition at line 64 of file ProcConfigurationBase.h.

References rpcMaxClusterSize.

Referenced by OMTFConfiguration::printConfig().

64 { return rpcMaxClusterSize; }

◆ hwPtToGev()

virtual double ProcConfigurationBase::hwPtToGev ( int  hwPt) const
pure virtual

Implemented in OMTFConfiguration.

◆ isBendingLayer()

virtual bool ProcConfigurationBase::isBendingLayer ( unsigned int  iLayer) const
pure virtual

Implemented in OMTFConfiguration.

◆ nLayers()

virtual unsigned int ProcConfigurationBase::nLayers ( ) const
pure virtual

Implemented in OMTFConfiguration, and OMTFConfiguration.

◆ nPhiBins()

virtual unsigned int ProcConfigurationBase::nPhiBins ( ) const
pure virtual

Implemented in OMTFConfiguration, and OMTFConfiguration.

Referenced by foldPhi().

◆ ptGevToHw()

virtual int ProcConfigurationBase::ptGevToHw ( double  ptGev) const
pure virtual

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

Implemented in OMTFConfiguration.

◆ ptGeVToPtBin()

virtual unsigned int ProcConfigurationBase::ptGeVToPtBin ( float  ptGeV) const
inlinevirtual

Definition at line 37 of file ProcConfigurationBase.h.

37 { return 0; }

◆ ptHwToPtBin()

virtual unsigned int ProcConfigurationBase::ptHwToPtBin ( int  ptHw) const
inlinevirtual

Definition at line 35 of file ProcConfigurationBase.h.

35 { return 0; }

◆ setCscLctCentralBx()

virtual void ProcConfigurationBase::setCscLctCentralBx ( int  lctCentralBx)
inlinevirtual

Definition at line 52 of file ProcConfigurationBase.h.

References cscLctCentralBx_.

52 { this->cscLctCentralBx_ = lctCentralBx; }

◆ setFixCscGeometryOffset()

virtual bool ProcConfigurationBase::setFixCscGeometryOffset ( bool  fixCscGeometryOffset)
inlinevirtual

◆ setMinDtPhiBQuality()

virtual void ProcConfigurationBase::setMinDtPhiBQuality ( int  minDtPhiBQuality = 2)
inlinevirtual

Definition at line 74 of file ProcConfigurationBase.h.

References minDtPhiBQuality.

◆ setMinDtPhiQuality()

virtual void ProcConfigurationBase::setMinDtPhiQuality ( int  minDtPhiQuality = 2)
inlinevirtual

Definition at line 70 of file ProcConfigurationBase.h.

References minDtPhiQuality.

◆ setRpcDropAllClustersIfMoreThanMax()

virtual void ProcConfigurationBase::setRpcDropAllClustersIfMoreThanMax ( bool  rpcDropAllClustersIfMoreThanMax = true)
inlinevirtual

◆ setRpcMaxClusterCnt()

virtual void ProcConfigurationBase::setRpcMaxClusterCnt ( unsigned int  rpcMaxClusterCnt = 2)
inlinevirtual

Definition at line 62 of file ProcConfigurationBase.h.

References rpcMaxClusterCnt.

Referenced by configureFromEdmParameterSet().

◆ setRpcMaxClusterSize()

virtual void ProcConfigurationBase::setRpcMaxClusterSize ( unsigned int  rpcMaxClusterSize = 4)
inlinevirtual

Definition at line 66 of file ProcConfigurationBase.h.

References rpcMaxClusterSize.

Referenced by configureFromEdmParameterSet().

Member Data Documentation

◆ cscLctCentralBx_

int ProcConfigurationBase::cscLctCentralBx_ = 8
private

◆ fixCscGeometryOffset

bool ProcConfigurationBase::fixCscGeometryOffset = false
private

Definition at line 96 of file ProcConfigurationBase.h.

Referenced by getFixCscGeometryOffset(), and setFixCscGeometryOffset().

◆ minDtPhiBQuality

int ProcConfigurationBase::minDtPhiBQuality = 2
private

◆ minDtPhiQuality

int ProcConfigurationBase::minDtPhiQuality = 2
private

◆ rpcDropAllClustersIfMoreThanMax

bool ProcConfigurationBase::rpcDropAllClustersIfMoreThanMax = false
private

◆ rpcMaxClusterCnt

unsigned int ProcConfigurationBase::rpcMaxClusterCnt = 2
private

Definition at line 87 of file ProcConfigurationBase.h.

Referenced by getRpcMaxClusterCnt(), and setRpcMaxClusterCnt().

◆ rpcMaxClusterSize

unsigned int ProcConfigurationBase::rpcMaxClusterSize = 3
private

Definition at line 86 of file ProcConfigurationBase.h.

Referenced by getRpcMaxClusterSize(), and setRpcMaxClusterSize().