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 (const edm::ParameterSet &)
 

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
 
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::L1MuDTTFConfig ( const edm::ParameterSet ps)

constructor

Definition at line 42 of file L1MuDTTFConfig.cc.

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

◆ ~L1MuDTTFConfig()

L1MuDTTFConfig::~L1MuDTTFConfig ( )
virtual

destructor

Definition at line 47 of file L1MuDTTFConfig.cc.

47 {}

Member Function Documentation

◆ Debug() [1/2]

static bool L1MuDTTFConfig::Debug ( )
inlinestatic

◆ Debug() [2/2]

static bool L1MuDTTFConfig::Debug ( int  level)
inlinestatic

Definition at line 50 of file L1MuDTTFConfig.h.

References personalPlayback::level, m_dbgLevel, and m_debug.

50 { return (m_debug && m_dbgLevel >= level); }
static std::atomic< bool > m_debug
static std::atomic< int > m_dbgLevel

◆ getBxMax()

int L1MuDTTFConfig::getBxMax ( ) const
inline

Definition at line 58 of file L1MuDTTFConfig.h.

References m_BxMax.

58 { return m_BxMax; }

◆ getBxMaxGlobally()

static int L1MuDTTFConfig::getBxMaxGlobally ( )
inlinestatic

Definition at line 55 of file L1MuDTTFConfig.h.

References s_BxMax.

Referenced by CSCTFDTReceiver::process().

55 { return s_BxMax; }
static std::atomic< int > s_BxMax

◆ getBxMin()

int L1MuDTTFConfig::getBxMin ( ) const
inline

Definition at line 57 of file L1MuDTTFConfig.h.

References m_BxMin.

57 { return m_BxMin; }

◆ getBxMinGlobally()

static int L1MuDTTFConfig::getBxMinGlobally ( )
inlinestatic

Definition at line 54 of file L1MuDTTFConfig.h.

References s_BxMin.

Referenced by CSCTFDTReceiver::process().

54 { return s_BxMin; }
static std::atomic< int > s_BxMin

◆ getCSCTrSInputTag()

edm::InputTag L1MuDTTFConfig::getCSCTrSInputTag ( ) const
inline

Definition at line 47 of file L1MuDTTFConfig.h.

References m_CSCTrSInputTag.

Referenced by L1MuDTSectorReceiver::receiveCSCData().

47 { return m_CSCTrSInputTag; }
edm::InputTag m_CSCTrSInputTag

◆ getDebugLevel()

static int L1MuDTTFConfig::getDebugLevel ( )
inlinestatic

Definition at line 53 of file L1MuDTTFConfig.h.

References m_dbgLevel.

53 { return m_dbgLevel; }
static std::atomic< int > m_dbgLevel

◆ getDTDigiInputTag()

edm::InputTag L1MuDTTFConfig::getDTDigiInputTag ( ) const
inline

Definition at line 46 of file L1MuDTTFConfig.h.

References m_DTDigiInputTag.

46 { return m_DTDigiInputTag; }
edm::InputTag m_DTDigiInputTag

◆ getEtaCanc()

bool L1MuDTTFConfig::getEtaCanc ( ) const
inline

Definition at line 64 of file L1MuDTTFConfig.h.

References m_etacanc.

Referenced by L1MuDTSectorReceiver::receiveCSCData().

64 { return m_etacanc; }

◆ getEtaTF()

bool L1MuDTTFConfig::getEtaTF ( ) const
inline

Definition at line 63 of file L1MuDTTFConfig.h.

References m_etaTF.

Referenced by L1MuDTEtaProcessor::run().

63 { return m_etaTF; }

◆ getExtTSFilter()

int L1MuDTTFConfig::getExtTSFilter ( ) const
inline

Definition at line 60 of file L1MuDTTFConfig.h.

References m_extTSFilter.

60 { return m_extTSFilter; }

◆ getNbitsExtPhi()

int L1MuDTTFConfig::getNbitsExtPhi ( ) const
inline

Definition at line 67 of file L1MuDTTFConfig.h.

