CMS 3D CMS Logo

L1MuBMTFConfig.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class: L1MuBMTFConfig
4 //
5 // Description: L1TMuonBarrelTrackProducer parameters for L1MuBMTrackFinder
6 //
7 //
8 //
9 // Author :
10 // N. Neumeister CERN EP
11 // J. Troconiz UAM Madrid
12 //
13 //--------------------------------------------------
14 
15 //-----------------------
16 // This Class's Header --
17 //-----------------------
18 
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 L1MuBMTFConfig
38 //---------------------------------
39 
40 //----------------
41 // Constructors --
42 //----------------
43 
44 L1MuBMTFConfig::L1MuBMTFConfig(const edm::ParameterSet& ps) { setDefaults(ps); }
45 
46 //--------------
47 // Operations --
48 //--------------
49 
51  m_BMDigiInputTag = ps.getParameter<edm::InputTag>("DTDigi_Source");
52  m_BMThetaDigiInputTag = ps.getParameter<edm::InputTag>("DTDigi_Theta_Source");
53 
54  m_debug = true;
55  m_dbgLevel = ps.getUntrackedParameter<int>("Debug", 0);
56 
57  if (Debug(1))
58  cout << endl;
59  if (Debug(1))
60  cout << "*******************************************" << endl;
61  if (Debug(1))
62  cout << "**** L1 barrel Track Finder settings : ****" << endl;
63  if (Debug(1))
64  cout << "*******************************************" << endl;
65  if (Debug(1))
66  cout << endl;
67 
68  if (Debug(1))
69  cout << "L1 barrel Track Finder : BM Digi Source: " << m_BMDigiInputTag << endl;
70  if (Debug(1))
71  cout << "L1 barrel Track Finder : BM Digi Source: " << m_BMThetaDigiInputTag << endl;
72  if (Debug(1))
73  cout << endl;
74 
75  if (Debug(1))
76  cout << "L1 barrel Track Finder : debug level: " << m_dbgLevel << endl;
77 }
78 
80  // set min and max bunch crossing
81  m_BxMin = bmtfParams.get_BX_min();
82  m_BxMax = bmtfParams.get_BX_max();
83 
84  // set Filter for Extrapolator
85  m_extTSFilter = bmtfParams.get_Extrapolation_Filter();
86 
87  // set switch for open LUTs usage
88  m_openLUTs = bmtfParams.get_Open_LUTs();
89 
90  // set switch for EX21 usage
91  m_useEX21 = bmtfParams.get_Extrapolation_21();
92 
93  // set switch for eta track finder usage
94  m_etaTF = bmtfParams.get_EtaTrackFinder();
95 
96  // set Filter for Out-of-time Track Segments
97  m_TSOutOfTimeFilter = bmtfParams.get_OutOfTime_Filter();
98  m_TSOutOfTimeWindow = bmtfParams.get_OutOfTime_Filter_Window();
99 
100  // set precision for extrapolation
101  m_NbitsExtPhi = bmtfParams.get_Extrapolation_nbits_Phi();
102  m_NbitsExtPhib = bmtfParams.get_Extrapolation_nbits_PhiB();
103 
104  // set precision for pt-assignment
105  m_NbitsPtaPhi = bmtfParams.get_PT_Assignment_nbits_Phi();
106  m_NbitsPtaPhib = bmtfParams.get_PT_Assignment_nbits_PhiB();
107 
108  // set precision for phi-assignment look-up tables
109  m_NbitsPhiPhi = bmtfParams.get_PHI_Assignment_nbits_Phi();
110  m_NbitsExtPhib = bmtfParams.get_PHI_Assignment_nbits_PhiB();
111 
112  if (Debug(1))
113  cout << "L1 barrel Track Finder : minimal bunch-crossing : " << m_BxMin << endl;
114  if (Debug(1))
115  cout << "L1 barrel Track Finder : maximal bunch-crossing : " << m_BxMax << endl;
116 
117  if (Debug(1))
118  cout << "L1 barrel Track Finder : Extrapolation Filter : " << m_extTSFilter << endl;
119 
120  if (Debug(1) && m_openLUTs) {
121  cout << "L1 barrel Track Finder : use open LUTs : on" << endl;
122  }
123  if (Debug(1) && !m_openLUTs) {
124  cout << "L1 barrel Track Finder : use open LUTs : off" << endl;
125  }
126 
127  if (Debug(1) && m_useEX21) {
128  cout << "L1 barrel Track Finder : use EX21 extrapolations : on" << endl;
129  }
130  if (Debug(1) && !m_useEX21) {
131  cout << "L1 barrel Track Finder : use EX21 extrapolations : off" << endl;
132  }
133 
134  if (Debug(1) && m_etaTF) {
135  cout << "L1 barrel Track Finder : Eta Track Finder : on" << endl;
136  }
137  if (Debug(1) && !m_etaTF) {
138  cout << "L1 barrel Track Finder : Eta Track Finder : off" << endl;
139  }
140 
141  if (Debug(1) && m_TSOutOfTimeFilter) {
142  cout << "L1 barrel Track Finder : out-of-time TS filter : on" << endl;
143  cout << "L1 barrel Track Finder : out-of-time TS filter window : " << m_TSOutOfTimeWindow << endl;
144  }
145  if (Debug(1) && !m_TSOutOfTimeFilter) {
146  cout << "L1 barrel Track Finder : out-of-time TS filter : off" << endl;
147  }
148 
149  if (Debug(1))
150  cout << "L1 barrel Track Finder : # of bits used for phi (extrapolation) : " << m_NbitsExtPhi << endl;
151  if (Debug(1))
152  cout << "L1 barrel Track Finder : # of bits used for phib (extrapolation) : " << m_NbitsExtPhib << endl;
153  if (Debug(1))
154  cout << "L1 barrel Track Finder : # of bits used for phi (pt-assignment) : " << m_NbitsPtaPhi << endl;
155  if (Debug(1))
156  cout << "L1 barrel Track Finder : # of bits used for phib (pt-assignment) : " << m_NbitsPtaPhib << endl;
157  if (Debug(1))
158  cout << "L1 barrel Track Finder : # of bits used for phi (phi-assignment) : " << m_NbitsPhiPhi << endl;
159  if (Debug(1))
160  cout << "L1 barrel Track Finder : # of bits used for phib (phi-assignment) : " << m_NbitsPhiPhib << endl;
161 }
int get_OutOfTime_Filter_Window() const
bool get_Extrapolation_21() const
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
int get_Extrapolation_nbits_PhiB() const
L1MuBMTFConfig(const edm::ParameterSet &ps)
constructor
void setDefaults(edm::ParameterSet const &)
bool get_EtaTrackFinder() const
int get_PT_Assignment_nbits_Phi() const
int get_Extrapolation_Filter() const
T getUntrackedParameter(std::string const &, T const &) const
void setDefaultsES(const L1TMuonBarrelParams &)
int get_PT_Assignment_nbits_PhiB() const
int get_PHI_Assignment_nbits_Phi() const
int get_PHI_Assignment_nbits_PhiB() const
bool get_OutOfTime_Filter() const
int get_Extrapolation_nbits_Phi() const
const bool Debug