CMS 3D CMS Logo

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

#include <L1MuBMTFConfig.h>

Public Member Functions

 L1MuBMTFConfig (const edm::ParameterSet &ps)
 constructor More...
 
void setDefaultsES (const L1TMuonBarrelParams &)
 
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 (edm::ParameterSet const &)
 

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 39 of file L1MuBMTFConfig.h.

Constructor & Destructor Documentation

◆ L1MuBMTFConfig()

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

constructor

Definition at line 44 of file L1MuBMTFConfig.cc.

44 { setDefaults(ps); }

◆ ~L1MuBMTFConfig()

L1MuBMTFConfig::~L1MuBMTFConfig ( )
virtual

destructor

Definition at line 49 of file L1MuBMTFConfig.cc.

49 {}

Member Function Documentation

◆ Debug() [1/2]

static bool L1MuBMTFConfig::Debug ( )
inlinestatic

◆ Debug() [2/2]

static bool L1MuBMTFConfig::Debug ( int  level)
inlinestatic

Definition at line 53 of file L1MuBMTFConfig.h.

53 { return (m_debug && m_dbgLevel >= level); }

References personalPlayback::level, m_dbgLevel, and m_debug.

◆ getBMDigiInputTag()

static edm::InputTag L1MuBMTFConfig::getBMDigiInputTag ( )
inlinestatic

Definition at line 49 of file L1MuBMTFConfig.h.

49 { return m_BMDigiInputTag; }

References m_BMDigiInputTag.

Referenced by L1MuBMTrackFinder::L1MuBMTrackFinder().

◆ getBMThetaDigiInputTag()

static edm::InputTag L1MuBMTFConfig::getBMThetaDigiInputTag ( )
inlinestatic

Definition at line 50 of file L1MuBMTFConfig.h.

50 { return m_BMThetaDigiInputTag; }

References m_BMThetaDigiInputTag.

◆ getBxMax()

static int L1MuBMTFConfig::getBxMax ( )
inlinestatic

Definition at line 59 of file L1MuBMTFConfig.h.

59 { return m_BxMax; }

References m_BxMax.

Referenced by L1MuBMTrackFinder::run().

◆ getBxMin()

static int L1MuBMTFConfig::getBxMin ( )
inlinestatic

Definition at line 58 of file L1MuBMTFConfig.h.

58 { return m_BxMin; }

References m_BxMin.

Referenced by L1MuBMTrackFinder::run().

◆ getDebugLevel()

static int L1MuBMTFConfig::getDebugLevel ( )
inlinestatic

Definition at line 56 of file L1MuBMTFConfig.h.

56 { return m_dbgLevel; }

References m_dbgLevel.

◆ getEtaTF()

static bool L1MuBMTFConfig::getEtaTF ( )
inlinestatic

Definition at line 63 of file L1MuBMTFConfig.h.

63 { return m_etaTF; }

References m_etaTF.

Referenced by L1MuBMEtaProcessor::run().

◆ getExtTSFilter()

static int L1MuBMTFConfig::getExtTSFilter ( )
inlinestatic

Definition at line 60 of file L1MuBMTFConfig.h.

60 { return m_extTSFilter; }

References m_extTSFilter.

◆ getNbitsExtPhi()

static int L1MuBMTFConfig::getNbitsExtPhi ( )
inlinestatic

Definition at line 66 of file L1MuBMTFConfig.h.

66 { return m_NbitsExtPhi; }

References m_NbitsExtPhi.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

◆ getNbitsExtPhib()

static int L1MuBMTFConfig::getNbitsExtPhib ( )
inlinestatic

Definition at line 67 of file L1MuBMTFConfig.h.

67 { return m_NbitsExtPhib; }

References m_NbitsExtPhib.

◆ getNbitsPhiPhi()

static int L1MuBMTFConfig::getNbitsPhiPhi ( )
inlinestatic

Definition at line 70 of file L1MuBMTFConfig.h.

70 { return m_NbitsPhiPhi; }

References m_NbitsPhiPhi.

Referenced by L1MuBMAssignmentUnit::PhiAU().

◆ getNbitsPhiPhib()

static int L1MuBMTFConfig::getNbitsPhiPhib ( )
inlinestatic

