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 #include "TrackerTopologyEP.h"
9 
11 {
12  edm::LogInfo("TRACKER") << "TrackerTopologyEP::TrackerTopologyEP";
13 
14  setWhatProduced(this);
15 }
16 
18 {
19 }
20 
21 void
23 {
25  descriptions.add( "trackerTopology", ttc );
26 }
27 
30 {
31  edm::LogInfo("TrackerTopologyEP") << "TrackerTopologyEP::produce(const TrackerTopologyRcd& iRecord)";
33  iRecord.getRecord<PTrackerParametersRcd>().get( ptp );
34  fillParameters( *ptp );
35 
37 
38  return myTopo ;
39 }
40 
41 void
43 {
44  pxbVals_.layerStartBit_ = ptp.vitems[0].vpars[0]; // 16
45  pxbVals_.ladderStartBit_ = ptp.vitems[0].vpars[1]; // 8
46  pxbVals_.moduleStartBit_ = ptp.vitems[0].vpars[2]; // 2
47  pxbVals_.layerMask_ = ptp.vitems[0].vpars[3]; // 0xF
48  pxbVals_.ladderMask_ = ptp.vitems[0].vpars[4]; // 0xFF
49  pxbVals_.moduleMask_ = ptp.vitems[0].vpars[5]; // 0x3F
50 
51  pxfVals_.sideStartBit_ = ptp.vitems[1].vpars[0];
52  pxfVals_.diskStartBit_ = ptp.vitems[1].vpars[1];
53  pxfVals_.bladeStartBit_ = ptp.vitems[1].vpars[2];
54  pxfVals_.panelStartBit_ = ptp.vitems[1].vpars[3];
55  pxfVals_.moduleStartBit_ = ptp.vitems[1].vpars[4];
56  pxfVals_.sideMask_ = ptp.vitems[1].vpars[5];
57  pxfVals_.diskMask_ = ptp.vitems[1].vpars[6];
58  pxfVals_.bladeMask_ = ptp.vitems[1].vpars[7];
59  pxfVals_.panelMask_ = ptp.vitems[1].vpars[8];
60  pxfVals_.moduleMask_ = ptp.vitems[1].vpars[9];
61 
62  // TEC: 6
63  tecVals_.sideStartBit_ = ptp.vitems[5].vpars[0];
64  tecVals_.wheelStartBit_ = ptp.vitems[5].vpars[1];
65  tecVals_.petal_fw_bwStartBit_ = ptp.vitems[5].vpars[2];
66  tecVals_.petalStartBit_ = ptp.vitems[5].vpars[3];
67  tecVals_.ringStartBit_ = ptp.vitems[5].vpars[4];
68  tecVals_.moduleStartBit_ = ptp.vitems[5].vpars[5];
69  tecVals_.sterStartBit_ = ptp.vitems[5].vpars[6];
70  tecVals_.sideMask_ = ptp.vitems[5].vpars[7];
71  tecVals_.wheelMask_ = ptp.vitems[5].vpars[8];
72  tecVals_.petal_fw_bwMask_ = ptp.vitems[5].vpars[9];
73  tecVals_.petalMask_ = ptp.vitems[5].vpars[10];
74  tecVals_.ringMask_ = ptp.vitems[5].vpars[11];
75  tecVals_.moduleMask_ = ptp.vitems[5].vpars[12];
76  tecVals_.sterMask_ = ptp.vitems[5].vpars[13];
77 
78  // TIB: 3
79  tibVals_.layerStartBit_ = ptp.vitems[2].vpars[0];
80  tibVals_.str_fw_bwStartBit_ = ptp.vitems[2].vpars[1];
81  tibVals_.str_int_extStartBit_ = ptp.vitems[2].vpars[2];
82  tibVals_.strStartBit_ = ptp.vitems[2].vpars[3];
83  tibVals_.moduleStartBit_ = ptp.vitems[2].vpars[4];
84  tibVals_.sterStartBit_ = ptp.vitems[2].vpars[5];
85  tibVals_.layerMask_ = ptp.vitems[2].vpars[6];
86  tibVals_.str_fw_bwMask_ = ptp.vitems[2].vpars[7];
87  tibVals_.str_int_extMask_ = ptp.vitems[2].vpars[8];
88  tibVals_.strMask_ = ptp.vitems[2].vpars[9];
89  tibVals_.moduleMask_ = ptp.vitems[2].vpars[10];
90  tibVals_.sterMask_ = ptp.vitems[2].vpars[11];
91 
92  // TID: 4
93  tidVals_.sideStartBit_= ptp.vitems[3].vpars[0];
94  tidVals_.wheelStartBit_= ptp.vitems[3].vpars[1];
95  tidVals_.ringStartBit_= ptp.vitems[3].vpars[2];
96  tidVals_.module_fw_bwStartBit_= ptp.vitems[3].vpars[3];
97  tidVals_.moduleStartBit_= ptp.vitems[3].vpars[4];
98  tidVals_.sterStartBit_= ptp.vitems[3].vpars[5];
99  tidVals_.sideMask_= ptp.vitems[3].vpars[6];
100  tidVals_.wheelMask_= ptp.vitems[3].vpars[7];
101  tidVals_.ringMask_= ptp.vitems[3].vpars[8];
102  tidVals_.module_fw_bwMask_= ptp.vitems[3].vpars[9];
103  tidVals_.moduleMask_= ptp.vitems[3].vpars[10];
104  tidVals_.sterMask_= ptp.vitems[3].vpars[11];
105 
106  // TOB: 5
107  tobVals_.layerStartBit_ = ptp.vitems[4].vpars[0];
108  tobVals_.rod_fw_bwStartBit_= ptp.vitems[4].vpars[1];
109  tobVals_.rodStartBit_= ptp.vitems[4].vpars[2];
110  tobVals_.moduleStartBit_= ptp.vitems[4].vpars[3];
111  tobVals_.sterStartBit_= ptp.vitems[4].vpars[4];
112  tobVals_.layerMask_= ptp.vitems[4].vpars[5];
113  tobVals_.rod_fw_bwMask_= ptp.vitems[4].vpars[6];
114  tobVals_.rodMask_= ptp.vitems[4].vpars[7];
115  tobVals_.moduleMask_= ptp.vitems[4].vpars[8];
116  tobVals_.sterMask_= ptp.vitems[4].vpars[9];
117 }
118 
120 
TrackerTopology::TOBValues tobVals_
std::vector< Item > vitems
ReturnType produce(const TrackerTopologyRcd &)
TrackerTopology::TIBValues tibVals_
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
TrackerTopologyEP(const edm::ParameterSet &)
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_
void fillParameters(const PTrackerParameters &)