CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
L1MuBMTFConfig Class Reference

#include <L1MuBMTFConfig.h>

Public Member Functions

 L1MuBMTFConfig (const edm::ParameterSet &ps)
 constructor More...
 
void setDefaultsES (const edm::EventSetup &c)
 
virtual ~L1MuBMTFConfig ()
 destructor More...
 

Static Public Member Functions

static bool Debug ()
 
static bool Debug (int level)
 
static edm::InputTag getBMDigiInputTag ()
 
static edm::InputTag getBMThetaDigiInputTag ()
 
static int getBxMax ()
 
static int getBxMin ()
 
static int getDebugLevel ()
 
static bool getEtaTF ()
 
static int getExtTSFilter ()
 
static int getNbitsExtPhi ()
 
static int getNbitsExtPhib ()
 
static int getNbitsPhiPhi ()
 
static int getNbitsPhiPhib ()
 
static int getNbitsPtaPhi ()
 
static int getNbitsPtaPhib ()
 
static bool getopenLUTs ()
 
static bool getTSOutOfTimeFilter ()
 
static int getTSOutOfTimeWindow ()
 
static bool getUseEX21 ()
 
static void setDebugLevel (int level)
 

Private Member Functions

void setDefaults ()
 

Private Attributes

edm::ESHandle< L1TMuonBarrelParamsbmtfParamsHandle
 
const edm::EventSetupm_es
 
const edm::ParameterSetm_ps
 

Static Private Attributes

static edm::InputTag m_BMDigiInputTag = edm::InputTag()
 
static edm::InputTag m_BMThetaDigiInputTag = edm::InputTag()
 
static int m_BxMax = 7
 
static int m_BxMin = -9
 
static int m_dbgLevel = -1
 
static bool m_debug = false
 
static bool m_etaTF = true
 
static int m_extTSFilter = 1
 
static int m_NbitsExtPhi = 8
 
static int m_NbitsExtPhib = 8
 
static int m_NbitsPhiPhi = 10
 
static int m_NbitsPhiPhib = 10
 
static int m_NbitsPtaPhi = 12
 
static int m_NbitsPtaPhib = 10
 
static bool m_openLUTs = false
 
static bool m_TSOutOfTimeFilter = false
 
static int m_TSOutOfTimeWindow = 1
 
static bool m_useEX21 = false
 

Detailed Description

Configuration parameters for L1MuBMTrackFinder

N. Neumeister CERN EP

Definition at line 41 of file L1MuBMTFConfig.h.

Constructor & Destructor Documentation

L1MuBMTFConfig::L1MuBMTFConfig ( const edm::ParameterSet ps)

constructor

Definition at line 46 of file L1MuBMTFConfig.cc.

46  {
47 
48  m_ps = &ps;
49  //m_es = &c;
50  setDefaults();
51 
52 }
const edm::ParameterSet * m_ps
L1MuBMTFConfig::~L1MuBMTFConfig ( )
virtual

destructor

Definition at line 58 of file L1MuBMTFConfig.cc.

58 {}

Member Function Documentation

static bool L1MuBMTFConfig::Debug ( )
inlinestatic
static bool L1MuBMTFConfig::Debug ( int  level)
inlinestatic

Definition at line 57 of file L1MuBMTFConfig.h.

References m_dbgLevel, and m_debug.

57 { return (m_debug && m_dbgLevel >= level); }
static int m_dbgLevel
static bool m_debug
static edm::InputTag L1MuBMTFConfig::getBMDigiInputTag ( )
inlinestatic

Definition at line 53 of file L1MuBMTFConfig.h.

References m_BMDigiInputTag.

Referenced by L1MuBMTrackFinder::L1MuBMTrackFinder().

53 { return m_BMDigiInputTag; }
static edm::InputTag m_BMDigiInputTag
static edm::InputTag L1MuBMTFConfig::getBMThetaDigiInputTag ( )
inlinestatic

Definition at line 54 of file L1MuBMTFConfig.h.

References m_BMThetaDigiInputTag.

54 { return m_BMThetaDigiInputTag; }
static edm::InputTag m_BMThetaDigiInputTag
static int L1MuBMTFConfig::getBxMax ( )
inlinestatic

Definition at line 63 of file L1MuBMTFConfig.h.

