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
L1MuDTTFConfig Class Reference

#include <L1MuDTTFConfig.h>

Public Member Functions

 L1MuDTTFConfig (const edm::ParameterSet &ps)
 constructor More...
 
virtual ~L1MuDTTFConfig ()
 destructor More...
 

Static Public Member Functions

static bool Debug ()
 
static bool Debug (int level)
 
static int getBxMax ()
 
static int getBxMin ()
 
static edm::InputTag getCSCTrSInputTag ()
 
static int getDebugLevel ()
 
static edm::InputTag getDTDigiInputTag ()
 
static bool getEtaCanc ()
 
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 bool overlap ()
 
static void setDebugLevel (int level)
 

Private Member Functions

void setDefaults ()
 

Private Attributes

const edm::ParameterSetm_ps
 

Static Private Attributes

static int m_BxMax = 7
 
static int m_BxMin = -9
 
static edm::InputTag m_CSCTrSInputTag = edm::InputTag()
 
static int m_dbgLevel = -1
 
static bool m_debug = false
 
static edm::InputTag m_DTDigiInputTag = edm::InputTag()
 
static bool m_etacanc = 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_overlap = true
 
static bool m_TSOutOfTimeFilter = false
 
static int m_TSOutOfTimeWindow = 1
 
static bool m_useEX21 = false
 

Detailed Description

Configuration parameters for L1MuDTTrackFinder

Date:
2012/07/05 11:06:57
Revision:
1.6

N. Neumeister CERN EP

Definition at line 39 of file L1MuDTTFConfig.h.

Constructor & Destructor Documentation

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

constructor

Definition at line 44 of file L1MuDTTFConfig.cc.

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

destructor

Definition at line 55 of file L1MuDTTFConfig.cc.

55 {}

Member Function Documentation

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

Definition at line 53 of file L1MuDTTFConfig.h.

References m_dbgLevel, and m_debug.

53 { return (m_debug && m_dbgLevel >= level); }
static bool m_debug
tuple level
Definition: testEve_cfg.py:34
static int m_dbgLevel
static int L1MuDTTFConfig::getBxMax ( )
inlinestatic

Definition at line 59 of file L1MuDTTFConfig.h.

References m_BxMax.

Referenced by CSCTFDTReceiver::process(), and L1MuDTTrackFinder::run().

59 { return m_BxMax; }
static int m_BxMax
static int L1MuDTTFConfig::getBxMin ( )
inlinestatic

Definition at line 58 of file L1MuDTTFConfig.h.

References m_BxMin.

Referenced by CSCTFDTReceiver::process(), and L1MuDTTrackFinder::run().

58 { return m_BxMin; }
static int m_BxMin
static edm::InputTag L1MuDTTFConfig::getCSCTrSInputTag ( )
inlinestatic

Definition at line 50 of file L1MuDTTFConfig.h.

References m_CSCTrSInputTag.

Referenced by L1MuDTSectorReceiver::receiveCSCData().

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

Definition at line 56 of file L1MuDTTFConfig.h.

References m_dbgLevel.

56 { return m_dbgLevel; }
static int m_dbgLevel
static edm::InputTag L1MuDTTFConfig::getDTDigiInputTag ( )
inlinestatic

Definition at line 49 of file L1MuDTTFConfig.h.

References m_DTDigiInputTag.

Referenced by L1MuDTEtaProcessor::receiveData(), L1MuDTSectorReceiver::receiveDTBXData(), and L1MuDTTrackFinder::run().

49 { return m_DTDigiInputTag; }
static edm::InputTag m_DTDigiInputTag
static bool L1MuDTTFConfig::getEtaCanc ( )
inlinestatic

Definition at line 65 of file L1MuDTTFConfig.h.

References m_etacanc.

Referenced by L1MuDTSectorReceiver::receiveCSCData().

65 { return m_etacanc; }
static bool m_etacanc
static bool L1MuDTTFConfig::getEtaTF ( )
inlinestatic

Definition at line 64 of file L1MuDTTFConfig.h.

References m_etaTF.

Referenced by L1MuDTEtaProcessor::run().

64 { return m_etaTF; }
static bool m_etaTF
static int L1MuDTTFConfig::getExtTSFilter ( )
inlinestatic

Definition at line 61 of file L1MuDTTFConfig.h.

References m_extTSFilter.

Referenced by L1MuDTEUX::setPrecision().

61 { return m_extTSFilter; }
static int m_extTSFilter
static int L1MuDTTFConfig::getNbitsExtPhi ( )
inlinestatic

