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  m_ps = &ps;
48  //m_es = &c;
49  setDefaults();
50 }
const edm::ParameterSet * m_ps
L1MuBMTFConfig::~L1MuBMTFConfig ( )
virtual

destructor

Definition at line 55 of file L1MuBMTFConfig.cc.

55 {}

Member Function Documentation

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

Definition at line 55 of file L1MuBMTFConfig.h.

References m_dbgLevel, and m_debug.

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

Definition at line 51 of file L1MuBMTFConfig.h.

References m_BMDigiInputTag.

Referenced by L1MuBMTrackFinder::L1MuBMTrackFinder().

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

Definition at line 52 of file L1MuBMTFConfig.h.

References m_BMThetaDigiInputTag.

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

Definition at line 61 of file L1MuBMTFConfig.h.

References m_BxMax.

Referenced by L1MuBMTrackFinder::run().

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

Definition at line 60 of file L1MuBMTFConfig.h.

References m_BxMin.

Referenced by L1MuBMTrackFinder::run().

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

Definition at line 58 of file L1MuBMTFConfig.h.

References m_dbgLevel.

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

Definition at line 65 of file L1MuBMTFConfig.h.

References m_etaTF.

Referenced by L1MuBMEtaProcessor::run().

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

Definition at line 62 of file L1MuBMTFConfig.h.

References m_extTSFilter.

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

Definition at line 68 of file L1MuBMTFConfig.h.

References m_NbitsExtPhi.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

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

Definition at line 69 of file L1MuBMTFConfig.h.

References m_NbitsExtPhib.

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

Definition at line 72 of file L1MuBMTFConfig.h.

References m_NbitsPhiPhi.

Referenced by L1MuBMAssignmentUnit::PhiAU().

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

Definition at line 73 of file L1MuBMTFConfig.h.

References m_NbitsPhiPhib, and setDefaults().

Referenced by L1MuBMAssignmentUnit::PhiAU().

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

Definition at line 70 of file L1MuBMTFConfig.h.

References m_NbitsPtaPhi.

Referenced by L1MuBMAssignmentUnit::setPrecision().

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

Definition at line 71 of file L1MuBMTFConfig.h.

References m_NbitsPtaPhib.

Referenced by L1MuBMAssignmentUnit::setPrecision().

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

Definition at line 63 of file L1MuBMTFConfig.h.

References m_openLUTs.

Referenced by L1MuBMEUX::run().

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

Definition at line 66 of file L1MuBMTFConfig.h.

References m_TSOutOfTimeFilter.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

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

Definition at line 67 of file L1MuBMTFConfig.h.

References m_TSOutOfTimeWindow.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

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

Definition at line 64 of file L1MuBMTFConfig.h.

References m_useEX21.

Referenced by L1MuBMExtrapolationUnit::run().

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

Definition at line 57 of file L1MuBMTFConfig.h.

References personalPlayback::level, and m_dbgLevel.

void L1MuBMTFConfig::setDefaults ( )
private

Definition at line 61 of file L1MuBMTFConfig.cc.

References gather_cfg::cout, and Debug.

Referenced by getNbitsPhiPhib().

61  {
62  m_BMDigiInputTag = m_ps->getParameter<edm::InputTag>("DTDigi_Source");
63  m_BMThetaDigiInputTag = m_ps->getParameter<edm::InputTag>("DTDigi_Theta_Source");
64 
65  m_debug = true;
66  m_dbgLevel = m_ps->getUntrackedParameter<int>("Debug", 0);
67 
68  if (Debug(1))
69  cout << endl;
70  if (Debug(1))
71  cout << "*******************************************" << endl;
72  if (Debug(1))
73  cout << "**** L1 barrel Track Finder settings : ****" << endl;
74  if (Debug(1))
75  cout << "*******************************************" << endl;
76  if (Debug(1))
77  cout << endl;
78 
79  if (Debug(1))
80  cout << "L1 barrel Track Finder : BM Digi Source: " << m_BMDigiInputTag << endl;
81  if (Debug(1))
82  cout << "L1 barrel Track Finder : BM Digi Source: " << m_BMThetaDigiInputTag << endl;
83  if (Debug(1))
84  cout << endl;
85 
86  if (Debug(1))
87  cout << "L1 barrel Track Finder : debug level: " << m_dbgLevel << endl;
88 }
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 90 of file L1MuBMTFConfig.cc.

