CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuDTTFConfig.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class: L1MuDTTFConfig
4 //
5 // Description: DTTrackFinder parameters for L1MuDTTrackFinder
6 //
7 //
8 // $Date: 2008/02/25 16:35:32 $
9 // $Revision: 1.7 $
10 //
11 // Author :
12 // N. Neumeister CERN EP
13 // J. Troconiz UAM Madrid
14 //
15 //--------------------------------------------------
16 
17 //-----------------------
18 // This Class's Header --
19 //-----------------------
20 
22 
23 //---------------
24 // C++ Headers --
25 //---------------
26 
27 #include <iostream>
28 #include <string>
29 
30 //-------------------------------
31 // Collaborating Class Headers --
32 //-------------------------------
33 
34 using namespace std;
35 
36 // --------------------------------
37 // class L1MuDTTFConfig
38 //---------------------------------
39 
40 //----------------
41 // Constructors --
42 //----------------
43 
45 
46  m_ps = &ps;
47  setDefaults();
48 
49 }
50 
51 
52 //--------------
53 // Destructor --
54 //--------------
56 
57 
58 //--------------
59 // Operations --
60 //--------------
61 
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 Filter for Out-of-time Track Segments
89  m_TSOutOfTimeFilter = m_ps->getUntrackedParameter<bool>("OutOfTime_Filter",false);
90  m_TSOutOfTimeWindow = m_ps->getUntrackedParameter<int>("OutOfTime_Filter_Window",1);
91 
92  // set precision for extrapolation
93  m_NbitsExtPhi = m_ps->getUntrackedParameter<int>("Extrapolation_nbits_Phi", 8);
94  m_NbitsExtPhib = m_ps->getUntrackedParameter<int>("Extrapolation_nbits_PhiB",8);
95 
96  // set precision for pt-assignment
97  m_NbitsPtaPhi = m_ps->getUntrackedParameter<int>("PT_Assignment_nbits_Phi", 12);
98  m_NbitsPtaPhib = m_ps->getUntrackedParameter<int>("PT_Assignment_nbits_PhiB",10);
99 
100  // set precision for phi-assignment look-up tables
101  m_NbitsPhiPhi = m_ps->getUntrackedParameter<int>("PHI_Assignment_nbits_Phi", 10);
102  m_NbitsPhiPhib = m_ps->getUntrackedParameter<int>("PHI_Assignment_nbits_PhiB",10);
103 
104  if ( Debug(1) ) cout << endl;
105  if ( Debug(1) ) cout << "*******************************************" << endl;
106  if ( Debug(1) ) cout << "**** L1 barrel Track Finder settings : ****" << endl;
107  if ( Debug(1) ) cout << "*******************************************" << endl;
108  if ( Debug(1) ) cout << endl;
109 
110  if ( Debug(1) ) cout << "L1 barrel Track Finder : DT Digi Source: " << m_DTDigiInputTag << endl;
111  if ( Debug(1) ) cout << "L1 barrel Track Finder : CSC Stub Source: " << m_CSCTrSInputTag << endl;
112  if ( Debug(1) ) cout << endl;
113 
114  if ( Debug(1) ) cout << "L1 barrel Track Finder : debug level: " << m_dbgLevel << endl;
115 
116  if ( Debug(1) && m_overlap ) {
117  cout << "L1 barrel Track Finder : barrel-endcap overlap region : on" << endl;
118  }
119  if ( Debug(1) && !m_overlap ) {
120  cout << "L1 barrel Track Finder : barrel-endcap overlap region : off" << endl;
121  }
122 
123  if ( Debug(1) ) cout << "L1 barrel Track Finder : minimal bunch-crossing : " << m_BxMin << endl;
124  if ( Debug(1) ) cout << "L1 barrel Track Finder : maximal bunch-crossing : " << m_BxMax << endl;
125 
126  if ( Debug(1) ) cout << "L1 barrel Track Finder : Extrapolation Filter : " << m_extTSFilter << endl;
127 
128  if ( Debug(1) && m_openLUTs) {
129  cout << "L1 barrel Track Finder : use open LUTs : on" << endl;
130  }
131  if ( Debug(1) && !m_openLUTs) {
132  cout << "L1 barrel Track Finder : use open LUTs : off" << endl;
133  }
134 
135  if ( Debug(1) && m_useEX21 ) {
136  cout << "L1 barrel Track Finder : use EX21 extrapolations : on" << endl;
137  }
138  if ( Debug(1) && !m_useEX21 ) {
139  cout << "L1 barrel Track Finder : use EX21 extrapolations : off" << endl;
140  }
141 
142  if ( Debug(1) && m_etaTF ) {
143  cout << "L1 barrel Track Finder : Eta Track Finder : on" << endl;
144  }
145  if ( Debug(1) && !m_etaTF ) {
146  cout << "L1 barrel Track Finder : Eta Track Finder : off" << endl;
147  }
148 
149  if ( Debug(1) && m_TSOutOfTimeFilter ) {
150  cout << "L1 barrel Track Finder : out-of-time TS filter : on" << endl;
151  cout << "L1 barrel Track Finder : out-of-time TS filter window : " << m_TSOutOfTimeWindow << endl;
152  }
153  if ( Debug(1) && !m_TSOutOfTimeFilter ) {
154  cout << "L1 barrel Track Finder : out-of-time TS filter : off" << endl;
155  }
156 
157  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phi (extrapolation) : " << m_NbitsExtPhi << endl;
158  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phib (extrapolation) : " << m_NbitsExtPhib << endl;
159  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phi (pt-assignment) : " << m_NbitsPtaPhi << endl;
160  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phib (pt-assignment) : " << m_NbitsPtaPhib << endl;
161  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phi (phi-assignment) : " << m_NbitsPhiPhi << endl;
162  if ( Debug(1) ) cout << "L1 barrel Track Finder : # of bits used for phib (phi-assignment) : " << m_NbitsPhiPhib << endl;
163 
164 }
165 
166 
167 // static data members
168 
171 
172 bool L1MuDTTFConfig::m_debug = false;
174 bool L1MuDTTFConfig::m_overlap = true;
175 int L1MuDTTFConfig::m_BxMin = -9;
178 bool L1MuDTTFConfig::m_openLUTs = false;
179 bool L1MuDTTFConfig::m_useEX21 = false;
180 bool L1MuDTTFConfig::m_etaTF = true;
static bool m_overlap
static int m_NbitsPtaPhib
L1MuDTTFConfig(const edm::ParameterSet &ps)
constructor
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
static int m_NbitsPtaPhi
static bool m_TSOutOfTimeFilter
static edm::InputTag m_DTDigiInputTag
virtual ~L1MuDTTFConfig()
destructor
static bool m_debug
static int m_NbitsExtPhib
static int m_NbitsPhiPhib
static int m_BxMax
static int m_NbitsPhiPhi
tuple cout
Definition: gather_cfg.py:41
static int m_extTSFilter
static int m_BxMin
const bool Debug
static int m_dbgLevel