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); }
void setDefaults(edm::ParameterSet const &)

◆ ~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.

References personalPlayback::level, m_dbgLevel, and m_debug.

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

◆ getBMDigiInputTag()

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

Definition at line 49 of file L1MuBMTFConfig.h.

References m_BMDigiInputTag.

Referenced by L1MuBMTrackFinder::L1MuBMTrackFinder().

49 { return m_BMDigiInputTag; }
static edm::InputTag m_BMDigiInputTag

◆ getBMThetaDigiInputTag()

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

Definition at line 50 of file L1MuBMTFConfig.h.

References m_BMThetaDigiInputTag.

50 { return m_BMThetaDigiInputTag; }
static edm::InputTag m_BMThetaDigiInputTag

◆ getBxMax()

static int L1MuBMTFConfig::getBxMax ( )
inlinestatic

Definition at line 59 of file L1MuBMTFConfig.h.

References m_BxMax.

Referenced by L1MuBMTrackFinder::run().

59 { return m_BxMax; }
static int m_BxMax

◆ getBxMin()

static int L1MuBMTFConfig::getBxMin ( )
inlinestatic

Definition at line 58 of file L1MuBMTFConfig.h.

References m_BxMin.

Referenced by L1MuBMTrackFinder::run().

58 { return m_BxMin; }
static int m_BxMin

◆ getDebugLevel()

static int L1MuBMTFConfig::getDebugLevel ( )
inlinestatic

Definition at line 56 of file L1MuBMTFConfig.h.

References m_dbgLevel.

56 { return m_dbgLevel; }
static int m_dbgLevel

◆ getEtaTF()

static bool L1MuBMTFConfig::getEtaTF ( )
inlinestatic

Definition at line 63 of file L1MuBMTFConfig.h.

References m_etaTF.

Referenced by L1MuBMEtaProcessor::run().

63 { return m_etaTF; }
static bool m_etaTF

◆ getExtTSFilter()

static int L1MuBMTFConfig::getExtTSFilter ( )
inlinestatic

Definition at line 60 of file L1MuBMTFConfig.h.

References m_extTSFilter.

60 { return m_extTSFilter; }
static int m_extTSFilter

◆ getNbitsExtPhi()

static int L1MuBMTFConfig::getNbitsExtPhi ( )
inlinestatic

Definition at line 66 of file L1MuBMTFConfig.h.

References m_NbitsExtPhi.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

66 { return m_NbitsExtPhi; }
static int m_NbitsExtPhi

◆ getNbitsExtPhib()

static int L1MuBMTFConfig::getNbitsExtPhib ( )
inlinestatic

Definition at line 67 of file L1MuBMTFConfig.h.

References m_NbitsExtPhib.

67 { return m_NbitsExtPhib; }
static int m_NbitsExtPhib

◆ getNbitsPhiPhi()

static int L1MuBMTFConfig::getNbitsPhiPhi ( )
inlinestatic

Definition at line 70 of file L1MuBMTFConfig.h.

References m_NbitsPhiPhi.

Referenced by L1MuBMAssignmentUnit::PhiAU().

70 { return m_NbitsPhiPhi; }
static int m_NbitsPhiPhi

◆ getNbitsPhiPhib()

static int L1MuBMTFConfig::getNbitsPhiPhib ( )
inlinestatic

Definition at line 71 of file L1MuBMTFConfig.h.

References m_NbitsPhiPhib.

Referenced by L1MuBMAssignmentUnit::PhiAU().

71 { return m_NbitsPhiPhib; }
static int m_NbitsPhiPhib

◆ getNbitsPtaPhi()

static int L1MuBMTFConfig::getNbitsPtaPhi ( )
inlinestatic

Definition at line 68 of file L1MuBMTFConfig.h.

References m_NbitsPtaPhi.

Referenced by L1MuBMAssignmentUnit::setPrecision().

68 { return m_NbitsPtaPhi; }
static int m_NbitsPtaPhi

◆ getNbitsPtaPhib()

static int L1MuBMTFConfig::getNbitsPtaPhib ( )
inlinestatic

Definition at line 69 of file L1MuBMTFConfig.h.

References m_NbitsPtaPhib.

Referenced by L1MuBMAssignmentUnit::setPrecision().

69 { return m_NbitsPtaPhib; }
static int m_NbitsPtaPhib

◆ getopenLUTs()

static bool L1MuBMTFConfig::getopenLUTs ( )
inlinestatic

Definition at line 61 of file L1MuBMTFConfig.h.

References m_openLUTs.

Referenced by L1MuBMEUX::run().

61 { return m_openLUTs; }
static bool m_openLUTs

◆ getTSOutOfTimeFilter()

static bool L1MuBMTFConfig::getTSOutOfTimeFilter ( )
inlinestatic

Definition at line 64 of file L1MuBMTFConfig.h.

References m_TSOutOfTimeFilter.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

64 { return m_TSOutOfTimeFilter; }
static bool m_TSOutOfTimeFilter

◆ getTSOutOfTimeWindow()

static int L1MuBMTFConfig::getTSOutOfTimeWindow ( )
inlinestatic

Definition at line 65 of file L1MuBMTFConfig.h.

References m_TSOutOfTimeWindow.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

65 { return m_TSOutOfTimeWindow; }
static int m_TSOutOfTimeWindow

◆ getUseEX21()

static bool L1MuBMTFConfig::getUseEX21 ( )
inlinestatic

Definition at line 62 of file L1MuBMTFConfig.h.

References m_useEX21.

Referenced by L1MuBMExtrapolationUnit::run().

62 { return m_useEX21; }
static bool m_useEX21

◆ setDebugLevel()

static void L1MuBMTFConfig::setDebugLevel ( int  level)
inlinestatic

Definition at line 55 of file L1MuBMTFConfig.h.

References personalPlayback::level, and m_dbgLevel.

◆ setDefaults()

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

Definition at line 55 of file L1MuBMTFConfig.cc.

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

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 }
static edm::InputTag m_BMDigiInputTag
static edm::InputTag m_BMThetaDigiInputTag
static bool Debug()
static int m_dbgLevel
static bool m_debug

◆ setDefaultsES()

void L1MuBMTFConfig::setDefaultsES ( const L1TMuonBarrelParams bmParams)

Definition at line 84 of file L1MuBMTFConfig.cc.

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().

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 }
static int m_NbitsPtaPhib
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
static bool m_etaTF
static int m_extTSFilter
static int m_NbitsExtPhi
static bool m_openLUTs
static bool Debug()
static bool m_useEX21
static int m_NbitsExtPhib

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().