CMS 3D CMS Logo

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

using ReturnType = std::unique_ptr< TrackerTopology >
 
- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
 
typedef std::vector< EventSetupRecordKeyKeys
 
typedef std::map< EventSetupRecordKey, KeyedProxiesRecordProxies
 

Public Member Functions

ReturnType produce (const TrackerTopologyRcd &)
 
 TrackerTopologyEP (const edm::ParameterSet &)
 
 ~TrackerTopologyEP (void) override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer ()(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval) override
 overrides DataProxyProvider method More...
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- 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 () noexcept(false)
 

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
 ESProducer (const ESProducer &)=delete
 
ESProducer const & operator= (const ESProducer &)=delete
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override
 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

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 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
TrackerTopologyEP::~TrackerTopologyEP ( void  )
override

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 40 of file TrackerTopologyEP.cc.

References TrackerTopology::PixelEndcapValues::bladeMask_, TrackerTopology::PixelEndcapValues::bladeStartBit_, DEFINE_FWK_EVENTSETUP_MODULE, 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().

41 {
42  pxbVals_.layerStartBit_ = ptp.vitems[0].vpars[0]; // 16
43  pxbVals_.ladderStartBit_ = ptp.vitems[0].vpars[1]; // 8
44  pxbVals_.moduleStartBit_ = ptp.vitems[0].vpars[2]; // 2
45  pxbVals_.layerMask_ = ptp.vitems[0].vpars[3]; // 0xF
46  pxbVals_.ladderMask_ = ptp.vitems[0].vpars[4]; // 0xFF
47  pxbVals_.moduleMask_ = ptp.vitems[0].vpars[5]; // 0x3F
48 
49  pxfVals_.sideStartBit_ = ptp.vitems[1].vpars[0];
50  pxfVals_.diskStartBit_ = ptp.vitems[1].vpars[1];
51  pxfVals_.bladeStartBit_ = ptp.vitems[1].vpars[2];
52  pxfVals_.panelStartBit_ = ptp.vitems[1].vpars[3];
53  pxfVals_.moduleStartBit_ = ptp.vitems[1].vpars[4];
54  pxfVals_.sideMask_ = ptp.vitems[1].vpars[5];
55  pxfVals_.diskMask_ = ptp.vitems[1].vpars[6];
56  pxfVals_.bladeMask_ = ptp.vitems[1].vpars[7];
57  pxfVals_.panelMask_ = ptp.vitems[1].vpars[8];
58  pxfVals_.moduleMask_ = ptp.vitems[1].vpars[9];
59 
60  // TEC: 6
61  tecVals_.sideStartBit_ = ptp.vitems[5].vpars[0];
62  tecVals_.wheelStartBit_ = ptp.vitems[5].vpars[1];
63  tecVals_.petal_fw_bwStartBit_ = ptp.vitems[5].vpars[2];
64  tecVals_.petalStartBit_ = ptp.vitems[5].vpars[3];
65  tecVals_.ringStartBit_ = ptp.vitems[5].vpars[4];
66  tecVals_.moduleStartBit_ = ptp.vitems[5].vpars[5];
67  tecVals_.sterStartBit_ = ptp.vitems[5].vpars[6];
68  tecVals_.sideMask_ = ptp.vitems[5].vpars[7];
69  tecVals_.wheelMask_ = ptp.vitems[5].vpars[8];
70  tecVals_.petal_fw_bwMask_ = ptp.vitems[5].vpars[9];
71  tecVals_.petalMask_ = ptp.vitems[5].vpars[10];
72  tecVals_.ringMask_ = ptp.vitems[5].vpars[11];
73  tecVals_.moduleMask_ = ptp.vitems[5].vpars[12];
74  tecVals_.sterMask_ = ptp.vitems[5].vpars[13];
75 
76  // TIB: 3
77  tibVals_.layerStartBit_ = ptp.vitems[2].vpars[0];
78  tibVals_.str_fw_bwStartBit_ = ptp.vitems[2].vpars[1];
79  tibVals_.str_int_extStartBit_ = ptp.vitems[2].vpars[2];
80  tibVals_.strStartBit_ = ptp.vitems[2].vpars[3];
81  tibVals_.moduleStartBit_ = ptp.vitems[2].vpars[4];
82  tibVals_.sterStartBit_ = ptp.vitems[2].vpars[5];
83  tibVals_.layerMask_ = ptp.vitems[2].vpars[6];
84  tibVals_.str_fw_bwMask_ = ptp.vitems[2].vpars[7];
85  tibVals_.str_int_extMask_ = ptp.vitems[2].vpars[8];
86  tibVals_.strMask_ = ptp.vitems[2].vpars[9];
87  tibVals_.moduleMask_ = ptp.vitems[2].vpars[10];
88  tibVals_.sterMask_ = ptp.vitems[2].vpars[11];
89 
90  // TID: 4
91  tidVals_.sideStartBit_= ptp.vitems[3].vpars[0];
92  tidVals_.wheelStartBit_= ptp.vitems[3].vpars[1];
93  tidVals_.ringStartBit_= ptp.vitems[3].vpars[2];
94  tidVals_.module_fw_bwStartBit_= ptp.vitems[3].vpars[3];
95  tidVals_.moduleStartBit_= ptp.vitems[3].vpars[4];
96  tidVals_.sterStartBit_= ptp.vitems[3].vpars[5];
97  tidVals_.sideMask_= ptp.vitems[3].vpars[6];
98  tidVals_.wheelMask_= ptp.vitems[3].vpars[7];
99  tidVals_.ringMask_= ptp.vitems[3].vpars[8];
100  tidVals_.module_fw_bwMask_= ptp.vitems[3].vpars[9];
101  tidVals_.moduleMask_= ptp.vitems[3].vpars[10];
102  tidVals_.sterMask_= ptp.vitems[3].vpars[11];
103 
104  // TOB: 5
105  tobVals_.layerStartBit_ = ptp.vitems[4].vpars[0];
106  tobVals_.rod_fw_bwStartBit_= ptp.vitems[4].vpars[1];
107  tobVals_.rodStartBit_= ptp.vitems[4].vpars[2];
108  tobVals_.moduleStartBit_= ptp.vitems[4].vpars[3];
109  tobVals_.sterStartBit_= ptp.vitems[4].vpars[4];
110  tobVals_.layerMask_= ptp.vitems[4].vpars[5];
111  tobVals_.rod_fw_bwMask_= ptp.vitems[4].vpars[6];
112  tobVals_.rodMask_= ptp.vitems[4].vpars[7];
113  tobVals_.moduleMask_= ptp.vitems[4].vpars[8];
114  tobVals_.sterMask_= ptp.vitems[4].vpars[9];
115 }
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 
36  return std::make_unique<TrackerTopology>( pxbVals_, pxfVals_, tecVals_, tibVals_, tidVals_, tobVals_ );
37 }
TrackerTopology::TOBValues tobVals_
TrackerTopology::TIBValues tibVals_
TrackerTopology::PixelBarrelValues pxbVals_
TrackerTopology::PixelEndcapValues pxfVals_
TrackerTopology::TIDValues tidVals_
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().