Definition at line 71 of file L1MuBMTFConfig.h.

71 { return m_NbitsPhiPhib; }

References m_NbitsPhiPhib.

Referenced by L1MuBMAssignmentUnit::PhiAU().

◆ getNbitsPtaPhi()

static int L1MuBMTFConfig::getNbitsPtaPhi ( )
inlinestatic

Definition at line 68 of file L1MuBMTFConfig.h.

68 { return m_NbitsPtaPhi; }

References m_NbitsPtaPhi.

Referenced by L1MuBMAssignmentUnit::setPrecision().

◆ getNbitsPtaPhib()

static int L1MuBMTFConfig::getNbitsPtaPhib ( )
inlinestatic

Definition at line 69 of file L1MuBMTFConfig.h.

69 { return m_NbitsPtaPhib; }

References m_NbitsPtaPhib.

Referenced by L1MuBMAssignmentUnit::setPrecision().

◆ getopenLUTs()

static bool L1MuBMTFConfig::getopenLUTs ( )
inlinestatic

Definition at line 61 of file L1MuBMTFConfig.h.

61 { return m_openLUTs; }

References m_openLUTs.

Referenced by L1MuBMEUX::run().

◆ getTSOutOfTimeFilter()

static bool L1MuBMTFConfig::getTSOutOfTimeFilter ( )
inlinestatic

Definition at line 64 of file L1MuBMTFConfig.h.

64 { return m_TSOutOfTimeFilter; }

References m_TSOutOfTimeFilter.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

◆ getTSOutOfTimeWindow()

static int L1MuBMTFConfig::getTSOutOfTimeWindow ( )
inlinestatic

Definition at line 65 of file L1MuBMTFConfig.h.

65 { return m_TSOutOfTimeWindow; }

References m_TSOutOfTimeWindow.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

◆ getUseEX21()

static bool L1MuBMTFConfig::getUseEX21 ( )
inlinestatic

Definition at line 62 of file L1MuBMTFConfig.h.

62 { return m_useEX21; }

References m_useEX21.

Referenced by L1MuBMExtrapolationUnit::run().

◆ setDebugLevel()

static void L1MuBMTFConfig::setDebugLevel ( int  level)
inlinestatic

Definition at line 55 of file L1MuBMTFConfig.h.

55 { m_dbgLevel = level; }

References personalPlayback::level, and m_dbgLevel.

◆ setDefaults()

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

Definition at line 55 of file L1MuBMTFConfig.cc.

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

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

◆ setDefaultsES()

void L1MuBMTFConfig::setDefaultsES ( const L1TMuonBarrelParams bmParams)

Definition at line 84 of file L1MuBMTFConfig.cc.

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

References gather_cfg::cout, Debug, 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(), and L1TMuonBarrelParamsAllPublic::get_PT_Assignment_nbits_PhiB().

Referenced by L1MuBMTrackFinder::run().

Member Data Documentation

◆ m_BMDigiInputTag

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

Definition at line 77 of file L1MuBMTFConfig.h.

Referenced by getBMDigiInputTag().

◆ m_BMThetaDigiInputTag

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

Definition at line 78 of file L1MuBMTFConfig.h.

Referenced by getBMThetaDigiInputTag().

◆ m_BxMax

int L1MuBMTFConfig::m_BxMax = 7
staticprivate

Definition at line 84 of file L1MuBMTFConfig.h.

Referenced by getBxMax().

◆ m_BxMin

int L1MuBMTFConfig::m_BxMin = -9
staticprivate

Definition at line 83 of file L1MuBMTFConfig.h.

Referenced by getBxMin().

◆ m_dbgLevel

int L1MuBMTFConfig::m_dbgLevel = -1
staticprivate

Definition at line 81 of file L1MuBMTFConfig.h.

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

◆ m_debug

bool L1MuBMTFConfig::m_debug = false
staticprivate

Definition at line 80 of file L1MuBMTFConfig.h.

Referenced by Debug().

◆ m_etaTF

bool L1MuBMTFConfig::m_etaTF = true
staticprivate

Definition at line 92 of file L1MuBMTFConfig.h.

Referenced by getEtaTF().

