CMS 3D CMS Logo

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

#include <L1MuBMTFConfig.h>

Public Member Functions

bool Debug () const
 
bool Debug (int level) const
 
edm::InputTag getBMDigiInputTag () const
 
edm::InputTag getBMThetaDigiInputTag () const
 
int getBxMax () const
 
int getBxMin () const
 
int getDebugLevel () const
 
bool getEtaTF () const
 
int getExtTSFilter () const
 
int getNbitsExtPhi () const
 
int getNbitsExtPhib () const
 
int getNbitsPhiPhi () const
 
int getNbitsPhiPhib () const
 
int getNbitsPtaPhi () const
 
int getNbitsPtaPhib () const
 
bool getopenLUTs () const
 
bool getTSOutOfTimeFilter () const
 
int getTSOutOfTimeWindow () const
 
bool getUseEX21 () const
 
 L1MuBMTFConfig (const edm::ParameterSet &ps)
 constructor More...
 
void setDebugLevel (int level)
 
void setDefaultsES (const L1TMuonBarrelParams &)
 

Private Member Functions

void setDefaults (edm::ParameterSet const &)
 

Private Attributes

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

Detailed Description

Configuration parameters for L1MuBMTrackFinder

N. Neumeister CERN EP

Definition at line 38 of file L1MuBMTFConfig.h.

Constructor & Destructor Documentation

◆ L1MuBMTFConfig()

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

constructor

Definition at line 44 of file L1MuBMTFConfig.cc.

44 { setDefaults(ps); }
void setDefaults(edm::ParameterSet const &)

Member Function Documentation

◆ Debug() [1/2]

bool L1MuBMTFConfig::Debug ( ) const
inline

◆ Debug() [2/2]

bool L1MuBMTFConfig::Debug ( int  level) const
inline

◆ getBMDigiInputTag()

edm::InputTag L1MuBMTFConfig::getBMDigiInputTag ( ) const
inline

Definition at line 45 of file L1MuBMTFConfig.h.

References m_BMDigiInputTag.

Referenced by L1MuBMTrackFinder::L1MuBMTrackFinder().

45 { return m_BMDigiInputTag; }
edm::InputTag m_BMDigiInputTag

◆ getBMThetaDigiInputTag()

edm::InputTag L1MuBMTFConfig::getBMThetaDigiInputTag ( ) const
inline

Definition at line 46 of file L1MuBMTFConfig.h.

References m_BMThetaDigiInputTag.

46 { return m_BMThetaDigiInputTag; }
edm::InputTag m_BMThetaDigiInputTag

◆ getBxMax()

int L1MuBMTFConfig::getBxMax ( ) const
inline

Definition at line 55 of file L1MuBMTFConfig.h.

References m_BxMax.

Referenced by L1MuBMTrackFinder::run().

55 { return m_BxMax; }

◆ getBxMin()

int L1MuBMTFConfig::getBxMin ( ) const
inline

Definition at line 54 of file L1MuBMTFConfig.h.

References m_BxMin.

Referenced by L1MuBMTrackFinder::run().

54 { return m_BxMin; }

◆ getDebugLevel()

int L1MuBMTFConfig::getDebugLevel ( ) const
inline

Definition at line 52 of file L1MuBMTFConfig.h.

References m_dbgLevel.

52 { return m_dbgLevel; }

◆ getEtaTF()

bool L1MuBMTFConfig::getEtaTF ( ) const
inline

Definition at line 59 of file L1MuBMTFConfig.h.

References m_etaTF.

Referenced by L1MuBMEtaProcessor::run().

59 { return m_etaTF; }

◆ getExtTSFilter()

int L1MuBMTFConfig::getExtTSFilter ( ) const
inline

Definition at line 56 of file L1MuBMTFConfig.h.

References m_extTSFilter.

56 { return m_extTSFilter; }

◆ getNbitsExtPhi()

int L1MuBMTFConfig::getNbitsExtPhi ( ) const
inline

Definition at line 62 of file L1MuBMTFConfig.h.

References m_NbitsExtPhi.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

62 { return m_NbitsExtPhi; }

◆ getNbitsExtPhib()

int L1MuBMTFConfig::getNbitsExtPhib ( ) const
inline

Definition at line 63 of file L1MuBMTFConfig.h.

References m_NbitsExtPhib.

63 { return m_NbitsExtPhib; }

◆ getNbitsPhiPhi()

int L1MuBMTFConfig::getNbitsPhiPhi ( ) const
inline