References HltBtagPostValidation_cff::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(), HLT_2018_cff::InputTag, 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().

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

Member Data Documentation

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

Definition at line 78 of file L1MuBMTFConfig.h.

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

Definition at line 84 of file L1MuBMTFConfig.h.

Referenced by getBMDigiInputTag(), and setDefaultsES().

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

Definition at line 85 of file L1MuBMTFConfig.h.

Referenced by getBMThetaDigiInputTag(), and setDefaultsES().

int L1MuBMTFConfig::m_BxMax = 7
staticprivate

Definition at line 91 of file L1MuBMTFConfig.h.

Referenced by getBxMax(), and setDefaultsES().

int L1MuBMTFConfig::m_BxMin = -9
staticprivate

Definition at line 90 of file L1MuBMTFConfig.h.

Referenced by getBxMin(), and setDefaultsES().

int L1MuBMTFConfig::m_dbgLevel = -1
staticprivate

Definition at line 88 of file L1MuBMTFConfig.h.

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

bool L1MuBMTFConfig::m_debug = false
staticprivate

Definition at line 87 of file L1MuBMTFConfig.h.

Referenced by Debug(), and setDefaultsES().

const edm::EventSetup* L1MuBMTFConfig::m_es
private

Definition at line 82 of file L1MuBMTFConfig.h.

bool L1MuBMTFConfig::m_etaTF = true
staticprivate

Definition at line 99 of file L1MuBMTFConfig.h.

Referenced by getEtaTF(), and setDefaultsES().

int L1MuBMTFConfig::m_extTSFilter = 1
staticprivate

Definition at line 93 of file L1MuBMTFConfig.h.

Referenced by getExtTSFilter(), and setDefaultsES().

int L1MuBMTFConfig::m_NbitsExtPhi = 8
staticprivate

Definition at line 104 of file L1MuBMTFConfig.h.

Referenced by getNbitsExtPhi(), and setDefaultsES().

int L1MuBMTFConfig::m_NbitsExtPhib = 8
staticprivate

Definition at line 105 of file L1MuBMTFConfig.h.

Referenced by getNbitsExtPhib(), and setDefaultsES().

int L1MuBMTFConfig::m_NbitsPhiPhi = 10
staticprivate

Definition at line 108 of file L1MuBMTFConfig.h.

Referenced by getNbitsPhiPhi(), and setDefaultsES().

int L1MuBMTFConfig::m_NbitsPhiPhib = 10
staticprivate

Definition at line 109 of file L1MuBMTFConfig.h.

Referenced by getNbitsPhiPhib(), and setDefaultsES().

int L1MuBMTFConfig::m_NbitsPtaPhi = 12
staticprivate

Definition at line 106 of file L1MuBMTFConfig.h.

Referenced by getNbitsPtaPhi(), and setDefaultsES().

int L1MuBMTFConfig::m_NbitsPtaPhib = 10
staticprivate

Definition at line 107 of file L1MuBMTFConfig.h.

Referenced by getNbitsPtaPhib(), and setDefaultsES().

bool L1MuBMTFConfig::m_openLUTs = false
staticprivate

Definition at line 95 of file L1MuBMTFConfig.h.

Referenced by getopenLUTs(), and setDefaultsES().

const edm::ParameterSet* L1MuBMTFConfig::m_ps
private

Definition at line 81 of file L1MuBMTFConfig.h.

bool L1MuBMTFConfig::m_TSOutOfTimeFilter = false
staticprivate

Definition at line 101 of file L1MuBMTFConfig.h.

Referenced by getTSOutOfTimeFilter(), and setDefaultsES().

int L1MuBMTFConfig::m_TSOutOfTimeWindow = 1
staticprivate

Definition at line 102 of file L1MuBMTFConfig.h.

Referenced by getTSOutOfTimeWindow(), and setDefaultsES().

bool L1MuBMTFConfig::m_useEX21 = false
staticprivate

Definition at line 97 of file L1MuBMTFConfig.h.

Referenced by getUseEX21(), and setDefaultsES().