Definition at line 68 of file L1MuDTTFConfig.h.

References m_NbitsExtPhi.

Referenced by L1MuDTSectorReceiver::receiveDTBXData(), and L1MuDTEUX::setPrecision().

68 { return m_NbitsExtPhi; }
static int m_NbitsExtPhi
static int L1MuDTTFConfig::getNbitsExtPhib ( )
inlinestatic

Definition at line 69 of file L1MuDTTFConfig.h.

References m_NbitsExtPhib.

Referenced by L1MuDTEUX::setPrecision().

69 { return m_NbitsExtPhib; }
static int m_NbitsExtPhib
static int L1MuDTTFConfig::getNbitsPhiPhi ( )
inlinestatic

Definition at line 72 of file L1MuDTTFConfig.h.

References m_NbitsPhiPhi.

Referenced by L1MuDTAssignmentUnit::PhiAU().

72 { return m_NbitsPhiPhi; }
static int m_NbitsPhiPhi
static int L1MuDTTFConfig::getNbitsPhiPhib ( )
inlinestatic

Definition at line 73 of file L1MuDTTFConfig.h.

References m_NbitsPhiPhib.

Referenced by L1MuDTAssignmentUnit::PhiAU().

73 { return m_NbitsPhiPhib; }
static int m_NbitsPhiPhib
static int L1MuDTTFConfig::getNbitsPtaPhi ( )
inlinestatic

Definition at line 70 of file L1MuDTTFConfig.h.

References m_NbitsPtaPhi.

Referenced by L1MuDTAssignmentUnit::setPrecision().

70 { return m_NbitsPtaPhi; }
static int m_NbitsPtaPhi
static int L1MuDTTFConfig::getNbitsPtaPhib ( )
inlinestatic

Definition at line 71 of file L1MuDTTFConfig.h.

References m_NbitsPtaPhib.

Referenced by L1MuDTAssignmentUnit::setPrecision().

71 { return m_NbitsPtaPhib; }
static int m_NbitsPtaPhib
static bool L1MuDTTFConfig::getopenLUTs ( )
inlinestatic

Definition at line 62 of file L1MuDTTFConfig.h.

References m_openLUTs.

Referenced by L1MuDTEUX::run().

62 { return m_openLUTs; }
static bool m_openLUTs
static bool L1MuDTTFConfig::getTSOutOfTimeFilter ( )
inlinestatic

Definition at line 66 of file L1MuDTTFConfig.h.

References m_TSOutOfTimeFilter.

Referenced by L1MuDTSectorReceiver::receiveDTBXData().

66 { return m_TSOutOfTimeFilter; }
static bool m_TSOutOfTimeFilter
static int L1MuDTTFConfig::getTSOutOfTimeWindow ( )
inlinestatic

Definition at line 67 of file L1MuDTTFConfig.h.

References m_TSOutOfTimeWindow.

Referenced by L1MuDTSectorReceiver::receiveDTBXData().

67 { return m_TSOutOfTimeWindow; }
static int m_TSOutOfTimeWindow
static bool L1MuDTTFConfig::getUseEX21 ( )
inlinestatic

Definition at line 63 of file L1MuDTTFConfig.h.

References m_useEX21.

Referenced by L1MuDTExtrapolationUnit::run().

63 { return m_useEX21; }
static bool m_useEX21
static bool L1MuDTTFConfig::overlap ( )
inlinestatic

Definition at line 60 of file L1MuDTTFConfig.h.

References m_overlap.

Referenced by L1MuDTSectorReceiver::run().

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

Definition at line 55 of file L1MuDTTFConfig.h.

References testEve_cfg::level, and m_dbgLevel.

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

Definition at line 62 of file L1MuDTTFConfig.cc.

References gather_cfg::cout, and Debug.

