CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
< L1TMuonBarrelParams
bmtfParamsHandle
 
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 40 of file L1MuBMTFConfig.h.

Constructor & Destructor Documentation

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

constructor

Definition at line 46 of file L1MuBMTFConfig.cc.

References setDefaults::setDefaults().

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

References m_dbgLevel, and m_debug.

56 { return (m_debug && m_dbgLevel >= level); }
tuple level
Definition: testEve_cfg.py:34
static int m_dbgLevel
static bool m_debug
static edm::InputTag L1MuBMTFConfig::getBMDigiInputTag ( )
inlinestatic

Definition at line 52 of file L1MuBMTFConfig.h.

References m_BMDigiInputTag.

Referenced by L1MuBMTrackFinder::L1MuBMTrackFinder().

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

Definition at line 53 of file L1MuBMTFConfig.h.

References m_BMThetaDigiInputTag.

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

Definition at line 62 of file L1MuBMTFConfig.h.

References m_BxMax.

Referenced by L1MuBMTrackFinder::run().

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

Definition at line 61 of file L1MuBMTFConfig.h.

References m_BxMin.

Referenced by L1MuBMTrackFinder::run().

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

Definition at line 59 of file L1MuBMTFConfig.h.

References m_dbgLevel.

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

Definition at line 66 of file L1MuBMTFConfig.h.

References m_etaTF.

Referenced by L1MuBMEtaProcessor::run().

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

Definition at line 63 of file L1MuBMTFConfig.h.

References m_extTSFilter.

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

Definition at line 69 of file L1MuBMTFConfig.h.

References m_NbitsExtPhi.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

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

Definition at line 70 of file L1MuBMTFConfig.h.

References m_NbitsExtPhib.

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

Definition at line 73 of file L1MuBMTFConfig.h.

References m_NbitsPhiPhi.

Referenced by L1MuBMAssignmentUnit::PhiAU().

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

Definition at line 74 of file L1MuBMTFConfig.h.

References m_NbitsPhiPhib.

Referenced by L1MuBMAssignmentUnit::PhiAU().

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

Definition at line 71 of file L1MuBMTFConfig.h.

References m_NbitsPtaPhi.

Referenced by L1MuBMAssignmentUnit::setPrecision().

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

Definition at line 72 of file L1MuBMTFConfig.h.

References m_NbitsPtaPhib.

Referenced by L1MuBMAssignmentUnit::setPrecision().

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

Definition at line 64 of file L1MuBMTFConfig.h.

References m_openLUTs.

Referenced by L1MuBMEUX::run().

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

Definition at line 67 of file L1MuBMTFConfig.h.

References m_TSOutOfTimeFilter.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

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

Definition at line 68 of file L1MuBMTFConfig.h.

References m_TSOutOfTimeWindow.

Referenced by L1MuBMSectorReceiver::receiveBBMXData().

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

Definition at line 65 of file L1MuBMTFConfig.h.

References m_useEX21.

Referenced by L1MuBMExtrapolationUnit::run().

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

Definition at line 58 of file L1MuBMTFConfig.h.

References testEve_cfg::level, and m_dbgLevel.

58 { m_dbgLevel = level; }
tuple level
Definition: testEve_cfg.py:34
static int m_dbgLevel
void L1MuBMTFConfig::setDefaults ( )
private

Definition at line 65 of file L1MuBMTFConfig.cc.

References gather_cfg::cout, and Debug.

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
tuple cout
Definition: gather_cfg.py:145
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::EventSetupRecord::get(), 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().

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());
96 
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
int get_PT_Assignment_nbits_PhiB() const
static int m_NbitsPhiPhi
static int m_NbitsPtaPhi
static int m_BxMax
int get_Extrapolation_nbits_Phi() const
bool get_OutOfTime_Filter() const
static int m_NbitsPhiPhib
static int m_BxMin
static bool m_TSOutOfTimeFilter
int get_PT_Assignment_nbits_Phi() const
static int m_TSOutOfTimeWindow
bool get_EtaTrackFinder() const
static bool m_etaTF
static int m_extTSFilter
int get_Extrapolation_Filter() const
void get(HolderT &iHolder) const
bool get_Extrapolation_21() const
static int m_NbitsExtPhi
static bool m_openLUTs
int get_PHI_Assignment_nbits_PhiB() const
int get_OutOfTime_Filter_Window() const
int get_Extrapolation_nbits_PhiB() const
const T & get() const
Definition: EventSetup.h:56
int get_PHI_Assignment_nbits_Phi() const
T const * product() const
Definition: ESHandle.h:86
static bool Debug()
edm::ESHandle< L1TMuonBarrelParams > bmtfParamsHandle
static bool m_useEX21
static int m_NbitsExtPhib
tuple cout
Definition: gather_cfg.py:145

