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 // Destructor --
48 //--------------
50 
51 //--------------
52 // Operations --
53 //--------------
54 
56  m_BMDigiInputTag = ps.getParameter<edm::InputTag>("DTDigi_Source");
57  m_BMThetaDigiInputTag = ps.getParameter<edm::InputTag>("DTDigi_Theta_Source");
58 
59  m_debug = true;
60  m_dbgLevel = ps.getUntrackedParameter<int>("Debug", 0);
61 
62  if (Debug(1))
63  cout << endl;
64  if (Debug(1))
65  cout << "*******************************************" << endl;
66  if (Debug(1))
67  cout << "**** L1 barrel Track Finder settings : ****" << endl;
68  if (Debug(1))
69  cout << "*******************************************" << endl;
70  if (Debug(1))
71  cout << endl;
72 
73  if (Debug(1))
74  cout << "L1 barrel Track Finder : BM Digi Source: " << m_BMDigiInputTag << endl;
75  if (Debug(1))
76  cout << "L1 barrel Track Finder : BM Digi Source: " << m_BMThetaDigiInputTag << endl;
77  if (Debug(1))
78  cout << endl;
79 
80  if (Debug(1))
81  cout << "L1 barrel Track Finder : debug level: " << m_dbgLevel << endl;
82 }
83 
85  // L1TMuonBarrelParams *bmtfParams = new L1TMuonBarrelParams();
86  // bmtfParams = new L1TMuonBarrelParams(*bmtfParamsHandle.product());
88 
89  // set min and max bunch crossing
90  m_BxMin = bmtfParams->get_BX_min();
91  m_BxMax = bmtfParams->get_BX_max();
92 
93  // set Filter for Extrapolator
94  m_extTSFilter = bmtfParams->get_Extrapolation_Filter();
95 
96  // set switch for open LUTs usage
97  m_openLUTs = bmtfParams->get_Open_LUTs();
98 
99  // set switch for EX21 usage
100  m_useEX21 = bmtfParams->get_Extrapolation_21();
101 
102  // set switch for eta track finder usage
103  m_etaTF = bmtfParams->get_EtaTrackFinder();
104 
105  // set Filter for Out-of-time Track Segments
106  m_TSOutOfTimeFilter = bmtfParams->get_OutOfTime_Filter();
107  m_TSOutOfTimeWindow = bmtfParams->get_OutOfTime_Filter_Window();
108 
109  // set precision for extrapolation
110  m_NbitsExtPhi = bmtfParams->get_Extrapolation_nbits_Phi();
111  m_NbitsExtPhib = bmtfParams->get_Extrapolation_nbits_PhiB();
112 
113  // set precision for pt-assignment
114  m_NbitsPtaPhi = bmtfParams->get_PT_Assignment_nbits_Phi();
115  m_NbitsPtaPhib = bmtfParams->get_PT_Assignment_nbits_PhiB();
116 
117  // set precision for phi-assignment look-up tables
118  m_NbitsPhiPhi = bmtfParams->get_PHI_Assignment_nbits_Phi();
119  m_NbitsExtPhib = bmtfParams->get_PHI_Assignment_nbits_PhiB();
120 
121  if (Debug(1))
122  cout << "L1 barrel Track Finder : minimal bunch-crossing : " << m_BxMin << endl;
123  if (Debug(1))
124  cout << "L1 barrel Track Finder : maximal bunch-crossing : " << m_BxMax << endl;
125 
126  if (Debug(1))
127  cout << "L1 barrel Track Finder : Extrapolation Filter : " << m_extTSFilter << endl;
128 
129  if (Debug(1) && m_openLUTs) {
130  cout << "L1 barrel Track Finder : use open LUTs : on" << endl;
131  }
132  if (Debug(1) && !m_openLUTs) {
133  cout << "L1 barrel Track Finder : use open LUTs : off" << endl;
134  }
135 
136  if (Debug(1) && m_useEX21) {
137  cout << "L1 barrel Track Finder : use EX21 extrapolations : on" << endl;
138  }
139  if (Debug(1) && !m_useEX21) {
140  cout << "L1 barrel Track Finder : use EX21 extrapolations : off" << endl;
141  }
142 
143  if (Debug(1) && m_etaTF) {
144  cout << "L1 barrel Track Finder : Eta Track Finder : on" << endl;
145  }
146  if (Debug(1) && !m_etaTF) {
147  cout << "L1 barrel Track Finder : Eta Track Finder : off" << endl;
148  }
149 
150  if (Debug(1) && m_TSOutOfTimeFilter) {
151  cout << "L1 barrel Track Finder : out-of-time TS filter : on" << endl;
152  cout << "L1 barrel Track Finder : out-of-time TS filter window : " << m_TSOutOfTimeWindow << endl;
153  }
154  if (Debug(1) && !m_TSOutOfTimeFilter) {
155  cout << "L1 barrel Track Finder : out-of-time TS filter : off" << endl;
156  }
157 
158  if (Debug(1))
159  cout << "L1 barrel Track Finder : # of bits used for phi (extrapolation) : " << m_NbitsExtPhi << endl;
160  if (Debug(1))
161  cout << "L1 barrel Track Finder : # of bits used for phib (extrapolation) : " << m_NbitsExtPhib << endl;
162  if (Debug(1))
163  cout << "L1 barrel Track Finder : # of bits used for phi (pt-assignment) : " << m_NbitsPtaPhi << endl;
164  if (Debug(1))
165  cout << "L1 barrel Track Finder : # of bits used for phib (pt-assignment) : " << m_NbitsPtaPhib << endl;
166  if (Debug(1))
167  cout << "L1 barrel Track Finder : # of bits used for phi (phi-assignment) : " << m_NbitsPhiPhi << endl;
168  if (Debug(1))
169  cout << "L1 barrel Track Finder : # of bits used for phib (phi-assignment) : " << m_NbitsPhiPhib << endl;
170 
171  delete bmtfParams;
172 }
173 
174 // static data members
175 
178 
179 bool L1MuBMTFConfig::m_debug = false;
181 int L1MuBMTFConfig::m_BxMin = -9;
184 bool L1MuBMTFConfig::m_openLUTs = false;
185 bool L1MuBMTFConfig::m_useEX21 = false;
186 bool L1MuBMTFConfig::m_etaTF = true;
L1TMuonBarrelParamsAllPublic::get_PHI_Assignment_nbits_PhiB
int get_PHI_Assignment_nbits_PhiB() const
Definition: L1TMuonBarrelParamsAllPublic.h:61
L1MuBMTFConfig::~L1MuBMTFConfig
virtual ~L1MuBMTFConfig()
destructor
Definition: L1MuBMTFConfig.cc:49
L1TMuonBarrelParamsAllPublic::get_PHI_Assignment_nbits_Phi
int get_PHI_Assignment_nbits_Phi() const
Definition: L1TMuonBarrelParamsAllPublic.h:60
L1MuBMTFConfig::m_BMThetaDigiInputTag
static edm::InputTag m_BMThetaDigiInputTag
Definition: L1MuBMTFConfig.h:78
L1MuBMTFConfig::m_NbitsPtaPhi
static int m_NbitsPtaPhi
Definition: L1MuBMTFConfig.h:99
L1MuBMTFConfig::m_NbitsPhiPhi
static int m_NbitsPhiPhi
Definition: L1MuBMTFConfig.h:101
gather_cfg.cout
cout
Definition: gather_cfg.py:144
L1TMuonBarrelParams.h
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
L1MuBMTFConfig::m_TSOutOfTimeFilter
static bool m_TSOutOfTimeFilter
Definition: L1MuBMTFConfig.h:94
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
L1MuBMTFConfig::m_NbitsPhiPhib
static int m_NbitsPhiPhib
Definition: L1MuBMTFConfig.h:102
L1MuBMTFConfig::m_BxMin
static int m_BxMin
Definition: L1MuBMTFConfig.h:83
L1TMuonBarrelParamsAllPublic::get_Open_LUTs
bool get_Open_LUTs() const
Definition: L1TMuonBarrelParamsAllPublic.h:70
L1MuBMTFConfig::L1MuBMTFConfig
L1MuBMTFConfig(const edm::ParameterSet &ps)
constructor
Definition: L1MuBMTFConfig.cc:44
L1MuBMTFConfig::m_extTSFilter
static int m_extTSFilter
Definition: L1MuBMTFConfig.h:86
L1TMuonBarrelParamsAllPublic::get_Extrapolation_nbits_Phi
int get_Extrapolation_nbits_Phi() const
Definition: L1TMuonBarrelParamsAllPublic.h:62
L1MuBMTFConfig::m_NbitsPtaPhib
static int m_NbitsPtaPhib
Definition: L1MuBMTFConfig.h:100
L1MuBMTFConfig::m_NbitsExtPhib
static int m_NbitsExtPhib
Definition: L1MuBMTFConfig.h:98
L1TMuonBarrelParamsAllPublic::get_BX_max
int get_BX_max() const
Definition: L1TMuonBarrelParamsAllPublic.h:65
L1MuBMTFConfig::m_useEX21
static bool m_useEX21
Definition: L1MuBMTFConfig.h:90
Debug
const bool Debug
Definition: CosmicMuonParameters.h:12
L1TMuonBarrelParamsAllPublic::get_Extrapolation_21
bool get_Extrapolation_21() const
Definition: L1TMuonBarrelParamsAllPublic.h:72
L1TMuonBarrelParamsAllPublic::get_OutOfTime_Filter
bool get_OutOfTime_Filter() const
Definition: L1TMuonBarrelParamsAllPublic.h:69
L1TMuonBarrelParamsAllPublic::get_EtaTrackFinder
bool get_EtaTrackFinder() const
Definition: L1TMuonBarrelParamsAllPublic.h:71
L1MuBMTFConfig::m_BxMax
static int m_BxMax
Definition: L1MuBMTFConfig.h:84
L1TMuonBarrelParamsAllPublic::get_Extrapolation_Filter
int get_Extrapolation_Filter() const
Definition: L1TMuonBarrelParamsAllPublic.h:66
L1MuBMTFConfig::m_dbgLevel
static int m_dbgLevel
Definition: L1MuBMTFConfig.h:81
L1MuBMTFConfig::m_NbitsExtPhi
static int m_NbitsExtPhi
Definition: L1MuBMTFConfig.h:97
L1TMuonBarrelParamsAllPublic::get_PT_Assignment_nbits_PhiB
int get_PT_Assignment_nbits_PhiB() const
Definition: L1TMuonBarrelParamsAllPublic.h:59
edm::ParameterSet
Definition: ParameterSet.h:47
L1MuBMTFConfig.h
L1TMuonBarrelParamsAllPublic::get_PT_Assignment_nbits_Phi
int get_PT_Assignment_nbits_Phi() const
Definition: L1TMuonBarrelParamsAllPublic.h:58
L1MuBMTFConfig::m_etaTF
static bool m_etaTF
Definition: L1MuBMTFConfig.h:92
L1MuBMTFConfig::m_openLUTs
static bool m_openLUTs
Definition: L1MuBMTFConfig.h:88
std
Definition: JetResolutionObject.h:76
L1MuBMTFConfig::m_TSOutOfTimeWindow
static int m_TSOutOfTimeWindow
Definition: L1MuBMTFConfig.h:95
L1TMuonBarrelParamsAllPublic
Definition: L1TMuonBarrelParamsAllPublic.h:8
L1TMuonBarrelParamsAllPublic::get_BX_min
int get_BX_min() const
Definition: L1TMuonBarrelParamsAllPublic.h:64
L1MuBMTFConfig::setDefaultsES
void setDefaultsES(const L1TMuonBarrelParams &)
Definition: L1MuBMTFConfig.cc:84
L1TMuonBarrelParamsAllPublic::get_Extrapolation_nbits_PhiB
int get_Extrapolation_nbits_PhiB() const
Definition: L1TMuonBarrelParamsAllPublic.h:63
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
L1MuBMTFConfig::m_debug
static bool m_debug
Definition: L1MuBMTFConfig.h:80
L1TMuonBarrelParams
Definition: L1TMuonBarrelParams.h:23
edm::InputTag
Definition: InputTag.h:15
L1TMuonBarrelParamsAllPublic::get_OutOfTime_Filter_Window
int get_OutOfTime_Filter_Window() const
Definition: L1TMuonBarrelParamsAllPublic.h:67
L1MuBMTFConfig::setDefaults
void setDefaults(edm::ParameterSet const &)
Definition: L1MuBMTFConfig.cc:55
L1MuBMTFConfig::m_BMDigiInputTag
static edm::InputTag m_BMDigiInputTag
Definition: L1MuBMTFConfig.h:77