CMS 3D CMS Logo

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

#include <L1MuDTTFConfig.h>

Public Member Functions

int getBxMax () const
 
int getBxMin () const
 
edm::InputTag getCSCTrSInputTag () const
 
edm::InputTag getDTDigiInputTag () const
 
bool getEtaCanc () 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
 
 L1MuDTTFConfig (const edm::ParameterSet &ps)
 constructor More...
 
bool overlap () const
 
virtual ~L1MuDTTFConfig ()
 destructor More...
 

Static Public Member Functions

static bool Debug ()
 
static bool Debug (int level)
 
static int getBxMaxGlobally ()
 
static int getBxMinGlobally ()
 
static int getDebugLevel ()
 
static void setDebugLevel (int level)
 

Private Member Functions

void setDefaults ()
 

Private Attributes

int m_BxMax
 
int m_BxMin
 
edm::InputTag m_CSCTrSInputTag
 
edm::InputTag m_DTDigiInputTag
 
bool m_etacanc
 
bool m_etaTF
 
int m_extTSFilter
 
int m_NbitsExtPhi
 
int m_NbitsExtPhib
 
int m_NbitsPhiPhi
 
int m_NbitsPhiPhib
 
int m_NbitsPtaPhi
 
int m_NbitsPtaPhib
 
bool m_openLUTs
 
bool m_overlap
 
const edm::ParameterSetm_ps
 
bool m_TSOutOfTimeFilter
 
int m_TSOutOfTimeWindow
 
bool m_useEX21
 

Static Private Attributes

static std::atomic< int > m_dbgLevel {-1}
 
static std::atomic< bool > m_debug {false}
 
static std::atomic< int > s_BxMax {-7}
 
static std::atomic< int > s_BxMin {-9}
 

Detailed Description

Configuration parameters for L1MuDTTrackFinder

N. Neumeister CERN EP

Definition at line 38 of file L1MuDTTFConfig.h.

Constructor & Destructor Documentation

L1MuDTTFConfig::L1MuDTTFConfig ( const edm::ParameterSet ps)

constructor

Definition at line 42 of file L1MuDTTFConfig.cc.

42  {
43 
44  m_ps = &ps;
45  setDefaults();
46 
47 }
const edm::ParameterSet * m_ps
L1MuDTTFConfig::~L1MuDTTFConfig ( )
virtual

destructor

Definition at line 53 of file L1MuDTTFConfig.cc.

53 {}

Member Function Documentation

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

Definition at line 52 of file L1MuDTTFConfig.h.

References m_dbgLevel, and m_debug.

52 { return (m_debug && m_dbgLevel >= level); }
static std::atomic< bool > m_debug
static std::atomic< int > m_dbgLevel
int L1MuDTTFConfig::getBxMax ( ) const
inline

Definition at line 60 of file L1MuDTTFConfig.h.

References m_BxMax.

60 { return m_BxMax; }
static int L1MuDTTFConfig::getBxMaxGlobally ( )
inlinestatic

Definition at line 57 of file L1MuDTTFConfig.h.

References s_BxMax.

Referenced by CSCTFDTReceiver::process().

57 { return s_BxMax; }
static std::atomic< int > s_BxMax
int L1MuDTTFConfig::getBxMin ( ) const
inline

Definition at line 59 of file L1MuDTTFConfig.h.

References m_BxMin.

59 { return m_BxMin; }
static int L1MuDTTFConfig::getBxMinGlobally ( )
inlinestatic

Definition at line 56 of file L1MuDTTFConfig.h.

References s_BxMin.

Referenced by CSCTFDTReceiver::process().

56 { return s_BxMin; }
static std::atomic< int > s_BxMin
edm::InputTag L1MuDTTFConfig::getCSCTrSInputTag ( ) const
inline

Definition at line 49 of file L1MuDTTFConfig.h.

References m_CSCTrSInputTag.

Referenced by L1MuDTSectorReceiver::receiveCSCData().