Definition at line 66 of file L1MuBMTFConfig.h.

References m_NbitsPhiPhi.

Referenced by L1MuBMAssignmentUnit::PhiAU().

66 { return m_NbitsPhiPhi; }

◆ getNbitsPhiPhib()

int L1MuBMTFConfig::getNbitsPhiPhib ( ) const
inline

Definition at line 67 of file L1MuBMTFConfig.h.

References m_NbitsPhiPhib.

Referenced by L1MuBMAssignmentUnit::PhiAU().

67 { return m_NbitsPhiPhib; }

◆ getNbitsPtaPhi()

int L1MuBMTFConfig::getNbitsPtaPhi ( ) const
inline

Definition at line 64 of file L1MuBMTFConfig.h.

References m_NbitsPtaPhi.

Referenced by L1MuBMAssignmentUnit::setPrecision().

64 { return m_NbitsPtaPhi; }

◆ getNbitsPtaPhib()

int L1MuBMTFConfig::getNbitsPtaPhib ( ) const
inline

Definition at line 65 of file L1MuBMTFConfig.h.

References m_NbitsPtaPhib.

Referenced by L1MuBMAssignmentUnit::setPrecision().

65 { return m_NbitsPtaPhib; }

◆ getopenLUTs()

bool L1MuBMTFConfig::getopenLUTs ( ) const
inline

Definition at line 57 of file L1MuBMTFConfig.h.

References m_openLUTs.

Referenced by L1MuBMEUX::run().

57 { return m_openLUTs; }

◆ getTSOutOfTimeFilter()

bool L1MuBMTFConfig::getTSOutOfTimeFilter ( ) const
inline

Definition at line 60 of file L1MuBMTFConfig.h.

References m_TSOutOfTimeFilter.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

60 { return m_TSOutOfTimeFilter; }
bool m_TSOutOfTimeFilter

◆ getTSOutOfTimeWindow()

int L1MuBMTFConfig::getTSOutOfTimeWindow ( ) const
inline

Definition at line 61 of file L1MuBMTFConfig.h.

References m_TSOutOfTimeWindow.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

61 { return m_TSOutOfTimeWindow; }

◆ getUseEX21()

bool L1MuBMTFConfig::getUseEX21 ( ) const
inline

Definition at line 58 of file L1MuBMTFConfig.h.

References m_useEX21.

Referenced by L1MuBMExtrapolationUnit::run().

58 { return m_useEX21; }

◆ setDebugLevel()

void L1MuBMTFConfig::setDebugLevel ( int  level)
inline

◆ setDefaults()

void L1MuBMTFConfig::setDefaults ( edm::ParameterSet const &  ps)
private

Definition at line 50 of file L1MuBMTFConfig.cc.

References gather_cfg::cout, Debug, edm::ParameterSet::getParameter(), and edm::ParameterSet::getUntrackedParameter().

50  {
51  m_BMDigiInputTag = ps.getParameter<edm::InputTag>("DTDigi_Source");
52  m_BMThetaDigiInputTag = ps.getParameter<edm::InputTag>("DTDigi_Theta_Source");
53 
54  m_debug = true;
55  m_dbgLevel = ps.getUntrackedParameter<int>("Debug", 0);
56 
57  if (Debug(1))
58  cout << endl;
59  if (Debug(1))
60  cout << "*******************************************" << endl;
61  if (Debug(1))
62  cout << "**** L1 barrel Track Finder settings : ****" << endl;
63  if (Debug(1))
64  cout << "*******************************************" << endl;
65  if (Debug(1))
66  cout << endl;
67 
68  if (Debug(1))
69  cout << "L1 barrel Track Finder : BM Digi Source: " << m_BMDigiInputTag << endl;
70  if (Debug(1))
71  cout << "L1 barrel Track Finder : BM Digi Source: " << m_BMThetaDigiInputTag << endl;
72  if (Debug(1))
73  cout << endl;
74 
75  if (Debug(1))
76  cout << "L1 barrel Track Finder : debug level: " << m_dbgLevel << endl;
77 }
edm::InputTag m_BMDigiInputTag
edm::InputTag m_BMThetaDigiInputTag
bool Debug() const

◆ setDefaultsES()

void L1MuBMTFConfig::setDefaultsES ( const L1TMuonBarrelParams bmtfParams)

Definition at line 79 of file L1MuBMTFConfig.cc.