References m_BxMax.

Referenced by L1MuBMTrackFinder::run().

63 { return m_BxMax; }
static int m_BxMax
static int L1MuBMTFConfig::getBxMin ( )
inlinestatic

Definition at line 62 of file L1MuBMTFConfig.h.

References m_BxMin.

Referenced by L1MuBMTrackFinder::run().

62 { return m_BxMin; }
static int m_BxMin
static int L1MuBMTFConfig::getDebugLevel ( )
inlinestatic

Definition at line 60 of file L1MuBMTFConfig.h.

References m_dbgLevel.

60 { return m_dbgLevel; }
static int m_dbgLevel
static bool L1MuBMTFConfig::getEtaTF ( )
inlinestatic

Definition at line 67 of file L1MuBMTFConfig.h.

References m_etaTF.

Referenced by L1MuBMEtaProcessor::run().

67 { return m_etaTF; }
static bool m_etaTF
static int L1MuBMTFConfig::getExtTSFilter ( )
inlinestatic

Definition at line 64 of file L1MuBMTFConfig.h.

References m_extTSFilter.

64 { return m_extTSFilter; }
static int m_extTSFilter
static int L1MuBMTFConfig::getNbitsExtPhi ( )
inlinestatic

Definition at line 70 of file L1MuBMTFConfig.h.

References m_NbitsExtPhi.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

70 { return m_NbitsExtPhi; }
static int m_NbitsExtPhi
static int L1MuBMTFConfig::getNbitsExtPhib ( )
inlinestatic

Definition at line 71 of file L1MuBMTFConfig.h.

References m_NbitsExtPhib.

71 { return m_NbitsExtPhib; }
static int m_NbitsExtPhib
static int L1MuBMTFConfig::getNbitsPhiPhi ( )
inlinestatic

Definition at line 74 of file L1MuBMTFConfig.h.

References m_NbitsPhiPhi.

Referenced by L1MuBMAssignmentUnit::PhiAU().

74 { return m_NbitsPhiPhi; }
static int m_NbitsPhiPhi
static int L1MuBMTFConfig::getNbitsPhiPhib ( )
inlinestatic

Definition at line 75 of file L1MuBMTFConfig.h.

References m_NbitsPhiPhib, and setDefaults().

Referenced by L1MuBMAssignmentUnit::PhiAU().

75 { return m_NbitsPhiPhib; }
static int m_NbitsPhiPhib
static int L1MuBMTFConfig::getNbitsPtaPhi ( )
inlinestatic

Definition at line 72 of file L1MuBMTFConfig.h.

References m_NbitsPtaPhi.

Referenced by L1MuBMAssignmentUnit::setPrecision().

72 { return m_NbitsPtaPhi; }
static int m_NbitsPtaPhi
static int L1MuBMTFConfig::getNbitsPtaPhib ( )
inlinestatic

Definition at line 73 of file L1MuBMTFConfig.h.

References m_NbitsPtaPhib.

Referenced by L1MuBMAssignmentUnit::setPrecision().

73 { return m_NbitsPtaPhib; }
static int m_NbitsPtaPhib
static bool L1MuBMTFConfig::getopenLUTs ( )
inlinestatic

Definition at line 65 of file L1MuBMTFConfig.h.

References m_openLUTs.

Referenced by L1MuBMEUX::run().

65 { return m_openLUTs; }
static bool m_openLUTs
static bool L1MuBMTFConfig::getTSOutOfTimeFilter ( )
inlinestatic

Definition at line 68 of file L1MuBMTFConfig.h.

References m_TSOutOfTimeFilter.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

68 { return m_TSOutOfTimeFilter; }
static bool m_TSOutOfTimeFilter
static int L1MuBMTFConfig::getTSOutOfTimeWindow ( )
inlinestatic

Definition at line 69 of file L1MuBMTFConfig.h.

References m_TSOutOfTimeWindow.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

69 { return m_TSOutOfTimeWindow; }
static int m_TSOutOfTimeWindow
static bool L1MuBMTFConfig::getUseEX21 ( )
inlinestatic

Definition at line 66 of file L1MuBMTFConfig.h.

References m_useEX21.

Referenced by L1MuBMExtrapolationUnit::run().