◆ m_extTSFilter

int L1MuBMTFConfig::m_extTSFilter = 1
staticprivate

Definition at line 86 of file L1MuBMTFConfig.h.

Referenced by getExtTSFilter().

◆ m_NbitsExtPhi

int L1MuBMTFConfig::m_NbitsExtPhi = 8
staticprivate

Definition at line 97 of file L1MuBMTFConfig.h.

Referenced by getNbitsExtPhi().

◆ m_NbitsExtPhib

int L1MuBMTFConfig::m_NbitsExtPhib = 8
staticprivate

Definition at line 98 of file L1MuBMTFConfig.h.

Referenced by getNbitsExtPhib().

◆ m_NbitsPhiPhi

int L1MuBMTFConfig::m_NbitsPhiPhi = 10
staticprivate

Definition at line 101 of file L1MuBMTFConfig.h.

Referenced by getNbitsPhiPhi().

◆ m_NbitsPhiPhib

int L1MuBMTFConfig::m_NbitsPhiPhib = 10
staticprivate

Definition at line 102 of file L1MuBMTFConfig.h.

Referenced by getNbitsPhiPhib().

◆ m_NbitsPtaPhi

int L1MuBMTFConfig::m_NbitsPtaPhi = 12
staticprivate

Definition at line 99 of file L1MuBMTFConfig.h.

Referenced by getNbitsPtaPhi().

◆ m_NbitsPtaPhib

int L1MuBMTFConfig::m_NbitsPtaPhib = 10
staticprivate

Definition at line 100 of file L1MuBMTFConfig.h.

Referenced by getNbitsPtaPhib().

◆ m_openLUTs

bool L1MuBMTFConfig::m_openLUTs = false
staticprivate

Definition at line 88 of file L1MuBMTFConfig.h.

Referenced by getopenLUTs().

◆ m_TSOutOfTimeFilter

bool L1MuBMTFConfig::m_TSOutOfTimeFilter = false
staticprivate

Definition at line 94 of file L1MuBMTFConfig.h.

Referenced by getTSOutOfTimeFilter().

◆ m_TSOutOfTimeWindow

int L1MuBMTFConfig::m_TSOutOfTimeWindow = 1
staticprivate

Definition at line 95 of file L1MuBMTFConfig.h.

Referenced by getTSOutOfTimeWindow().

◆ m_useEX21

bool L1MuBMTFConfig::m_useEX21 = false
staticprivate

Definition at line 90 of file L1MuBMTFConfig.h.

Referenced by getUseEX21().