References gather_cfg::cout, Debug, L1TMuonBarrelParams::get_BX_max(), L1TMuonBarrelParams::get_BX_min(), L1TMuonBarrelParams::get_EtaTrackFinder(), L1TMuonBarrelParams::get_Extrapolation_21(), L1TMuonBarrelParams::get_Extrapolation_Filter(), L1TMuonBarrelParams::get_Extrapolation_nbits_Phi(), L1TMuonBarrelParams::get_Extrapolation_nbits_PhiB(), L1TMuonBarrelParams::get_Open_LUTs(), L1TMuonBarrelParams::get_OutOfTime_Filter(), L1TMuonBarrelParams::get_OutOfTime_Filter_Window(), L1TMuonBarrelParams::get_PHI_Assignment_nbits_Phi(), L1TMuonBarrelParams::get_PHI_Assignment_nbits_PhiB(), L1TMuonBarrelParams::get_PT_Assignment_nbits_Phi(), and L1TMuonBarrelParams::get_PT_Assignment_nbits_PhiB().

Referenced by L1MuBMTrackFinder::run().

79  {
80  // set min and max bunch crossing
81  m_BxMin = bmtfParams.get_BX_min();
82  m_BxMax = bmtfParams.get_BX_max();
83 
84  // set Filter for Extrapolator
86 
87  // set switch for open LUTs usage
88  m_openLUTs = bmtfParams.get_Open_LUTs();
89 
90  // set switch for EX21 usage
91  m_useEX21 = bmtfParams.get_Extrapolation_21();
92 
93  // set switch for eta track finder usage
94  m_etaTF = bmtfParams.get_EtaTrackFinder();
95 
96  // set Filter for Out-of-time Track Segments
99 
100  // set precision for extrapolation
103 
104  // set precision for pt-assignment
107 
108  // set precision for phi-assignment look-up tables
111 
112  if (Debug(1))
113  cout << "L1 barrel Track Finder : minimal bunch-crossing : " << m_BxMin << endl;
114  if (Debug(1))
115  cout << "L1 barrel Track Finder : maximal bunch-crossing : " << m_BxMax << endl;
116 
117  if (Debug(1))
118  cout << "L1 barrel Track Finder : Extrapolation Filter : " << m_extTSFilter << endl;
119 
120  if (Debug(1) && m_openLUTs) {
121  cout << "L1 barrel Track Finder : use open LUTs : on" << endl;
122  }
123  if (Debug(1) && !m_openLUTs) {
124  cout << "L1 barrel Track Finder : use open LUTs : off" << endl;
125  }
126 
127  if (Debug(1) && m_useEX21) {
128  cout << "L1 barrel Track Finder : use EX21 extrapolations : on" << endl;
129  }
130  if (Debug(1) && !m_useEX21) {
131  cout << "L1 barrel Track Finder : use EX21 extrapolations : off" << endl;
132  }
133 
134  if (Debug(1) && m_etaTF) {
135  cout << "L1 barrel Track Finder : Eta Track Finder : on" << endl;
136  }
137  if (Debug(1) && !m_etaTF) {
138  cout << "L1 barrel Track Finder : Eta Track Finder : off" << endl;
139  }
140 
141  if (Debug(1) && m_TSOutOfTimeFilter) {
142  cout << "L1 barrel Track Finder : out-of-time TS filter : on" << endl;
143  cout << "L1 barrel Track Finder : out-of-time TS filter window : " << m_TSOutOfTimeWindow << endl;
144  }
145  if (Debug(1) && !m_TSOutOfTimeFilter) {
146  cout << "L1 barrel Track Finder : out-of-time TS filter : off" << endl;
147  }
148 
149  if (Debug(1))
150  cout << "L1 barrel Track Finder : # of bits used for phi (extrapolation) : " << m_NbitsExtPhi << endl;
151  if (Debug(1))
152  cout << "L1 barrel Track Finder : # of bits used for phib (extrapolation) : " << m_NbitsExtPhib << endl;
153  if (Debug(1))
154  cout << "L1 barrel Track Finder : # of bits used for phi (pt-assignment) : " << m_NbitsPtaPhi << endl;
155  if (Debug(1))
156  cout << "L1 barrel Track Finder : # of bits used for phib (pt-assignment) : " << m_NbitsPtaPhib << endl;
157  if (Debug(1))
158  cout << "L1 barrel Track Finder : # of bits used for phi (phi-assignment) : " << m_NbitsPhiPhi << endl;
159  if (Debug(1))
160  cout << "L1 barrel Track Finder : # of bits used for phib (phi-assignment) : " << m_NbitsPhiPhib << endl;
161 }
int get_OutOfTime_Filter_Window() const
bool get_Extrapolation_21() const
int get_Extrapolation_nbits_PhiB() const
bool m_TSOutOfTimeFilter
bool get_EtaTrackFinder() const
int get_PT_Assignment_nbits_Phi() const
int get_Extrapolation_Filter() const
int get_PT_Assignment_nbits_PhiB() const
int get_PHI_Assignment_nbits_Phi() const
bool Debug() const
int get_PHI_Assignment_nbits_PhiB() const
bool get_OutOfTime_Filter() const
int get_Extrapolation_nbits_Phi() const

