CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackerTopologyEP.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: TrackerTopologyEP
4 // Class: TrackerTopologyEP
5 //
6 
7 #include "TrackerTopologyEP.h"
12 
13 //
14 // constants, enums and typedefs
15 //
16 
17 //
18 // static data member definitions
19 //
20 
21 //
22 // constructors and destructor
23 //
25 {
26  edm::LogInfo("TRACKER") << "TrackerTopologyIdealEP::TrackerTopologyIdealEP";
27 
28  pxbVals_.layerStartBit_=conf.getParameter<unsigned int>("pxb_layerStartBit");
29  pxbVals_.ladderStartBit_=conf.getParameter<unsigned int>("pxb_ladderStartBit");
30  pxbVals_.moduleStartBit_=conf.getParameter<unsigned int>("pxb_moduleStartBit");
31  pxbVals_.layerMask_=conf.getParameter<unsigned int>("pxb_layerMask");
32  pxbVals_.ladderMask_=conf.getParameter<unsigned int>("pxb_ladderMask");
33  pxbVals_.moduleMask_=conf.getParameter<unsigned int>("pxb_moduleMask");
34  pxfVals_.sideStartBit_=conf.getParameter<unsigned int>("pxf_sideStartBit");
35  pxfVals_.diskStartBit_=conf.getParameter<unsigned int>("pxf_diskStartBit");
36  pxfVals_.bladeStartBit_=conf.getParameter<unsigned int>("pxf_bladeStartBit");
37  pxfVals_.panelStartBit_=conf.getParameter<unsigned int>("pxf_panelStartBit");
38  pxfVals_.moduleStartBit_=conf.getParameter<unsigned int>("pxf_moduleStartBit");
39  pxfVals_.sideMask_=conf.getParameter<unsigned int>("pxf_sideMask");
40  pxfVals_.diskMask_=conf.getParameter<unsigned int>("pxf_diskMask");
41  pxfVals_.bladeMask_=conf.getParameter<unsigned int>("pxf_bladeMask");
42  pxfVals_.panelMask_=conf.getParameter<unsigned int>("pxf_panelMask");
43  pxfVals_.moduleMask_=conf.getParameter<unsigned int>("pxf_moduleMask");
44  tecVals_.sideStartBit_=conf.getParameter<unsigned int>("tec_sideStartBit");
45  tecVals_.wheelStartBit_=conf.getParameter<unsigned int>("tec_wheelStartBit");
46  tecVals_.petal_fw_bwStartBit_=conf.getParameter<unsigned int>("tec_petal_fw_bwStartBit");
47  tecVals_.petalStartBit_=conf.getParameter<unsigned int>("tec_petalStartBit");
48  tecVals_.ringStartBit_=conf.getParameter<unsigned int>("tec_ringStartBit");
49  tecVals_.moduleStartBit_=conf.getParameter<unsigned int>("tec_moduleStartBit");
50  tecVals_.sterStartBit_=conf.getParameter<unsigned int>("tec_sterStartBit");
51  tecVals_.sideMask_=conf.getParameter<unsigned int>("tec_sideMask");
52  tecVals_.wheelMask_=conf.getParameter<unsigned int>("tec_wheelMask");
53  tecVals_.petal_fw_bwMask_=conf.getParameter<unsigned int>("tec_petal_fw_bwMask");
54  tecVals_.petalMask_=conf.getParameter<unsigned int>("tec_petalMask");
55  tecVals_.ringMask_=conf.getParameter<unsigned int>("tec_ringMask");
56  tecVals_.moduleMask_=conf.getParameter<unsigned int>("tec_moduleMask");
57  tecVals_.sterMask_=conf.getParameter<unsigned int>("tec_sterMask");
58  tibVals_.layerStartBit_=conf.getParameter<unsigned int>("tib_layerStartBit");
59  tibVals_.str_fw_bwStartBit_=conf.getParameter<unsigned int>("tib_str_fw_bwStartBit");
60  tibVals_.str_int_extStartBit_=conf.getParameter<unsigned int>("tib_str_int_extStartBit");
61  tibVals_.strStartBit_=conf.getParameter<unsigned int>("tib_strStartBit");
62  tibVals_.moduleStartBit_=conf.getParameter<unsigned int>("tib_moduleStartBit");
63  tibVals_.sterStartBit_=conf.getParameter<unsigned int>("tib_sterStartBit");
64  tibVals_.layerMask_=conf.getParameter<unsigned int>("tib_layerMask");
65  tibVals_.str_fw_bwMask_=conf.getParameter<unsigned int>("tib_str_fw_bwMask");
66  tibVals_.str_int_extMask_=conf.getParameter<unsigned int>("tib_str_int_extMask");
67  tibVals_.strMask_=conf.getParameter<unsigned int>("tib_strMask");
68  tibVals_.moduleMask_=conf.getParameter<unsigned int>("tib_moduleMask");
69  tibVals_.sterMask_=conf.getParameter<unsigned int>("tib_sterMask");
70  tidVals_.sideStartBit_=conf.getParameter<unsigned int>("tid_sideStartBit");
71  tidVals_.wheelStartBit_=conf.getParameter<unsigned int>("tid_wheelStartBit");
72  tidVals_.ringStartBit_=conf.getParameter<unsigned int>("tid_ringStartBit");
73  tidVals_.module_fw_bwStartBit_=conf.getParameter<unsigned int>("tid_module_fw_bwStartBit");
74  tidVals_.moduleStartBit_=conf.getParameter<unsigned int>("tid_moduleStartBit");
75  tidVals_.sterStartBit_=conf.getParameter<unsigned int>("tid_sterStartBit");
76  tidVals_.sideMask_=conf.getParameter<unsigned int>("tid_sideMask");
77  tidVals_.wheelMask_=conf.getParameter<unsigned int>("tid_wheelMask");
78  tidVals_.ringMask_=conf.getParameter<unsigned int>("tid_ringMask");
79  tidVals_.module_fw_bwMask_=conf.getParameter<unsigned int>("tid_module_fw_bwMask");
80  tidVals_.moduleMask_=conf.getParameter<unsigned int>("tid_moduleMask");
81  tidVals_.sterMask_=conf.getParameter<unsigned int>("tid_sterMask");
82  tobVals_.layerStartBit_=conf.getParameter<unsigned int>("tob_layerStartBit");
83  tobVals_.rod_fw_bwStartBit_=conf.getParameter<unsigned int>("tob_rod_fw_bwStartBit");
84  tobVals_.rodStartBit_=conf.getParameter<unsigned int>("tob_rodStartBit");
85  tobVals_.moduleStartBit_=conf.getParameter<unsigned int>("tob_moduleStartBit");
86  tobVals_.sterStartBit_=conf.getParameter<unsigned int>("tob_sterStartBit");
87  tobVals_.layerMask_=conf.getParameter<unsigned int>("tob_layerMask");
88  tobVals_.rod_fw_bwMask_=conf.getParameter<unsigned int>("tob_rod_fw_bwMask");
89  tobVals_.rodMask_=conf.getParameter<unsigned int>("tob_rodMask");
90  tobVals_.moduleMask_=conf.getParameter<unsigned int>("tob_moduleMask");
91  tobVals_.sterMask_=conf.getParameter<unsigned int>("tob_sterMask");
92 
93  setWhatProduced(this);
94 }
95 
96 
98 {
99 }
100 
101 void
103 {
105  ttc.add<unsigned int>("pxb_layerStartBit",16);
106  ttc.add<unsigned int>("pxb_ladderStartBit",8);
107  ttc.add<unsigned int>("pxb_moduleStartBit",2);
108  ttc.add<unsigned int>("pxb_layerMask",0xF);
109  ttc.add<unsigned int>("pxb_ladderMask",0xFF);
110  ttc.add<unsigned int>("pxb_moduleMask",0x3F);
111 
112  ttc.add<unsigned int>("pxf_sideStartBit",23);
113  ttc.add<unsigned int>("pxf_diskStartBit",16);
114  ttc.add<unsigned int>("pxf_bladeStartBit",10);
115  ttc.add<unsigned int>("pxf_panelStartBit",8);
116  ttc.add<unsigned int>("pxf_moduleStartBit",2);
117  ttc.add<unsigned int>("pxf_sideMask",0x3);
118  ttc.add<unsigned int>("pxf_diskMask",0xF);
119  ttc.add<unsigned int>("pxf_bladeMask",0x3F);
120  ttc.add<unsigned int>("pxf_panelMask",0x3);
121  ttc.add<unsigned int>("pxf_moduleMask",0x3F);
122 
123  ttc.add<unsigned int>("tec_sideStartBit",18);
124  ttc.add<unsigned int>("tec_wheelStartBit",14);
125  ttc.add<unsigned int>("tec_petal_fw_bwStartBit",12);
126  ttc.add<unsigned int>("tec_petalStartBit",8);
127  ttc.add<unsigned int>("tec_ringStartBit",5);
128  ttc.add<unsigned int>("tec_moduleStartBit",2);
129  ttc.add<unsigned int>("tec_sterStartBit",0);
130  ttc.add<unsigned int>("tec_sideMask",0x3);
131  ttc.add<unsigned int>("tec_wheelMask",0xF);
132  ttc.add<unsigned int>("tec_petal_fw_bwMask",0x3);
133  ttc.add<unsigned int>("tec_petalMask",0xF);
134  ttc.add<unsigned int>("tec_ringMask",0x7);
135  ttc.add<unsigned int>("tec_moduleMask",0x7);
136  ttc.add<unsigned int>("tec_sterMask",0x3);
137 
138  ttc.add<unsigned int>("tib_layerStartBit",14);
139  ttc.add<unsigned int>("tib_str_fw_bwStartBit",12);
140  ttc.add<unsigned int>("tib_str_int_extStartBit",10);
141  ttc.add<unsigned int>("tib_strStartBit",4);
142  ttc.add<unsigned int>("tib_moduleStartBit",2);
143  ttc.add<unsigned int>("tib_sterStartBit",0);
144  ttc.add<unsigned int>("tib_layerMask",0x7);
145  ttc.add<unsigned int>("tib_str_fw_bwMask",0x3);
146  ttc.add<unsigned int>("tib_str_int_extMask",0x3);
147  ttc.add<unsigned int>("tib_strMask",0x3F);
148  ttc.add<unsigned int>("tib_moduleMask",0x3);
149  ttc.add<unsigned int>("tib_sterMask",0x3);
150 
151  ttc.add<unsigned int>("tid_sideStartBit",13);
152  ttc.add<unsigned int>("tid_wheelStartBit",11);
153  ttc.add<unsigned int>("tid_ringStartBit",9);
154  ttc.add<unsigned int>("tid_module_fw_bwStartBit",7);
155  ttc.add<unsigned int>("tid_moduleStartBit",2);
156  ttc.add<unsigned int>("tid_sterStartBit",0);
157  ttc.add<unsigned int>("tid_sideMask",0x3);
158  ttc.add<unsigned int>("tid_wheelMask",0x3);
159  ttc.add<unsigned int>("tid_ringMask",0x3);
160  ttc.add<unsigned int>("tid_module_fw_bwMask",0x3);
161  ttc.add<unsigned int>("tid_moduleMask",0x1F);
162  ttc.add<unsigned int>("tid_sterMask",0x3);
163 
164  ttc.add<unsigned int>("tob_layerStartBit",14);
165  ttc.add<unsigned int>("tob_rod_fw_bwStartBit",12);
166  ttc.add<unsigned int>("tob_rodStartBit",5);
167  ttc.add<unsigned int>("tob_moduleStartBit",2);
168  ttc.add<unsigned int>("tob_sterStartBit",0);
169  ttc.add<unsigned int>("tob_layerMask",0x7);
170  ttc.add<unsigned int>("tob_rod_fw_bwMask",0x3);
171  ttc.add<unsigned int>("tob_rodMask",0x7F);
172  ttc.add<unsigned int>("tob_moduleMask",0x7);
173  ttc.add<unsigned int>("tob_sterMask",0x3);
174 
175  descriptions.add( "trackerTopologyConstants", ttc );
176 
178  ttcphase1.add<unsigned int>("pxb_layerStartBit",20);
179  ttcphase1.add<unsigned int>("pxb_ladderStartBit",12);
180  ttcphase1.add<unsigned int>("pxb_moduleStartBit",2);
181  ttcphase1.add<unsigned int>("pxb_layerMask",0xF);
182  ttcphase1.add<unsigned int>("pxb_ladderMask",0xFF);
183  ttcphase1.add<unsigned int>("pxb_moduleMask",0x3FF);
184 
185  ttcphase1.add<unsigned int>("pxf_sideStartBit",23);
186  ttcphase1.add<unsigned int>("pxf_diskStartBit",18);
187  ttcphase1.add<unsigned int>("pxf_bladeStartBit",12);
188  ttcphase1.add<unsigned int>("pxf_panelStartBit",10);
189  ttcphase1.add<unsigned int>("pxf_moduleStartBit",2);
190  ttcphase1.add<unsigned int>("pxf_sideMask",0x3);
191  ttcphase1.add<unsigned int>("pxf_diskMask",0xF);
192  ttcphase1.add<unsigned int>("pxf_bladeMask",0x3F);
193  ttcphase1.add<unsigned int>("pxf_panelMask",0x3);
194  ttcphase1.add<unsigned int>("pxf_moduleMask",0xFF);
195 
196  ttcphase1.add<unsigned int>("tec_sideStartBit",18);
197  ttcphase1.add<unsigned int>("tec_wheelStartBit",14);
198  ttcphase1.add<unsigned int>("tec_petal_fw_bwStartBit",12);
199  ttcphase1.add<unsigned int>("tec_petalStartBit",8);
200  ttcphase1.add<unsigned int>("tec_ringStartBit",5);
201  ttcphase1.add<unsigned int>("tec_moduleStartBit",2);
202  ttcphase1.add<unsigned int>("tec_sterStartBit",0);
203  ttcphase1.add<unsigned int>("tec_sideMask",0x3);
204  ttcphase1.add<unsigned int>("tec_wheelMask",0xF);
205  ttcphase1.add<unsigned int>("tec_petal_fw_bwMask",0x3);
206  ttcphase1.add<unsigned int>("tec_petalMask",0xF);
207  ttcphase1.add<unsigned int>("tec_ringMask",0x7);
208  ttcphase1.add<unsigned int>("tec_moduleMask",0x7);
209  ttcphase1.add<unsigned int>("tec_sterMask",0x3);
210 
211  ttcphase1.add<unsigned int>("tib_layerStartBit",14);
212  ttcphase1.add<unsigned int>("tib_str_fw_bwStartBit",12);
213  ttcphase1.add<unsigned int>("tib_str_int_extStartBit",10);
214  ttcphase1.add<unsigned int>("tib_strStartBit",4);
215  ttcphase1.add<unsigned int>("tib_moduleStartBit",2);
216  ttcphase1.add<unsigned int>("tib_sterStartBit",0);
217  ttcphase1.add<unsigned int>("tib_layerMask",0x7);
218  ttcphase1.add<unsigned int>("tib_str_fw_bwMask",0x3);
219  ttcphase1.add<unsigned int>("tib_str_int_extMask",0x3);
220  ttcphase1.add<unsigned int>("tib_strMask",0x3F);
221  ttcphase1.add<unsigned int>("tib_moduleMask",0x3);
222  ttcphase1.add<unsigned int>("tib_sterMask",0x3);
223 
224  ttcphase1.add<unsigned int>("tid_sideStartBit",13);
225  ttcphase1.add<unsigned int>("tid_wheelStartBit",11);
226  ttcphase1.add<unsigned int>("tid_ringStartBit",9);
227  ttcphase1.add<unsigned int>("tid_module_fw_bwStartBit",7);
228  ttcphase1.add<unsigned int>("tid_moduleStartBit",2);
229  ttcphase1.add<unsigned int>("tid_sterStartBit",0);
230  ttcphase1.add<unsigned int>("tid_sideMask",0x3);
231  ttcphase1.add<unsigned int>("tid_wheelMask",0x3);
232  ttcphase1.add<unsigned int>("tid_ringMask",0x3);
233  ttcphase1.add<unsigned int>("tid_module_fw_bwMask",0x3);
234  ttcphase1.add<unsigned int>("tid_moduleMask",0x1F);
235  ttcphase1.add<unsigned int>("tid_sterMask",0x3);
236 
237  ttcphase1.add<unsigned int>("tob_layerStartBit",14);
238  ttcphase1.add<unsigned int>("tob_rod_fw_bwStartBit",12);
239  ttcphase1.add<unsigned int>("tob_rodStartBit",5);
240  ttcphase1.add<unsigned int>("tob_moduleStartBit",2);
241  ttcphase1.add<unsigned int>("tob_sterStartBit",0);
242  ttcphase1.add<unsigned int>("tob_layerMask",0x7);
243  ttcphase1.add<unsigned int>("tob_rod_fw_bwMask",0x3);
244  ttcphase1.add<unsigned int>("tob_rodMask",0x7F);
245  ttcphase1.add<unsigned int>("tob_moduleMask",0x7);
246  ttcphase1.add<unsigned int>("tob_sterMask",0x3);
247 
248  descriptions.add( "trackerTopology2017Constants", ttcphase1 );
249 
251  ttcphase2.add<unsigned int>("pxb_layerStartBit",20);
252  ttcphase2.add<unsigned int>("pxb_ladderStartBit",12);
253  ttcphase2.add<unsigned int>("pxb_moduleStartBit",2);
254  ttcphase2.add<unsigned int>("pxb_layerMask",0xF);
255  ttcphase2.add<unsigned int>("pxb_ladderMask",0xFF);
256  ttcphase2.add<unsigned int>("pxb_moduleMask",0x3FF);
257 
258  ttcphase2.add<unsigned int>("pxf_sideStartBit",23);
259  ttcphase2.add<unsigned int>("pxf_diskStartBit",18);
260  ttcphase2.add<unsigned int>("pxf_bladeStartBit",12);
261  ttcphase2.add<unsigned int>("pxf_panelStartBit",10);
262  ttcphase2.add<unsigned int>("pxf_moduleStartBit",2);
263  ttcphase2.add<unsigned int>("pxf_sideMask",0x3);
264  ttcphase2.add<unsigned int>("pxf_diskMask",0xF);
265  ttcphase2.add<unsigned int>("pxf_bladeMask",0x3F);
266  ttcphase2.add<unsigned int>("pxf_panelMask",0x3);
267  ttcphase2.add<unsigned int>("pxf_moduleMask",0xFF);
268 
269  ttcphase2.add<unsigned int>("tec_sideStartBit",18);
270  ttcphase2.add<unsigned int>("tec_wheelStartBit",14);
271  ttcphase2.add<unsigned int>("tec_petal_fw_bwStartBit",12);
272  ttcphase2.add<unsigned int>("tec_petalStartBit",8);
273  ttcphase2.add<unsigned int>("tec_ringStartBit",5);
274  ttcphase2.add<unsigned int>("tec_moduleStartBit",2);
275  ttcphase2.add<unsigned int>("tec_sterStartBit",0);
276  ttcphase2.add<unsigned int>("tec_sideMask",0x3);
277  ttcphase2.add<unsigned int>("tec_wheelMask",0xF);
278  ttcphase2.add<unsigned int>("tec_petal_fw_bwMask",0x3);
279  ttcphase2.add<unsigned int>("tec_petalMask",0xF);
280  ttcphase2.add<unsigned int>("tec_ringMask",0x7);
281  ttcphase2.add<unsigned int>("tec_moduleMask",0x7);
282  ttcphase2.add<unsigned int>("tec_sterMask",0x3);
283 
284  ttcphase2.add<unsigned int>("tib_layerStartBit",14);
285  ttcphase2.add<unsigned int>("tib_str_fw_bwStartBit",12);
286  ttcphase2.add<unsigned int>("tib_str_int_extStartBit",10);
287  ttcphase2.add<unsigned int>("tib_strStartBit",4);
288  ttcphase2.add<unsigned int>("tib_moduleStartBit",2);
289  ttcphase2.add<unsigned int>("tib_sterStartBit",0);
290  ttcphase2.add<unsigned int>("tib_layerMask",0x7);
291  ttcphase2.add<unsigned int>("tib_str_fw_bwMask",0x3);
292  ttcphase2.add<unsigned int>("tib_str_int_extMask",0x3);
293  ttcphase2.add<unsigned int>("tib_strMask",0x3F);
294  ttcphase2.add<unsigned int>("tib_moduleMask",0x3);
295  ttcphase2.add<unsigned int>("tib_sterMask",0x3);
296 
297  ttcphase2.add<unsigned int>("tid_sideStartBit",23);
298  ttcphase2.add<unsigned int>("tid_wheelStartBit",18);
299  ttcphase2.add<unsigned int>("tid_ringStartBit",12);
300  ttcphase2.add<unsigned int>("tid_module_fw_bwStartBit",10);
301  ttcphase2.add<unsigned int>("tid_moduleStartBit",2);
302  ttcphase2.add<unsigned int>("tid_sterStartBit",0);
303  ttcphase2.add<unsigned int>("tid_sideMask",0x3);
304  ttcphase2.add<unsigned int>("tid_wheelMask",0xF);
305  ttcphase2.add<unsigned int>("tid_ringMask",0x3F);
306  ttcphase2.add<unsigned int>("tid_module_fw_bwMask",0x3);
307  ttcphase2.add<unsigned int>("tid_moduleMask",0xFF);
308  ttcphase2.add<unsigned int>("tid_sterMask",0x3);
309 
310  ttcphase2.add<unsigned int>("tob_layerStartBit",20);
311  ttcphase2.add<unsigned int>("tob_rod_fw_bwStartBit",12);
312  ttcphase2.add<unsigned int>("tob_rodStartBit",12);
313  ttcphase2.add<unsigned int>("tob_moduleStartBit",2);
314  ttcphase2.add<unsigned int>("tob_sterStartBit",0);
315  ttcphase2.add<unsigned int>("tob_layerMask",0xF);
316  ttcphase2.add<unsigned int>("tob_rod_fw_bwMask",0x0);
317  ttcphase2.add<unsigned int>("tob_rodMask",0xFF);
318  ttcphase2.add<unsigned int>("tob_moduleMask",0x3FF);
319  ttcphase2.add<unsigned int>("tob_sterMask",0x3);
320 
321  descriptions.add( "trackerTopology2023Constants", ttcphase2 );
322 }
323 
324 //
325 // member functions
326 //
327 
328 // ------------ method called to produce the data ------------
331 {
332  edm::LogInfo("TrackerTopologyEP") << "TrackerTopologyIdealEP::produce(const IdealGeometryRecord& iRecord)";
333 
335 
336  return myTopo ;
337 }
338 
339 
341 
TrackerTopology::TOBValues tobVals_
T getParameter(std::string const &) const
TrackerTopology::TIBValues tibVals_
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
TrackerTopologyEP(const edm::ParameterSet &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
tuple conf
Definition: dbtoconf.py:185
TrackerTopology::PixelBarrelValues pxbVals_
TrackerTopology::PixelEndcapValues pxfVals_
unsigned int module_fw_bwStartBit_
TrackerTopology::TIDValues tidVals_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
boost::shared_ptr< TrackerTopology > ReturnType
TrackerTopology::TECValues tecVals_
ReturnType produce(const IdealGeometryRecord &)