Member Data Documentation

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

Definition at line 80 of file L1MuBMTFConfig.h.

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

Definition at line 87 of file L1MuBMTFConfig.h.

Referenced by getBMDigiInputTag().

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

Definition at line 88 of file L1MuBMTFConfig.h.

Referenced by getBMThetaDigiInputTag().

int L1MuBMTFConfig::m_BxMax = 7
staticprivate

Definition at line 94 of file L1MuBMTFConfig.h.

Referenced by getBxMax().

int L1MuBMTFConfig::m_BxMin = -9
staticprivate

Definition at line 93 of file L1MuBMTFConfig.h.

Referenced by getBxMin().

int L1MuBMTFConfig::m_dbgLevel = -1
staticprivate

Definition at line 91 of file L1MuBMTFConfig.h.

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

bool L1MuBMTFConfig::m_debug = false
staticprivate

Definition at line 90 of file L1MuBMTFConfig.h.

Referenced by Debug().

const edm::EventSetup* L1MuBMTFConfig::m_es
private

Definition at line 85 of file L1MuBMTFConfig.h.

bool L1MuBMTFConfig::m_etaTF = true
staticprivate

Definition at line 102 of file L1MuBMTFConfig.h.

Referenced by getEtaTF().

int L1MuBMTFConfig::m_extTSFilter = 1
staticprivate

Definition at line 96 of file L1MuBMTFConfig.h.

Referenced by getExtTSFilter().

int L1MuBMTFConfig::m_NbitsExtPhi = 8
staticprivate

Definition at line 107 of file L1MuBMTFConfig.h.

Referenced by getNbitsExtPhi().

int L1MuBMTFConfig::m_NbitsExtPhib = 8
staticprivate

Definition at line 108 of file L1MuBMTFConfig.h.

Referenced by getNbitsExtPhib().

int L1MuBMTFConfig::m_NbitsPhiPhi = 10
staticprivate

Definition at line 111 of file L1MuBMTFConfig.h.

Referenced by getNbitsPhiPhi().

int L1MuBMTFConfig::m_NbitsPhiPhib = 10
staticprivate

Definition at line 112 of file L1MuBMTFConfig.h.

Referenced by getNbitsPhiPhib().

int L1MuBMTFConfig::m_NbitsPtaPhi = 12
staticprivate

Definition at line 109 of file L1MuBMTFConfig.h.

Referenced by getNbitsPtaPhi().

int L1MuBMTFConfig::m_NbitsPtaPhib = 10
staticprivate

Definition at line 110 of file L1MuBMTFConfig.h.

Referenced by getNbitsPtaPhib().

bool L1MuBMTFConfig::m_openLUTs = false
staticprivate

Definition at line 98 of file L1MuBMTFConfig.h.

Referenced by getopenLUTs().

const edm::ParameterSet* L1MuBMTFConfig::m_ps
private

Definition at line 84 of file L1MuBMTFConfig.h.

bool L1MuBMTFConfig::m_TSOutOfTimeFilter = false
staticprivate

Definition at line 104 of file L1MuBMTFConfig.h.

Referenced by getTSOutOfTimeFilter().

int L1MuBMTFConfig::m_TSOutOfTimeWindow = 1
staticprivate

Definition at line 105 of file L1MuBMTFConfig.h.

Referenced by getTSOutOfTimeWindow().

bool L1MuBMTFConfig::m_useEX21 = false
staticprivate

Definition at line 100 of file L1MuBMTFConfig.h.

Referenced by getUseEX21().