References m_NbitsExtPhi.

Referenced by L1MuDTSectorReceiver::receiveDTBXData().

67 { return m_NbitsExtPhi; }

◆ getNbitsExtPhib()

int L1MuDTTFConfig::getNbitsExtPhib ( ) const
inline

Definition at line 68 of file L1MuDTTFConfig.h.

References m_NbitsExtPhib.

68 { return m_NbitsExtPhib; }

◆ getNbitsPhiPhi()

int L1MuDTTFConfig::getNbitsPhiPhi ( ) const
inline

Definition at line 71 of file L1MuDTTFConfig.h.

References m_NbitsPhiPhi.

Referenced by L1MuDTAssignmentUnit::PhiAU().

71 { return m_NbitsPhiPhi; }

◆ getNbitsPhiPhib()

int L1MuDTTFConfig::getNbitsPhiPhib ( ) const
inline

Definition at line 72 of file L1MuDTTFConfig.h.

References m_NbitsPhiPhib.

Referenced by L1MuDTAssignmentUnit::PhiAU().

72 { return m_NbitsPhiPhib; }

◆ getNbitsPtaPhi()

int L1MuDTTFConfig::getNbitsPtaPhi ( ) const
inline

Definition at line 69 of file L1MuDTTFConfig.h.

References m_NbitsPtaPhi.

Referenced by L1MuDTAssignmentUnit::setPrecision().

69 { return m_NbitsPtaPhi; }

◆ getNbitsPtaPhib()

int L1MuDTTFConfig::getNbitsPtaPhib ( ) const
inline

Definition at line 70 of file L1MuDTTFConfig.h.

References m_NbitsPtaPhib.

Referenced by L1MuDTAssignmentUnit::setPrecision().

70 { return m_NbitsPtaPhib; }

◆ getopenLUTs()

bool L1MuDTTFConfig::getopenLUTs ( ) const
inline

Definition at line 61 of file L1MuDTTFConfig.h.

References m_openLUTs.

Referenced by L1MuDTEUX::run().

61 { return m_openLUTs; }

◆ getTSOutOfTimeFilter()

bool L1MuDTTFConfig::getTSOutOfTimeFilter ( ) const
inline

Definition at line 65 of file L1MuDTTFConfig.h.

References m_TSOutOfTimeFilter.

Referenced by L1MuDTSectorReceiver::receiveDTBXData().

65 { return m_TSOutOfTimeFilter; }

◆ getTSOutOfTimeWindow()

int L1MuDTTFConfig::getTSOutOfTimeWindow ( ) const
inline

Definition at line 66 of file L1MuDTTFConfig.h.

References m_TSOutOfTimeWindow.

Referenced by L1MuDTSectorReceiver::receiveDTBXData().

66 { return m_TSOutOfTimeWindow; }

◆ getUseEX21()

bool L1MuDTTFConfig::getUseEX21 ( ) const
inline

Definition at line 62 of file L1MuDTTFConfig.h.

References m_useEX21.

Referenced by L1MuDTExtrapolationUnit::run().

62 { return m_useEX21; }

◆ overlap()

bool L1MuDTTFConfig::overlap ( ) const
inline

Definition at line 59 of file L1MuDTTFConfig.h.

References m_overlap.

Referenced by L1MuDTSectorReceiver::run().

59 { return m_overlap; }

◆ setDebugLevel()

static void L1MuDTTFConfig::setDebugLevel ( int  level)
inlinestatic

Definition at line 52 of file L1MuDTTFConfig.h.

References personalPlayback::level, and m_dbgLevel.

52 { m_dbgLevel = level; }
static std::atomic< int > m_dbgLevel

◆ setDefaults()

void L1MuDTTFConfig::setDefaults ( const edm::ParameterSet ps)
private

Definition at line 53 of file L1MuDTTFConfig.cc.

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

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

◆ m_BxMax

int L1MuDTTFConfig::m_BxMax
private

Definition at line 89 of file L1MuDTTFConfig.h.

