CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
TrackerTopologyEP Class Reference

#include <TrackerTopologyEP.h>

Inheritance diagram for TrackerTopologyEP:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Types

typedef boost::shared_ptr
< TrackerTopology
ReturnType
 
- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey, boost::shared_ptr
< DataProxy > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 

Public Member Functions

ReturnType produce (const IdealGeometryRecord &)
 
 TrackerTopologyEP (const edm::ParameterSet &)
 
 ~TrackerTopologyEP ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Private Attributes

TrackerTopology::PixelBarrelValues pxbVals_
 
TrackerTopology::PixelEndcapValues pxfVals_
 
TrackerTopology::TECValues tecVals_
 
TrackerTopology::TIBValues tibVals_
 
TrackerTopology::TIDValues tidVals_
 
TrackerTopology::TOBValues tobVals_
 

Additional Inherited Members

- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 

Detailed Description

Definition at line 26 of file TrackerTopologyEP.h.

Member Typedef Documentation

typedef boost::shared_ptr<TrackerTopology> TrackerTopologyEP::ReturnType

Definition at line 32 of file TrackerTopologyEP.h.

Constructor & Destructor Documentation

TrackerTopologyEP::TrackerTopologyEP ( const edm::ParameterSet conf)

Definition at line 24 of file TrackerTopologyEP.cc.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, edm::ParameterSet::getParameter(), TrackerTopology::PixelBarrelValues::ladderMask_, TrackerTopology::PixelBarrelValues::ladderStartBit_, TrackerTopology::PixelBarrelValues::layerMask_, TrackerTopology::TIBValues::layerMask_, TrackerTopology::TOBValues::layerMask_, TrackerTopology::PixelBarrelValues::layerStartBit_, TrackerTopology::TIBValues::layerStartBit_, TrackerTopology::TOBValues::layerStartBit_, TrackerTopology::TIDValues::module_fw_bwMask_, TrackerTopology::TIDValues::module_fw_bwStartBit_, TrackerTopology::PixelBarrelValues::moduleMask_, TrackerTopology::PixelEndcapValues::moduleMask_, TrackerTopology::TECValues::moduleMask_, TrackerTopology::TIBValues::moduleMask_, TrackerTopology::TIDValues::moduleMask_, TrackerTopology::TOBValues::moduleMask_, TrackerTopology::PixelBarrelValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::moduleStartBit_, TrackerTopology::TECValues::moduleStartBit_, TrackerTopology::TIBValues::moduleStartBit_, TrackerTopology::TIDValues::moduleStartBit_, TrackerTopology::TOBValues::moduleStartBit_, TrackerTopology::PixelEndcapValues::panelMask_, TrackerTopology::PixelEndcapValues::panelStartBit_, TrackerTopology::TECValues::petal_fw_bwMask_, TrackerTopology::TECValues::petal_fw_bwStartBit_, TrackerTopology::TECValues::petalMask_, TrackerTopology::TECValues::petalStartBit_, pxbVals_, pxfVals_, TrackerTopology::TECValues::ringMask_, TrackerTopology::TIDValues::ringMask_, TrackerTopology::TECValues::ringStartBit_, TrackerTopology::TIDValues::ringStartBit_, TrackerTopology::TOBValues::rod_fw_bwMask_, TrackerTopology::TOBValues::rod_fw_bwStartBit_, TrackerTopology::TOBValues::rodMask_, TrackerTopology::TOBValues::rodStartBit_, edm::ESProducer::setWhatProduced(), TrackerTopology::PixelEndcapValues::sideMask_, TrackerTopology::TECValues::sideMask_, TrackerTopology::TIDValues::sideMask_, TrackerTopology::PixelEndcapValues::sideStartBit_, TrackerTopology::TECValues::sideStartBit_, TrackerTopology::TIDValues::sideStartBit_, TrackerTopology::TECValues::sterMask_, TrackerTopology::TIBValues::sterMask_, TrackerTopology::TIDValues::sterMask_, TrackerTopology::TOBValues::sterMask_, TrackerTopology::TECValues::sterStartBit_, TrackerTopology::TIBValues::sterStartBit_, TrackerTopology::TIDValues::sterStartBit_, TrackerTopology::TOBValues::sterStartBit_, TrackerTopology::TIBValues::str_fw_bwMask_, TrackerTopology::TIBValues::str_fw_bwStartBit_, TrackerTopology::TIBValues::str_int_extMask_, TrackerTopology::TIBValues::str_int_extStartBit_, TrackerTopology::TIBValues::strMask_, TrackerTopology::TIBValues::strStartBit_, tecVals_, tibVals_, tidVals_, tobVals_, TrackerTopology::TECValues::wheelMask_, TrackerTopology::TIDValues::wheelMask_, TrackerTopology::TECValues::wheelStartBit_, and TrackerTopology::TIDValues::wheelStartBit_.

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 }
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
TrackerTopology::PixelBarrelValues pxbVals_
TrackerTopology::PixelEndcapValues pxfVals_
unsigned int module_fw_bwStartBit_
TrackerTopology::TIDValues tidVals_
TrackerTopology::TECValues tecVals_
TrackerTopologyEP::~TrackerTopologyEP ( )

Definition at line 97 of file TrackerTopologyEP.cc.

98 {
99 }

Member Function Documentation

void TrackerTopologyEP::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 102 of file TrackerTopologyEP.cc.

References edm::ConfigurationDescriptions::add(), and edm::ParameterSetDescription::add().

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 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
TrackerTopologyEP::ReturnType TrackerTopologyEP::produce ( const IdealGeometryRecord iRecord)

Definition at line 184 of file TrackerTopologyEP.cc.

References pxbVals_, pxfVals_, tecVals_, tibVals_, tidVals_, and tobVals_.

185 {
186  edm::LogInfo("TrackerTopologyEP") << "TrackerTopologyIdealEP::produce(const IdealGeometryRecord& iRecord)";
187 
189 
190  return myTopo ;
191 }
TrackerTopology::TOBValues tobVals_
TrackerTopology::TIBValues tibVals_
TrackerTopology::PixelBarrelValues pxbVals_
TrackerTopology::PixelEndcapValues pxfVals_
TrackerTopology::TIDValues tidVals_
boost::shared_ptr< TrackerTopology > ReturnType
TrackerTopology::TECValues tecVals_

Member Data Documentation

TrackerTopology::PixelBarrelValues TrackerTopologyEP::pxbVals_
private

Definition at line 40 of file TrackerTopologyEP.h.

Referenced by produce(), and TrackerTopologyEP().

TrackerTopology::PixelEndcapValues TrackerTopologyEP::pxfVals_
private

Definition at line 41 of file TrackerTopologyEP.h.

Referenced by produce(), and TrackerTopologyEP().

TrackerTopology::TECValues TrackerTopologyEP::tecVals_
private

Definition at line 42 of file TrackerTopologyEP.h.

Referenced by produce(), and TrackerTopologyEP().

TrackerTopology::TIBValues TrackerTopologyEP::tibVals_
private

Definition at line 43 of file TrackerTopologyEP.h.

Referenced by produce(), and TrackerTopologyEP().

TrackerTopology::TIDValues TrackerTopologyEP::tidVals_
private

Definition at line 44 of file TrackerTopologyEP.h.

Referenced by produce(), and TrackerTopologyEP().

TrackerTopology::TOBValues TrackerTopologyEP::tobVals_
private

Definition at line 45 of file TrackerTopologyEP.h.

Referenced by produce(), and TrackerTopologyEP().