test
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 }
177 
178 //
179 // member functions
180 //
181 
182 // ------------ method called to produce the data ------------
185 {
186  edm::LogInfo("TrackerTopologyEP") << "TrackerTopologyIdealEP::produce(const IdealGeometryRecord& iRecord)";
187 
189 
190  return myTopo ;
191 }
192 
193 
195 
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 &)