personalPlayback.level
level
Definition: personalPlayback.py:22
L1TMuonBarrelParamsAllPublic::get_PHI_Assignment_nbits_PhiB
int get_PHI_Assignment_nbits_PhiB() const
Definition: L1TMuonBarrelParamsAllPublic.h:61
L1TMuonBarrelParamsAllPublic::get_PHI_Assignment_nbits_Phi
int get_PHI_Assignment_nbits_Phi() const
Definition: L1TMuonBarrelParamsAllPublic.h:60
L1MuBMTFConfig::m_BMThetaDigiInputTag
static edm::InputTag m_BMThetaDigiInputTag
Definition: L1MuBMTFConfig.h:78
L1MuBMTFConfig::m_NbitsPtaPhi
static int m_NbitsPtaPhi
Definition: L1MuBMTFConfig.h:99
L1MuBMTFConfig::m_NbitsPhiPhi
static int m_NbitsPhiPhi
Definition: L1MuBMTFConfig.h:101
gather_cfg.cout
cout
Definition: gather_cfg.py:144
L1MuBMTFConfig::m_TSOutOfTimeFilter
static bool m_TSOutOfTimeFilter
Definition: L1MuBMTFConfig.h:94
L1MuBMTFConfig::m_NbitsPhiPhib
static int m_NbitsPhiPhib
Definition: L1MuBMTFConfig.h:102
L1MuBMTFConfig::m_BxMin
static int m_BxMin
Definition: L1MuBMTFConfig.h:83
L1TMuonBarrelParamsAllPublic::get_Open_LUTs
bool get_Open_LUTs() const
Definition: L1TMuonBarrelParamsAllPublic.h:70
L1MuBMTFConfig::m_extTSFilter
static int m_extTSFilter
Definition: L1MuBMTFConfig.h:86
L1TMuonBarrelParamsAllPublic::get_Extrapolation_nbits_Phi
int get_Extrapolation_nbits_Phi() const
Definition: L1TMuonBarrelParamsAllPublic.h:62
L1MuBMTFConfig::m_NbitsPtaPhib
static int m_NbitsPtaPhib
Definition: L1MuBMTFConfig.h:100
L1MuBMTFConfig::m_NbitsExtPhib
static int m_NbitsExtPhib
Definition: L1MuBMTFConfig.h:98
L1TMuonBarrelParamsAllPublic::get_BX_max
int get_BX_max() const
Definition: L1TMuonBarrelParamsAllPublic.h:65
L1MuBMTFConfig::m_useEX21
static bool m_useEX21
Definition: L1MuBMTFConfig.h:90
L1TMuonBarrelParamsAllPublic::get_Extrapolation_21
bool get_Extrapolation_21() const
Definition: L1TMuonBarrelParamsAllPublic.h:72
L1TMuonBarrelParamsAllPublic::get_OutOfTime_Filter
bool get_OutOfTime_Filter() const
Definition: L1TMuonBarrelParamsAllPublic.h:69
L1TMuonBarrelParamsAllPublic::get_EtaTrackFinder
bool get_EtaTrackFinder() const
Definition: L1TMuonBarrelParamsAllPublic.h:71
L1MuBMTFConfig::m_BxMax
static int m_BxMax
Definition: L1MuBMTFConfig.h:84
L1TMuonBarrelParamsAllPublic::get_Extrapolation_Filter
int get_Extrapolation_Filter() const
Definition: L1TMuonBarrelParamsAllPublic.h:66
L1MuBMTFConfig::Debug
static bool Debug()
Definition: L1MuBMTFConfig.h:52
L1MuBMTFConfig::m_dbgLevel
static int m_dbgLevel
Definition: L1MuBMTFConfig.h:81
L1MuBMTFConfig::m_NbitsExtPhi
static int m_NbitsExtPhi
Definition: L1MuBMTFConfig.h:97
L1TMuonBarrelParamsAllPublic::get_PT_Assignment_nbits_PhiB
int get_PT_Assignment_nbits_PhiB() const
Definition: L1TMuonBarrelParamsAllPublic.h:59
L1TMuonBarrelParamsAllPublic::get_PT_Assignment_nbits_Phi
int get_PT_Assignment_nbits_Phi() const
Definition: L1TMuonBarrelParamsAllPublic.h:58
L1MuBMTFConfig::m_etaTF
static bool m_etaTF
Definition: L1MuBMTFConfig.h:92
L1MuBMTFConfig::m_openLUTs
static bool m_openLUTs
Definition: L1MuBMTFConfig.h:88
L1MuBMTFConfig::m_TSOutOfTimeWindow
static int m_TSOutOfTimeWindow
Definition: L1MuBMTFConfig.h:95
L1TMuonBarrelParamsAllPublic
Definition: L1TMuonBarrelParamsAllPublic.h:8
L1TMuonBarrelParamsAllPublic::get_BX_min
int get_BX_min() const
Definition: L1TMuonBarrelParamsAllPublic.h:64
L1TMuonBarrelParamsAllPublic::get_Extrapolation_nbits_PhiB
int get_Extrapolation_nbits_PhiB() const
Definition: L1TMuonBarrelParamsAllPublic.h:63
L1MuBMTFConfig::m_debug
static bool m_debug
Definition: L1MuBMTFConfig.h:80
edm::InputTag
Definition: InputTag.h:15
L1TMuonBarrelParamsAllPublic::get_OutOfTime_Filter_Window
int get_OutOfTime_Filter_Window() const
Definition: L1TMuonBarrelParamsAllPublic.h:67
L1MuBMTFConfig::setDefaults
void setDefaults(edm::ParameterSet const &)
Definition: L1MuBMTFConfig.cc:55
L1MuBMTFConfig::m_BMDigiInputTag
static edm::InputTag m_BMDigiInputTag
Definition: L1MuBMTFConfig.h:77