49 { return m_CSCTrSInputTag; }
edm::InputTag m_CSCTrSInputTag
static int L1MuDTTFConfig::getDebugLevel ( )
inlinestatic

Definition at line 55 of file L1MuDTTFConfig.h.

References m_dbgLevel.

55 { return m_dbgLevel; }
static std::atomic< int > m_dbgLevel
edm::InputTag L1MuDTTFConfig::getDTDigiInputTag ( ) const
inline

Definition at line 48 of file L1MuDTTFConfig.h.

References m_DTDigiInputTag.

48 { return m_DTDigiInputTag; }
edm::InputTag m_DTDigiInputTag
bool L1MuDTTFConfig::getEtaCanc ( ) const
inline

Definition at line 66 of file L1MuDTTFConfig.h.

References m_etacanc.

Referenced by L1MuDTSectorReceiver::receiveCSCData().

66 { return m_etacanc; }
bool L1MuDTTFConfig::getEtaTF ( ) const
inline

Definition at line 65 of file L1MuDTTFConfig.h.

References m_etaTF.

Referenced by L1MuDTEtaProcessor::run().

65 { return m_etaTF; }
int L1MuDTTFConfig::getExtTSFilter ( ) const
inline

Definition at line 62 of file L1MuDTTFConfig.h.

References m_extTSFilter.

62 { return m_extTSFilter; }
int L1MuDTTFConfig::getNbitsExtPhi ( ) const
inline

Definition at line 69 of file L1MuDTTFConfig.h.

References m_NbitsExtPhi.

Referenced by L1MuDTSectorReceiver::receiveDTBXData().

69 { return m_NbitsExtPhi; }
int L1MuDTTFConfig::getNbitsExtPhib ( ) const
inline

Definition at line 70 of file L1MuDTTFConfig.h.

References m_NbitsExtPhib.

70 { return m_NbitsExtPhib; }
int L1MuDTTFConfig::getNbitsPhiPhi ( ) const
inline

Definition at line 73 of file L1MuDTTFConfig.h.

References m_NbitsPhiPhi.

Referenced by L1MuDTAssignmentUnit::PhiAU().

73 { return m_NbitsPhiPhi; }
int L1MuDTTFConfig::getNbitsPhiPhib ( ) const
inline

Definition at line 74 of file L1MuDTTFConfig.h.

References m_NbitsPhiPhib, and setDefaults().

Referenced by L1MuDTAssignmentUnit::PhiAU().

74 { return m_NbitsPhiPhib; }
int L1MuDTTFConfig::getNbitsPtaPhi ( ) const
inline

Definition at line 71 of file L1MuDTTFConfig.h.

References m_NbitsPtaPhi.

Referenced by L1MuDTAssignmentUnit::setPrecision().

71 { return m_NbitsPtaPhi; }
int L1MuDTTFConfig::getNbitsPtaPhib ( ) const
inline

Definition at line 72 of file L1MuDTTFConfig.h.

References m_NbitsPtaPhib.

Referenced by L1MuDTAssignmentUnit::setPrecision().

72 { return m_NbitsPtaPhib; }
bool L1MuDTTFConfig::getopenLUTs ( ) const
inline

Definition at line 63 of file L1MuDTTFConfig.h.

References m_openLUTs.

Referenced by L1MuDTEUX::run().

63 { return m_openLUTs; }
bool L1MuDTTFConfig::getTSOutOfTimeFilter ( ) const
inline

Definition at line 67 of file L1MuDTTFConfig.h.

References m_TSOutOfTimeFilter.

Referenced by L1MuDTSectorReceiver::receiveDTBXData().

67 { return m_TSOutOfTimeFilter; }
int L1MuDTTFConfig::getTSOutOfTimeWindow ( ) const
inline

Definition at line 68 of file L1MuDTTFConfig.h.

References m_TSOutOfTimeWindow.

Referenced by L1MuDTSectorReceiver::receiveDTBXData().

68 { return m_TSOutOfTimeWindow; }
bool L1MuDTTFConfig::getUseEX21 ( ) const
inline

