CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ( )
virtual

Definition at line 15 of file ProcConfigurationBase.cc.

15 {}

Member Function Documentation

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
virtual void setRpcMaxClusterSize(unsigned int rpcMaxClusterSize=4)
bool exists(std::string const &parameterName) const
checks if a parameter exists
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
virtual void setRpcMaxClusterCnt(unsigned int rpcMaxClusterCnt=2)
virtual void setRpcDropAllClustersIfMoreThanMax(bool rpcDropAllClustersIfMoreThanMax=true)
virtual int ProcConfigurationBase::cscLctCentralBx ( ) const
inlinevirtual
virtual unsigned int ProcConfigurationBase::etaHwToEtaBin ( int  etaHw) const
inlinevirtual

Definition at line 40 of file ProcConfigurationBase.h.

40 { return 0; }
virtual int ProcConfigurationBase::etaToHwEta ( double  eta) const
pure virtual
int ProcConfigurationBase::foldPhi ( int  phi) const
virtual

Definition at line 17 of file ProcConfigurationBase.cc.

References nPhiBins(), and phi.

Referenced by AngleConverterBase::getProcessorPhi(), OMTFinputMaker::getProcessorPhiZero(), 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
virtual unsigned int ProcConfigurationBase::getBxToProcess ( ) const
inlinevirtual

Definition at line 48 of file ProcConfigurationBase.h.

48 { return 1; }
virtual bool ProcConfigurationBase::getFixCscGeometryOffset ( ) const
inlinevirtual

Definition at line 76 of file ProcConfigurationBase.h.

References fixCscGeometryOffset.

Referenced by AngleConverterBase::getProcessorPhi().

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

Implemented in OMTFConfiguration.

virtual bool ProcConfigurationBase::getRpcDropAllClustersIfMoreThanMax ( ) const
inlinevirtual
virtual unsigned int ProcConfigurationBase::getRpcMaxClusterCnt ( ) const
inlinevirtual

Definition at line 60 of file ProcConfigurationBase.h.

References rpcMaxClusterCnt.

Referenced by MuonStubMakerBase::initialize(), and OMTFConfiguration::printConfig().

60 { return rpcMaxClusterCnt; }
virtual unsigned int ProcConfigurationBase::getRpcMaxClusterSize ( ) const
inlinevirtual

Definition at line 64 of file ProcConfigurationBase.h.

References rpcMaxClusterSize.

Referenced by MuonStubMakerBase::initialize(), and OMTFConfiguration::printConfig().

64 { return rpcMaxClusterSize; }
virtual double ProcConfigurationBase::hwPtToGev ( int  hwPt) const
pure virtual

Implemented in OMTFConfiguration.

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

Implemented in OMTFConfiguration.

Referenced by MuonStubsInput::getPhiHw().

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

Implemented in OMTFConfiguration, and OMTFConfiguration.

virtual unsigned int ProcConfigurationBase::nPhiBins ( ) const
pure virtual
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.

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

Definition at line 37 of file ProcConfigurationBase.h.

37 { return 0; }
virtual unsigned int ProcConfigurationBase::ptHwToPtBin ( int  ptHw) const
inlinevirtual

Definition at line 35 of file ProcConfigurationBase.h.

35 { return 0; }
virtual void ProcConfigurationBase::setCscLctCentralBx ( int  lctCentralBx)
inlinevirtual

Definition at line 52 of file ProcConfigurationBase.h.

References cscLctCentralBx_.

52 { this->cscLctCentralBx_ = lctCentralBx; }
virtual bool ProcConfigurationBase::setFixCscGeometryOffset ( bool  fixCscGeometryOffset)
inlinevirtual
virtual void ProcConfigurationBase::setMinDtPhiBQuality ( int  minDtPhiBQuality = 2)
inlinevirtual

Definition at line 74 of file ProcConfigurationBase.h.

References minDtPhiBQuality.

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

Definition at line 70 of file ProcConfigurationBase.h.

References minDtPhiQuality.

virtual void ProcConfigurationBase::setRpcDropAllClustersIfMoreThanMax ( bool  rpcDropAllClustersIfMoreThanMax = true)
inlinevirtual
virtual void ProcConfigurationBase::setRpcMaxClusterCnt ( unsigned int  rpcMaxClusterCnt = 2)
inlinevirtual

Definition at line 62 of file ProcConfigurationBase.h.

References rpcMaxClusterCnt.

Referenced by configureFromEdmParameterSet().

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

int ProcConfigurationBase::cscLctCentralBx_ = 8
private
bool ProcConfigurationBase::fixCscGeometryOffset = false
private

Definition at line 96 of file ProcConfigurationBase.h.

Referenced by getFixCscGeometryOffset(), and setFixCscGeometryOffset().

int ProcConfigurationBase::minDtPhiBQuality = 2
private
int ProcConfigurationBase::minDtPhiQuality = 2
private
bool ProcConfigurationBase::rpcDropAllClustersIfMoreThanMax = false
private
unsigned int ProcConfigurationBase::rpcMaxClusterCnt = 2
private

Definition at line 87 of file ProcConfigurationBase.h.

Referenced by getRpcMaxClusterCnt(), and setRpcMaxClusterCnt().

unsigned int ProcConfigurationBase::rpcMaxClusterSize = 3
private

Definition at line 86 of file ProcConfigurationBase.h.

Referenced by getRpcMaxClusterSize(), and setRpcMaxClusterSize().