test
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 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,
edm::propagate_const
< std::shared_ptr< DataProxy > > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 

Public Member Functions

ReturnType produce (const TrackerTopologyRcd &)
 
 TrackerTopologyEP (const edm::ParameterSet &)
 
 ~TrackerTopologyEP (void)
 
- 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 Member Functions

void fillParameters (const PTrackerParameters &)
 

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 14 of file TrackerTopologyEP.h.

Member Typedef Documentation

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

Definition at line 20 of file TrackerTopologyEP.h.

Constructor & Destructor Documentation

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

Definition at line 10 of file TrackerTopologyEP.cc.

References edm::ESProducer::setWhatProduced().

11 {
12  edm::LogInfo("TRACKER") << "TrackerTopologyEP::TrackerTopologyEP";
13 
14  setWhatProduced(this);
15 }
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
TrackerTopologyEP::~TrackerTopologyEP ( void  )

Definition at line 17 of file TrackerTopologyEP.cc.

18 {
19 }

Member Function Documentation

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

Definition at line 22 of file TrackerTopologyEP.cc.

References edm::ConfigurationDescriptions::add().

23 {
25  descriptions.add( "trackerTopology", ttc );
26 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void TrackerTopologyEP::fillParameters ( const PTrackerParameters ptp)
private

Definition at line 42 of file TrackerTopologyEP.cc.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, TrackerTopology::PixelEndcapValues::diskMask_, TrackerTopology::PixelEndcapValues::diskStartBit_, 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_, 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_, PTrackerParameters::vitems, TrackerTopology::TECValues::wheelMask_, TrackerTopology::TIDValues::wheelMask_, TrackerTopology::TECValues::wheelStartBit_, and TrackerTopology::TIDValues::wheelStartBit_.

Referenced by produce().

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 }
TrackerTopology::TOBValues tobVals_
std::vector< Item > vitems
TrackerTopology::TIBValues tibVals_
TrackerTopology::PixelBarrelValues pxbVals_
TrackerTopology::PixelEndcapValues pxfVals_
unsigned int module_fw_bwStartBit_
TrackerTopology::TIDValues tidVals_
TrackerTopology::TECValues tecVals_
TrackerTopologyEP::ReturnType TrackerTopologyEP::produce ( const TrackerTopologyRcd iRecord)

Definition at line 29 of file TrackerTopologyEP.cc.

References fillParameters(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), pxbVals_, pxfVals_, tecVals_, tibVals_, tidVals_, and tobVals_.

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 }
TrackerTopology::TOBValues tobVals_
TrackerTopology::TIBValues tibVals_
TrackerTopology::PixelBarrelValues pxbVals_
TrackerTopology::PixelEndcapValues pxfVals_
TrackerTopology::TIDValues tidVals_
boost::shared_ptr< TrackerTopology > ReturnType
TrackerTopology::TECValues tecVals_
void fillParameters(const PTrackerParameters &)

Member Data Documentation

TrackerTopology::PixelBarrelValues TrackerTopologyEP::pxbVals_
private

Definition at line 29 of file TrackerTopologyEP.h.

Referenced by fillParameters(), and produce().

TrackerTopology::PixelEndcapValues TrackerTopologyEP::pxfVals_
private

Definition at line 30 of file TrackerTopologyEP.h.

Referenced by fillParameters(), and produce().

TrackerTopology::TECValues TrackerTopologyEP::tecVals_
private

Definition at line 31 of file TrackerTopologyEP.h.

Referenced by fillParameters(), and produce().

TrackerTopology::TIBValues TrackerTopologyEP::tibVals_
private

Definition at line 32 of file TrackerTopologyEP.h.

Referenced by fillParameters(), and produce().

TrackerTopology::TIDValues TrackerTopologyEP::tidVals_
private

Definition at line 33 of file TrackerTopologyEP.h.

Referenced by fillParameters(), and produce().

TrackerTopology::TOBValues TrackerTopologyEP::tobVals_
private

Definition at line 34 of file TrackerTopologyEP.h.

Referenced by fillParameters(), and produce().