Definition at line 64 of file L1MuDTTFConfig.h.

References m_useEX21.

Referenced by L1MuDTExtrapolationUnit::run().

64 { return m_useEX21; }
bool L1MuDTTFConfig::overlap ( ) const
inline

Definition at line 61 of file L1MuDTTFConfig.h.

References m_overlap.

Referenced by L1MuDTSectorReceiver::run().

61 { return m_overlap; }
static void L1MuDTTFConfig::setDebugLevel ( int  level)
inlinestatic

Definition at line 54 of file L1MuDTTFConfig.h.

References hcalDigis_cfi::level, and m_dbgLevel.

54 { m_dbgLevel = level; }
static std::atomic< int > m_dbgLevel
void L1MuDTTFConfig::setDefaults ( )
private

Definition at line 60 of file L1MuDTTFConfig.cc.

References gather_cfg::cout, Debug, m_dbgLevel, m_debug, s_BxMax, and s_BxMin.

Referenced by getNbitsPhiPhib().

60  {
61 
62  m_DTDigiInputTag = m_ps->getParameter<edm::InputTag>("DTDigi_Source");
63  m_CSCTrSInputTag = m_ps->getParameter<edm::InputTag>("CSCStub_Source");
64 
65  m_debug = true;
66  m_dbgLevel = m_ps->getUntrackedParameter<int>("Debug",0);
67 
68  m_overlap = m_ps->getUntrackedParameter<bool>("Overlap",true);
69 
70  // set min and max bunch crossing
71  m_BxMin = m_ps->getUntrackedParameter<int>("BX_min",-9);
72  m_BxMax = m_ps->getUntrackedParameter<int>("BX_max", 7);
73  s_BxMin = m_BxMin;
74  s_BxMax = m_BxMax;
75 
76  // set Filter for Extrapolator
77  m_extTSFilter = m_ps->getUntrackedParameter<int>("Extrapolation_Filter",1);
78 
79  // set switch for open LUTs usage
80  m_openLUTs = m_ps->getUntrackedParameter<bool>("Open_LUTs",false);
81 
82  // set switch for EX21 usage
83  m_useEX21 = m_ps->getUntrackedParameter<bool>("Extrapolation_21",false);
84 
85  // set switch for eta track finder usage
86  m_etaTF = m_ps->getUntrackedParameter<bool>("EtaTrackFinder",true);
87 
88  // set switch for etaFlag cancellation of CSC segments
89  m_etacanc = m_ps->getUntrackedParameter<bool>("CSC_Eta_Cancellation",false);
90 
91  // set Filter for Out-of-time Track Segments
92  m_TSOutOfTimeFilter = m_ps->getUntrackedParameter<bool>("OutOfTime_Filter",false);
93  m_TSOutOfTimeWindow = m_ps->getUntrackedParameter<int>("OutOfTime_Filter_Window",1);
94 
95  // set precision for extrapolation
96  m_NbitsExtPhi = m_ps->getUntrackedParameter<int>("Extrapolation_nbits_Phi", 8);
97  m_NbitsExtPhib = m_ps->getUntrackedParameter<int>("Extrapolation_nbits_PhiB",8);
98 
99  // set precision for pt-assignment
100  m_NbitsPtaPhi = m_ps->getUntrackedParameter<int>("PT_Assignment_nbits_Phi", 12);
101  m_NbitsPtaPhib = m_ps->getUntrackedParameter<int>("PT_Assignment_nbits_PhiB",10);
102 
103  // set precision for phi-assignment look-up tables
104  m_NbitsPhiPhi = m_ps->getUntrackedParameter<int>("PHI_Assignment_nbits_Phi", 10);
105  m_NbitsPhiPhib = m_ps->getUntrackedParameter<int>("PHI_Assignment_nbits_PhiB",10);
106 
107  if ( Debug(1) ) cout << endl;
108  if ( Debug(1) ) cout << "*******************************************" << endl;
109  if ( Debug(1) ) cout << "**** L1 barrel Track Finder settings : ****" << endl;
110  if ( Debug(1) ) cout << "*******************************************" << endl;
111  if ( Debug(1) ) cout << endl;
112 
113  if ( Debug(1) ) cout << "L1 barrel Track Finder : DT Digi Source: " << m_DTDigiInputTag << endl;
114  if ( Debug(1) ) cout << "L1 barrel Track Finder : CSC Stub Source: " << m_CSCTrSInputTag << endl;
115  if ( Debug(1) ) cout << endl;
116 
117  if ( Debug(1) ) cout << "L1 barrel Track Finder : debug level: " << m_dbgLevel << endl;
118 
119  if ( Debug(1) && m_overlap ) {
120  cout << "L1 barrel Track Finder : barrel-endcap overlap region : on" << endl;
121  }
122  if ( Debug(1) && !m_overlap ) {
123  cout << "L1 barrel Track Finder : barrel-endcap overlap region : off" << endl;
124  }
125 
126  if ( Debug(1) ) cout << "L1 barrel Track Finder : minimal bunch-crossing : " << m_BxMin << endl;
127  if ( Debug(1) ) cout << "L1 barrel Track Finder : maximal bunch-crossing : " << m_BxMax << endl;
128 
129  if ( Debug(1) ) cout << "L1 barrel Track Finder : Extrapolation Filter : " << m_extTSFilter << endl;
130 
131  if ( Debug(1) && m_openLUTs) {
132  cout << "L1 barrel Track Finder : use open LUTs : on" << endl;
133  }
134  if ( Debug(1) && !m_openLUTs) {
135  cout << "L1 barrel Track Finder : use open LUTs : off" << endl;
136  }
137 
138  if ( Debug(1) && m_useEX21 ) {
139  cout << "L1 barrel Track Finder : use EX21 extrapolations : on" << endl;
140  }
141  if ( Debug(1) && !m_useEX21 ) {
142  cout << "L1 barrel Track Finder : use EX21 extrapolations : off" << endl;
143  }
144 
145  if ( Debug(1) && m_etaTF ) {
146  cout << "L1 barrel Track Finder : Eta Track Finder : on" << endl;
147  }
148  if ( Debug(1) && !m_etaTF ) {
149  cout << "L1 barrel Track Finder : Eta Track Finder : off" << endl;
150  }
151 
152  if ( Debug(1) && m_etacanc ) {
153  cout << "L1 barrel Track Finder : CSC etaFlag cancellation : on" << endl;
154  }
155  if ( Debug(1) && !m_etacanc ) {
156  cout << "L1 barrel Track Finder : CSC etaFlag cancellation : off" << endl;
157  }
158 
159  if ( Debug(1) && m_TSOutOfTimeFilter ) {
160  cout << "L1 barrel Track Finder : out-of-time TS filter : on" << endl;
161  cout << "L1 barrel Track Finder : out-of-time TS filter window : " << m_TSOutOfTimeWindow << endl;
162  }
163  if ( Debug(1) && !m_TSOutOfTimeFilter ) {
164  cout << "L1 barrel Track Finder : out-of-time TS filter : off" << endl;
165  }
166 
167  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phi (extrapolation) : " << m_NbitsExtPhi << endl;
168  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phib (extrapolation) : " << m_NbitsExtPhib << endl;
169  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phi (pt-assignment) : " << m_NbitsPtaPhi << endl;
170  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phib (pt-assignment) : " << m_NbitsPtaPhib << endl;
171  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phi (phi-assignment) : " << m_NbitsPhiPhi << endl;
172  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phib (phi-assignment) : " << m_NbitsPhiPhib << endl;
173 
174 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag m_CSCTrSInputTag
static std::atomic< int > s_BxMax
const edm::ParameterSet * m_ps
static std::atomic< bool > m_debug
static bool Debug()
edm::InputTag m_DTDigiInputTag
static std::atomic< int > m_dbgLevel
static std::atomic< int > s_BxMin

Member Data Documentation

int L1MuDTTFConfig::m_BxMax
private

Definition at line 95 of file L1MuDTTFConfig.h.

Referenced by getBxMax().

int L1MuDTTFConfig::m_BxMin
private

Definition at line 94 of file L1MuDTTFConfig.h.

Referenced by getBxMin().

edm::InputTag L1MuDTTFConfig::m_CSCTrSInputTag
private

Definition at line 85 of file L1MuDTTFConfig.h.

Referenced by getCSCTrSInputTag().

std::atomic< int > L1MuDTTFConfig::m_dbgLevel {-1}
staticprivate

Definition at line 88 of file L1MuDTTFConfig.h.

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

std::atomic< bool > L1MuDTTFConfig::m_debug {false}
staticprivate

Definition at line 87 of file L1MuDTTFConfig.h.

Referenced by Debug(), and setDefaults().

edm::InputTag L1MuDTTFConfig::m_DTDigiInputTag
private

Definition at line 84 of file L1MuDTTFConfig.h.

Referenced by getDTDigiInputTag().

bool L1MuDTTFConfig::m_etacanc
private

Definition at line 105 of file L1MuDTTFConfig.h.

Referenced by getEtaCanc().

bool L1MuDTTFConfig::m_etaTF
private

Definition at line 103 of file L1MuDTTFConfig.h.

Referenced by getEtaTF().

int L1MuDTTFConfig::m_extTSFilter
private

Definition at line 97 of file L1MuDTTFConfig.h.

Referenced by getExtTSFilter().

int L1MuDTTFConfig::m_NbitsExtPhi
private

Definition at line 110 of file L1MuDTTFConfig.h.

Referenced by getNbitsExtPhi().

int L1MuDTTFConfig::m_NbitsExtPhib
private

Definition at line 111 of file L1MuDTTFConfig.h.

Referenced by getNbitsExtPhib().

int L1MuDTTFConfig::m_NbitsPhiPhi
private

Definition at line 114 of file L1MuDTTFConfig.h.

Referenced by getNbitsPhiPhi().

int L1MuDTTFConfig::m_NbitsPhiPhib
private

Definition at line 115 of file L1MuDTTFConfig.h.

Referenced by getNbitsPhiPhib().

int L1MuDTTFConfig::m_NbitsPtaPhi
private

Definition at line 112 of file L1MuDTTFConfig.h.

Referenced by getNbitsPtaPhi().

int L1MuDTTFConfig::m_NbitsPtaPhib
private

Definition at line 113 of file L1MuDTTFConfig.h.

Referenced by getNbitsPtaPhib().

bool L1MuDTTFConfig::m_openLUTs
private

Definition at line 99 of file L1MuDTTFConfig.h.

Referenced by getopenLUTs().

bool L1MuDTTFConfig::m_overlap
private

Definition at line 92 of file L1MuDTTFConfig.h.

Referenced by overlap().

const edm::ParameterSet* L1MuDTTFConfig::m_ps
private

Definition at line 82 of file L1MuDTTFConfig.h.

bool L1MuDTTFConfig::m_TSOutOfTimeFilter
private

Definition at line 107 of file L1MuDTTFConfig.h.

Referenced by getTSOutOfTimeFilter().

int L1MuDTTFConfig::m_TSOutOfTimeWindow
private

Definition at line 108 of file L1MuDTTFConfig.h.

Referenced by getTSOutOfTimeWindow().

bool L1MuDTTFConfig::m_useEX21
private

Definition at line 101 of file L1MuDTTFConfig.h.

Referenced by getUseEX21().

std::atomic< int > L1MuDTTFConfig::s_BxMax {-7}
staticprivate

Definition at line 90 of file L1MuDTTFConfig.h.

Referenced by getBxMaxGlobally(), and setDefaults().

std::atomic< int > L1MuDTTFConfig::s_BxMin {-9}
staticprivate

Definition at line 89 of file L1MuDTTFConfig.h.

Referenced by getBxMinGlobally(), and setDefaults().