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
MTDTopologyEP Class Reference

#include <MTDTopologyEP.h>

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

Public Types

typedef std::shared_ptr< MTDTopologyReturnType
 
- 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

 MTDTopologyEP (const edm::ParameterSet &)
 
ReturnType produce (const MTDTopologyRcd &)
 
 ~MTDTopologyEP (void) override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ~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 PMTDParameters &)
 

Private Attributes

MTDTopology::BTLValues btlVals_
 
MTDTopology::ETLValues etlVals_
 

Additional Inherited Members

- Protected Member Functions inherited from edm::ESProducer
 ESProducer (const ESProducer &)=delete
 
ESProducer const & operator= (const ESProducer &)=delete
 
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::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 MTDTopologyEP.h.

Member Typedef Documentation

typedef std::shared_ptr<MTDTopology> MTDTopologyEP::ReturnType

Definition at line 20 of file MTDTopologyEP.h.

Constructor & Destructor Documentation

MTDTopologyEP::MTDTopologyEP ( const edm::ParameterSet conf)

Definition at line 10 of file MTDTopologyEP.cc.

References edm::ESProducer::setWhatProduced().

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

Definition at line 17 of file MTDTopologyEP.cc.

18 {
19 }

Member Function Documentation

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

Definition at line 22 of file MTDTopologyEP.cc.

References edm::ConfigurationDescriptions::add().

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

Definition at line 42 of file MTDTopologyEP.cc.

References btlVals_, DEFINE_FWK_EVENTSETUP_MODULE, etlVals_, MTDTopology::BTLValues::layerMask_, MTDTopology::ETLValues::layerMask_, MTDTopology::BTLValues::layerStartBit_, MTDTopology::ETLValues::layerStartBit_, MTDTopology::BTLValues::moduleMask_, MTDTopology::ETLValues::moduleMask_, MTDTopology::BTLValues::moduleStartBit_, MTDTopology::ETLValues::moduleStartBit_, MTDTopology::ETLValues::ringMask_, MTDTopology::ETLValues::ringStartBit_, MTDTopology::BTLValues::sideMask_, MTDTopology::ETLValues::sideMask_, MTDTopology::BTLValues::sideStartBit_, MTDTopology::ETLValues::sideStartBit_, MTDTopology::BTLValues::trayMask_, MTDTopology::BTLValues::trayStartBit_, and PMTDParameters::vitems_.

Referenced by produce().

43 {
44  btlVals_.sideStartBit_ = ptp.vitems_[0].vpars_[0]; // 16
45  btlVals_.layerStartBit_ = ptp.vitems_[0].vpars_[1]; // 16
46  btlVals_.trayStartBit_ = ptp.vitems_[0].vpars_[2]; // 8
47  btlVals_.moduleStartBit_ = ptp.vitems_[0].vpars_[3]; // 2
48  btlVals_.sideMask_ = ptp.vitems_[0].vpars_[4]; // 0xF
49  btlVals_.layerMask_ = ptp.vitems_[0].vpars_[5]; // 0xF
50  btlVals_.trayMask_ = ptp.vitems_[0].vpars_[6]; // 0xFF
51  btlVals_.moduleMask_ = ptp.vitems_[0].vpars_[7]; // 0x3F
52 
53  etlVals_.sideStartBit_ = ptp.vitems_[1].vpars_[0];
54  etlVals_.layerStartBit_ = ptp.vitems_[1].vpars_[1];
55  etlVals_.ringStartBit_ = ptp.vitems_[1].vpars_[2];
56  etlVals_.moduleStartBit_ = ptp.vitems_[1].vpars_[3];
57  etlVals_.sideMask_ = ptp.vitems_[1].vpars_[4];
58  etlVals_.layerMask_ = ptp.vitems_[1].vpars_[5];
59  etlVals_.ringMask_ = ptp.vitems_[1].vpars_[6];
60  etlVals_.moduleMask_ = ptp.vitems_[1].vpars_[7];
61 }
unsigned int ringMask_
Definition: MTDTopology.h:39
std::vector< Item > vitems_
unsigned int sideStartBit_
Definition: MTDTopology.h:22
unsigned int sideStartBit_
Definition: MTDTopology.h:33
unsigned int moduleMask_
Definition: MTDTopology.h:29
unsigned int moduleStartBit_
Definition: MTDTopology.h:25
unsigned int layerStartBit_
Definition: MTDTopology.h:34
unsigned int trayMask_
Definition: MTDTopology.h:28
unsigned int moduleStartBit_
Definition: MTDTopology.h:36
unsigned int sideMask_
Definition: MTDTopology.h:26
unsigned int trayStartBit_
Definition: MTDTopology.h:24
unsigned int ringStartBit_
Definition: MTDTopology.h:35
unsigned int moduleMask_
Definition: MTDTopology.h:40
MTDTopology::ETLValues etlVals_
Definition: MTDTopologyEP.h:30
unsigned int layerStartBit_
Definition: MTDTopology.h:23
unsigned int sideMask_
Definition: MTDTopology.h:37
unsigned int layerMask_
Definition: MTDTopology.h:27
MTDTopology::BTLValues btlVals_
Definition: MTDTopologyEP.h:29
unsigned int layerMask_
Definition: MTDTopology.h:38
MTDTopologyEP::ReturnType MTDTopologyEP::produce ( const MTDTopologyRcd iRecord)

Definition at line 29 of file MTDTopologyEP.cc.

References btlVals_, etlVals_, fillParameters(), and edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().

30 {
31  edm::LogInfo("MTDTopologyEP") << "MTDTopologyEP::produce(const MTDTopologyRcd& iRecord)";
33  iRecord.getRecord<PMTDParametersRcd>().get( ptp );
34  fillParameters( *ptp );
35 
36  ReturnType myTopo( new MTDTopology( btlVals_, etlVals_ ));
37 
38  return myTopo ;
39 }
std::shared_ptr< MTDTopology > ReturnType
Definition: MTDTopologyEP.h:20
void fillParameters(const PMTDParameters &)
MTDTopology::ETLValues etlVals_
Definition: MTDTopologyEP.h:30
MTDTopology::BTLValues btlVals_
Definition: MTDTopologyEP.h:29

Member Data Documentation

MTDTopology::BTLValues MTDTopologyEP::btlVals_
private

Definition at line 29 of file MTDTopologyEP.h.

Referenced by fillParameters(), and produce().

MTDTopology::ETLValues MTDTopologyEP::etlVals_
private

Definition at line 30 of file MTDTopologyEP.h.

Referenced by fillParameters(), and produce().