62  {
63 
64  m_DTDigiInputTag = m_ps->getParameter<edm::InputTag>("DTDigi_Source");
65  m_CSCTrSInputTag = m_ps->getParameter<edm::InputTag>("CSCStub_Source");
66 
67  m_debug = true;
68  m_dbgLevel = m_ps->getUntrackedParameter<int>("Debug",0);
69 
70  m_overlap = m_ps->getUntrackedParameter<bool>("Overlap",true);
71 
72  // set min and max bunch crossing
73  m_BxMin = m_ps->getUntrackedParameter<int>("BX_min",-9);
74  m_BxMax = m_ps->getUntrackedParameter<int>("BX_max", 7);
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
static bool m_overlap
T getUntrackedParameter(std::string const &, T const &) const
static int m_NbitsPtaPhib
static int m_NbitsExtPhi
static bool m_etaTF
static int m_TSOutOfTimeWindow
static bool m_openLUTs
static edm::InputTag m_CSCTrSInputTag
static bool m_useEX21
const edm::ParameterSet * m_ps
static int m_NbitsPtaPhi
static bool m_TSOutOfTimeFilter
static bool Debug()
static edm::InputTag m_DTDigiInputTag
static bool m_debug
static int m_NbitsExtPhib
static int m_NbitsPhiPhib
static bool m_etacanc
static int m_BxMax
static int m_NbitsPhiPhi
tuple cout
Definition: gather_cfg.py:121
static int m_extTSFilter
static int m_BxMin
static int m_dbgLevel

Member Data Documentation

int L1MuDTTFConfig::m_BxMax = 7
staticprivate

Definition at line 92 of file L1MuDTTFConfig.h.

Referenced by getBxMax().

int L1MuDTTFConfig::m_BxMin = -9
staticprivate

Definition at line 91 of file L1MuDTTFConfig.h.

Referenced by getBxMin().

edm::InputTag L1MuDTTFConfig::m_CSCTrSInputTag = edm::InputTag()
staticprivate

Definition at line 84 of file L1MuDTTFConfig.h.

Referenced by getCSCTrSInputTag().

int L1MuDTTFConfig::m_dbgLevel = -1
staticprivate

Definition at line 87 of file L1MuDTTFConfig.h.

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

bool L1MuDTTFConfig::m_debug = false
staticprivate

Definition at line 86 of file L1MuDTTFConfig.h.

Referenced by Debug().

edm::InputTag L1MuDTTFConfig::m_DTDigiInputTag = edm::InputTag()
staticprivate

Definition at line 83 of file L1MuDTTFConfig.h.

Referenced by getDTDigiInputTag().

bool L1MuDTTFConfig::m_etacanc = false
staticprivate

Definition at line 102 of file L1MuDTTFConfig.h.

Referenced by getEtaCanc().

bool L1MuDTTFConfig::m_etaTF = true
staticprivate

Definition at line 100 of file L1MuDTTFConfig.h.

Referenced by getEtaTF().

int L1MuDTTFConfig::m_extTSFilter = 1
staticprivate

Definition at line 94 of file L1MuDTTFConfig.h.

Referenced by getExtTSFilter().

int L1MuDTTFConfig::m_NbitsExtPhi = 8
staticprivate

Definition at line 107 of file L1MuDTTFConfig.h.

Referenced by getNbitsExtPhi().

int L1MuDTTFConfig::m_NbitsExtPhib = 8
staticprivate

Definition at line 108 of file L1MuDTTFConfig.h.

Referenced by getNbitsExtPhib().

int L1MuDTTFConfig::m_NbitsPhiPhi = 10
staticprivate

Definition at line 111 of file L1MuDTTFConfig.h.

Referenced by getNbitsPhiPhi().

int L1MuDTTFConfig::m_NbitsPhiPhib = 10
staticprivate

Definition at line 112 of file L1MuDTTFConfig.h.

Referenced by getNbitsPhiPhib().

int L1MuDTTFConfig::m_NbitsPtaPhi = 12
staticprivate

Definition at line 109 of file L1MuDTTFConfig.h.

Referenced by getNbitsPtaPhi().

int L1MuDTTFConfig::m_NbitsPtaPhib = 10
staticprivate

Definition at line 110 of file L1MuDTTFConfig.h.

Referenced by getNbitsPtaPhib().

bool L1MuDTTFConfig::m_openLUTs = false
staticprivate

Definition at line 96 of file L1MuDTTFConfig.h.

Referenced by getopenLUTs().

bool L1MuDTTFConfig::m_overlap = true
staticprivate

Definition at line 89 of file L1MuDTTFConfig.h.

Referenced by overlap().

const edm::ParameterSet* L1MuDTTFConfig::m_ps
private

Definition at line 81 of file L1MuDTTFConfig.h.

bool L1MuDTTFConfig::m_TSOutOfTimeFilter = false
staticprivate

Definition at line 104 of file L1MuDTTFConfig.h.

Referenced by getTSOutOfTimeFilter().

int L1MuDTTFConfig::m_TSOutOfTimeWindow = 1
staticprivate

Definition at line 105 of file L1MuDTTFConfig.h.

Referenced by getTSOutOfTimeWindow().

bool L1MuDTTFConfig::m_useEX21 = false
staticprivate

Definition at line 98 of file L1MuDTTFConfig.h.

Referenced by getUseEX21().