Member Data Documentation

◆ m_BMDigiInputTag

edm::InputTag L1MuBMTFConfig::m_BMDigiInputTag
private

Definition at line 73 of file L1MuBMTFConfig.h.

Referenced by getBMDigiInputTag().

◆ m_BMThetaDigiInputTag

edm::InputTag L1MuBMTFConfig::m_BMThetaDigiInputTag
private

Definition at line 74 of file L1MuBMTFConfig.h.

Referenced by getBMThetaDigiInputTag().

◆ m_BxMax

int L1MuBMTFConfig::m_BxMax = 7
private

Definition at line 79 of file L1MuBMTFConfig.h.

Referenced by getBxMax().

◆ m_BxMin

int L1MuBMTFConfig::m_BxMin = -9
private

Definition at line 78 of file L1MuBMTFConfig.h.

Referenced by getBxMin().

◆ m_dbgLevel

int L1MuBMTFConfig::m_dbgLevel = -1
private

Definition at line 76 of file L1MuBMTFConfig.h.

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

◆ m_debug

bool L1MuBMTFConfig::m_debug = false
private

Definition at line 92 of file L1MuBMTFConfig.h.

Referenced by Debug().

◆ m_etaTF

bool L1MuBMTFConfig::m_etaTF = true
private

Definition at line 95 of file L1MuBMTFConfig.h.

Referenced by getEtaTF().

◆ m_extTSFilter

int L1MuBMTFConfig::m_extTSFilter = 1
private

Definition at line 81 of file L1MuBMTFConfig.h.

Referenced by getExtTSFilter().

◆ m_NbitsExtPhi

int L1MuBMTFConfig::m_NbitsExtPhi = 8
private

Definition at line 85 of file L1MuBMTFConfig.h.

Referenced by getNbitsExtPhi().

◆ m_NbitsExtPhib

int L1MuBMTFConfig::m_NbitsExtPhib = 8
private

Definition at line 86 of file L1MuBMTFConfig.h.

Referenced by getNbitsExtPhib().

◆ m_NbitsPhiPhi

int L1MuBMTFConfig::m_NbitsPhiPhi = 10
private

Definition at line 89 of file L1MuBMTFConfig.h.

Referenced by getNbitsPhiPhi().

◆ m_NbitsPhiPhib

int L1MuBMTFConfig::m_NbitsPhiPhib = 10
private

Definition at line 90 of file L1MuBMTFConfig.h.

Referenced by getNbitsPhiPhib().

◆ m_NbitsPtaPhi

int L1MuBMTFConfig::m_NbitsPtaPhi = 12
private

Definition at line 87 of file L1MuBMTFConfig.h.

Referenced by getNbitsPtaPhi().

◆ m_NbitsPtaPhib

int L1MuBMTFConfig::m_NbitsPtaPhib = 10
private

Definition at line 88 of file L1MuBMTFConfig.h.

Referenced by getNbitsPtaPhib().

◆ m_openLUTs

bool L1MuBMTFConfig::m_openLUTs = false
private

Definition at line 93 of file L1MuBMTFConfig.h.

Referenced by getopenLUTs().

◆ m_TSOutOfTimeFilter

bool L1MuBMTFConfig::m_TSOutOfTimeFilter = false
private

Definition at line 96 of file L1MuBMTFConfig.h.

Referenced by getTSOutOfTimeFilter().

◆ m_TSOutOfTimeWindow

int L1MuBMTFConfig::m_TSOutOfTimeWindow = 1
private

Definition at line 83 of file L1MuBMTFConfig.h.

Referenced by getTSOutOfTimeWindow().

◆ m_useEX21

bool L1MuBMTFConfig::m_useEX21 = false
private

Definition at line 94 of file L1MuBMTFConfig.h.

Referenced by getUseEX21().