66 { return m_useEX21; }
static bool m_useEX21
static void L1MuBMTFConfig::setDebugLevel ( int  level)
inlinestatic

Definition at line 59 of file L1MuBMTFConfig.h.

References hcalDigis_cfi::level, and m_dbgLevel.

void L1MuBMTFConfig::setDefaults ( )
private

Definition at line 65 of file L1MuBMTFConfig.cc.

References gather_cfg::cout, and Debug.

Referenced by getNbitsPhiPhib().

65  {
66 
67  m_BMDigiInputTag = m_ps->getParameter<edm::InputTag>("DTDigi_Source");
68  m_BMThetaDigiInputTag = m_ps->getParameter<edm::InputTag>("DTDigi_Theta_Source");
69 
70  m_debug = true;
71  m_dbgLevel = m_ps->getUntrackedParameter<int>("Debug",0);
72 
73  if ( Debug(1) ) cout << endl;
74  if ( Debug(1) ) cout << "*******************************************" << endl;
75  if ( Debug(1) ) cout << "**** L1 barrel Track Finder settings : ****" << endl;
76  if ( Debug(1) ) cout << "*******************************************" << endl;
77  if ( Debug(1) ) cout << endl;
78 
79  if ( Debug(1) ) cout << "L1 barrel Track Finder : BM Digi Source: " << m_BMDigiInputTag << endl;
80  if ( Debug(1) ) cout << "L1 barrel Track Finder : BM Digi Source: " << m_BMThetaDigiInputTag << endl;
81  if ( Debug(1) ) cout << endl;
82 
83  if ( Debug(1) ) cout << "L1 barrel Track Finder : debug level: " << m_dbgLevel << endl;
84 
85 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
static edm::InputTag m_BMDigiInputTag
static edm::InputTag m_BMThetaDigiInputTag
static bool Debug()
const edm::ParameterSet * m_ps
static int m_dbgLevel
static bool m_debug
void L1MuBMTFConfig::setDefaultsES ( const edm::EventSetup c)

Definition at line 88 of file L1MuBMTFConfig.cc.

References EnergyCorrector::c, gather_cfg::cout, Debug, edm::eventsetup::EventSetupRecordImplementation< T >::get(), L1TMuonBarrelParamsAllPublic::get_BX_max(), L1TMuonBarrelParamsAllPublic::get_BX_min(), L1TMuonBarrelParamsAllPublic::get_EtaTrackFinder(), L1TMuonBarrelParamsAllPublic::get_Extrapolation_21(), L1TMuonBarrelParamsAllPublic::get_Extrapolation_Filter(), L1TMuonBarrelParamsAllPublic::get_Extrapolation_nbits_Phi(), L1TMuonBarrelParamsAllPublic::get_Extrapolation_nbits_PhiB(), L1TMuonBarrelParamsAllPublic::get_Open_LUTs(), L1TMuonBarrelParamsAllPublic::get_OutOfTime_Filter(), L1TMuonBarrelParamsAllPublic::get_OutOfTime_Filter_Window(), L1TMuonBarrelParamsAllPublic::get_PHI_Assignment_nbits_Phi(), L1TMuonBarrelParamsAllPublic::get_PHI_Assignment_nbits_PhiB(), L1TMuonBarrelParamsAllPublic::get_PT_Assignment_nbits_Phi(), L1TMuonBarrelParamsAllPublic::get_PT_Assignment_nbits_PhiB(), m_BMDigiInputTag, m_BMThetaDigiInputTag, m_BxMax, m_BxMin, m_dbgLevel, m_debug, m_etaTF, m_extTSFilter, m_NbitsExtPhi, m_NbitsExtPhib, m_NbitsPhiPhi, m_NbitsPhiPhib, m_NbitsPtaPhi, m_NbitsPtaPhib, m_openLUTs, m_TSOutOfTimeFilter, m_TSOutOfTimeWindow, and m_useEX21.

Referenced by L1MuBMTrackFinder::run().

88  {
89  m_es = &c;
90 
91 
92  const L1TMuonBarrelParamsRcd& bmtfParamsRcd = m_es->get<L1TMuonBarrelParamsRcd>();
93  bmtfParamsRcd.get(bmtfParamsHandle);
94  // L1TMuonBarrelParams *bmtfParams = new L1TMuonBarrelParams();
95  // bmtfParams = new L1TMuonBarrelParams(*bmtfParamsHandle.product());
97 
98  // set min and max bunch crossing
99  m_BxMin = bmtfParams->get_BX_min();
100  m_BxMax = bmtfParams->get_BX_max();
101 
102  // set Filter for Extrapolator
103  m_extTSFilter = bmtfParams->get_Extrapolation_Filter();
104 
105  // set switch for open LUTs usage
106  m_openLUTs = bmtfParams->get_Open_LUTs();
107 
108  // set switch for EX21 usage
109  m_useEX21 = bmtfParams->get_Extrapolation_21();
110 
111  // set switch for eta track finder usage
112  m_etaTF = bmtfParams->get_EtaTrackFinder();
113 
114  // set Filter for Out-of-time Track Segments
117 
118  // set precision for extrapolation
121 
122  // set precision for pt-assignment
125 
126  // set precision for phi-assignment look-up tables
129 
130  if ( Debug(1) ) cout << "L1 barrel Track Finder : minimal bunch-crossing : " << m_BxMin << endl;
131  if ( Debug(1) ) cout << "L1 barrel Track Finder : maximal bunch-crossing : " << m_BxMax << endl;
132 
133  if ( Debug(1) ) cout << "L1 barrel Track Finder : Extrapolation Filter : " << m_extTSFilter << endl;
134 
135  if ( Debug(1) && m_openLUTs) {
136  cout << "L1 barrel Track Finder : use open LUTs : on" << endl;
137  }
138  if ( Debug(1) && !m_openLUTs) {
139  cout << "L1 barrel Track Finder : use open LUTs : off" << endl;
140  }
141 
142  if ( Debug(1) && m_useEX21 ) {
143  cout << "L1 barrel Track Finder : use EX21 extrapolations : on" << endl;
144  }
145  if ( Debug(1) && !m_useEX21 ) {
146  cout << "L1 barrel Track Finder : use EX21 extrapolations : off" << endl;
147  }
148 
149  if ( Debug(1) && m_etaTF ) {
150  cout << "L1 barrel Track Finder : Eta Track Finder : on" << endl;
151  }
152  if ( Debug(1) && !m_etaTF ) {
153  cout << "L1 barrel Track Finder : Eta Track Finder : off" << endl;
154  }
155 
156 
157  if ( Debug(1) && m_TSOutOfTimeFilter ) {
158  cout << "L1 barrel Track Finder : out-of-time TS filter : on" << endl;
159  cout << "L1 barrel Track Finder : out-of-time TS filter window : " << m_TSOutOfTimeWindow << endl;
160  }
161  if ( Debug(1) && !m_TSOutOfTimeFilter ) {
162  cout << "L1 barrel Track Finder : out-of-time TS filter : off" << endl;
163  }
164 
165  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phi (extrapolation) : " << m_NbitsExtPhi << endl;
166  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phib (extrapolation) : " << m_NbitsExtPhib << endl;
167  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phi (pt-assignment) : " << m_NbitsPtaPhi << endl;
168  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phib (pt-assignment) : " << m_NbitsPtaPhib << endl;
169  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phi (phi-assignment) : " << m_NbitsPhiPhi << endl;
170  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phib (phi-assignment) : " << m_NbitsPhiPhib << endl;
171 
172  delete bmtfParams;
173 
174 }
static int m_NbitsPtaPhib
const edm::EventSetup * m_es
static int m_NbitsPhiPhi
static int m_NbitsPtaPhi
static int m_BxMax
static int m_NbitsPhiPhib
static int m_BxMin
static bool m_TSOutOfTimeFilter
static int m_TSOutOfTimeWindow
PRODUCT const & get(ESGetToken< PRODUCT, T > const &iToken) const
static bool m_etaTF
static int m_extTSFilter
static int m_NbitsExtPhi
static bool m_openLUTs
static bool Debug()
edm::ESHandle< L1TMuonBarrelParams > bmtfParamsHandle
static bool m_useEX21
T get() const
Definition: EventSetup.h:71
static int m_NbitsExtPhib
T const * product() const
Definition: ESHandle.h:86

Member Data Documentation

edm::ESHandle< L1TMuonBarrelParams > L1MuBMTFConfig::bmtfParamsHandle
private

Definition at line 81 of file L1MuBMTFConfig.h.

edm::InputTag L1MuBMTFConfig::m_BMDigiInputTag = edm::InputTag()
staticprivate

Definition at line 88 of file L1MuBMTFConfig.h.

Referenced by getBMDigiInputTag(), and setDefaultsES().

edm::InputTag L1MuBMTFConfig::m_BMThetaDigiInputTag = edm::InputTag()
staticprivate

Definition at line 89 of file L1MuBMTFConfig.h.

Referenced by getBMThetaDigiInputTag(), and setDefaultsES().

int L1MuBMTFConfig::m_BxMax = 7
staticprivate

Definition at line 95 of file L1MuBMTFConfig.h.

Referenced by getBxMax(), and setDefaultsES().

int L1MuBMTFConfig::m_BxMin = -9
staticprivate

Definition at line 94 of file L1MuBMTFConfig.h.

Referenced by getBxMin(), and setDefaultsES().

int L1MuBMTFConfig::m_dbgLevel = -1
staticprivate

Definition at line 92 of file L1MuBMTFConfig.h.

Referenced by Debug(), getDebugLevel(), setDebugLevel(), and setDefaultsES().

bool L1MuBMTFConfig::m_debug = false
staticprivate

Definition at line 91 of file L1MuBMTFConfig.h.

Referenced by Debug(), and setDefaultsES().

const edm::EventSetup* L1MuBMTFConfig::m_es
private

Definition at line 86 of file L1MuBMTFConfig.h.

bool L1MuBMTFConfig::m_etaTF = true
staticprivate

Definition at line 103 of file L1MuBMTFConfig.h.

Referenced by getEtaTF(), and setDefaultsES().

int L1MuBMTFConfig::m_extTSFilter = 1
staticprivate

Definition at line 97 of file L1MuBMTFConfig.h.

Referenced by getExtTSFilter(), and setDefaultsES().

int L1MuBMTFConfig::m_NbitsExtPhi = 8
staticprivate

Definition at line 108 of file L1MuBMTFConfig.h.

Referenced by getNbitsExtPhi(), and setDefaultsES().

int L1MuBMTFConfig::m_NbitsExtPhib = 8
staticprivate

Definition at line 109 of file L1MuBMTFConfig.h.

Referenced by getNbitsExtPhib(), and setDefaultsES().

int L1MuBMTFConfig::m_NbitsPhiPhi = 10
staticprivate

Definition at line 112 of file L1MuBMTFConfig.h.

Referenced by getNbitsPhiPhi(), and setDefaultsES().

int L1MuBMTFConfig::m_NbitsPhiPhib = 10
staticprivate

Definition at line 113 of file L1MuBMTFConfig.h.

Referenced by getNbitsPhiPhib(), and setDefaultsES().

int L1MuBMTFConfig::m_NbitsPtaPhi = 12
staticprivate

Definition at line 110 of file L1MuBMTFConfig.h.

Referenced by getNbitsPtaPhi(), and setDefaultsES().

int L1MuBMTFConfig::m_NbitsPtaPhib = 10
staticprivate

Definition at line 111 of file L1MuBMTFConfig.h.

Referenced by getNbitsPtaPhib(), and setDefaultsES().

bool L1MuBMTFConfig::m_openLUTs = false
staticprivate

Definition at line 99 of file L1MuBMTFConfig.h.

Referenced by getopenLUTs(), and setDefaultsES().

const edm::ParameterSet* L1MuBMTFConfig::m_ps
private

Definition at line 85 of file L1MuBMTFConfig.h.

bool L1MuBMTFConfig::m_TSOutOfTimeFilter = false
staticprivate

Definition at line 105 of file L1MuBMTFConfig.h.

Referenced by getTSOutOfTimeFilter(), and setDefaultsES().

int L1MuBMTFConfig::m_TSOutOfTimeWindow = 1
staticprivate

Definition at line 106 of file L1MuBMTFConfig.h.

Referenced by getTSOutOfTimeWindow(), and setDefaultsES().

bool L1MuBMTFConfig::m_useEX21 = false
staticprivate

Definition at line 101 of file L1MuBMTFConfig.h.

Referenced by getUseEX21(), and setDefaultsES().