Referenced by getBxMax().

◆ m_BxMin

int L1MuDTTFConfig::m_BxMin
private

Definition at line 88 of file L1MuDTTFConfig.h.

Referenced by getBxMin().

◆ m_CSCTrSInputTag

edm::InputTag L1MuDTTFConfig::m_CSCTrSInputTag
private

Definition at line 79 of file L1MuDTTFConfig.h.

Referenced by getCSCTrSInputTag().

◆ m_dbgLevel

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

Definition at line 82 of file L1MuDTTFConfig.h.

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

◆ m_debug

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

Definition at line 81 of file L1MuDTTFConfig.h.

Referenced by Debug().

◆ m_DTDigiInputTag

edm::InputTag L1MuDTTFConfig::m_DTDigiInputTag
private

Definition at line 78 of file L1MuDTTFConfig.h.

Referenced by getDTDigiInputTag().

◆ m_etacanc

bool L1MuDTTFConfig::m_etacanc
private

Definition at line 99 of file L1MuDTTFConfig.h.

Referenced by getEtaCanc().

◆ m_etaTF

bool L1MuDTTFConfig::m_etaTF
private

Definition at line 97 of file L1MuDTTFConfig.h.

Referenced by getEtaTF().

◆ m_extTSFilter

int L1MuDTTFConfig::m_extTSFilter
private

Definition at line 91 of file L1MuDTTFConfig.h.

Referenced by getExtTSFilter().

◆ m_NbitsExtPhi

int L1MuDTTFConfig::m_NbitsExtPhi
private

Definition at line 104 of file L1MuDTTFConfig.h.

Referenced by getNbitsExtPhi().

◆ m_NbitsExtPhib

int L1MuDTTFConfig::m_NbitsExtPhib
private

Definition at line 105 of file L1MuDTTFConfig.h.

Referenced by getNbitsExtPhib().

◆ m_NbitsPhiPhi

int L1MuDTTFConfig::m_NbitsPhiPhi
private

Definition at line 108 of file L1MuDTTFConfig.h.

Referenced by getNbitsPhiPhi().

◆ m_NbitsPhiPhib

int L1MuDTTFConfig::m_NbitsPhiPhib
private

Definition at line 109 of file L1MuDTTFConfig.h.

Referenced by getNbitsPhiPhib().

◆ m_NbitsPtaPhi

int L1MuDTTFConfig::m_NbitsPtaPhi
private

Definition at line 106 of file L1MuDTTFConfig.h.

Referenced by getNbitsPtaPhi().

◆ m_NbitsPtaPhib

int L1MuDTTFConfig::m_NbitsPtaPhib
private

Definition at line 107 of file L1MuDTTFConfig.h.

Referenced by getNbitsPtaPhib().

◆ m_openLUTs

bool L1MuDTTFConfig::m_openLUTs
private

Definition at line 93 of file L1MuDTTFConfig.h.

Referenced by getopenLUTs().

◆ m_overlap

bool L1MuDTTFConfig::m_overlap
private

Definition at line 86 of file L1MuDTTFConfig.h.

Referenced by overlap().

◆ m_TSOutOfTimeFilter

bool L1MuDTTFConfig::m_TSOutOfTimeFilter
private

Definition at line 101 of file L1MuDTTFConfig.h.

Referenced by getTSOutOfTimeFilter().

◆ m_TSOutOfTimeWindow

int L1MuDTTFConfig::m_TSOutOfTimeWindow
private

Definition at line 102 of file L1MuDTTFConfig.h.

Referenced by getTSOutOfTimeWindow().

◆ m_useEX21

bool L1MuDTTFConfig::m_useEX21
private

Definition at line 95 of file L1MuDTTFConfig.h.

Referenced by getUseEX21().

◆ s_BxMax

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

Definition at line 84 of file L1MuDTTFConfig.h.

Referenced by getBxMaxGlobally().

◆ s_BxMin

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

Definition at line 83 of file L1MuDTTFConfig.h.

Referenced by getBxMinGlobally().