CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
FastTimeParametersESModule Class Reference
Inheritance diagram for FastTimeParametersESModule:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Types

using ReturnType = std::unique_ptr< FastTimeParameters >
 
- 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

 FastTimeParametersESModule (const edm::ParameterSet &)
 
ReturnType produce (const IdealGeometryRecord &)
 
 ~FastTimeParametersESModule (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 &)
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Private Attributes

edm::ESGetToken< DDCompactView, IdealGeometryRecordcpvToken_
 
std::vector< std::string > name_
 
std::vector< int > type_
 

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 13 of file FastTimeParametersESModule.cc.

Member Typedef Documentation

Definition at line 18 of file FastTimeParametersESModule.cc.

Constructor & Destructor Documentation

FastTimeParametersESModule::FastTimeParametersESModule ( const edm::ParameterSet iC)

Definition at line 30 of file FastTimeParametersESModule.cc.

References gen::k, name_, edm::ESProducer::setWhatProduced(), and type_.

30  :
32 {
33  name_ = iC.getUntrackedParameter<std::vector<std::string> >("Names");
34  type_ = iC.getUntrackedParameter<std::vector<int> >("Types");
35 #ifdef EDM_ML_DEBUG
36  edm::LogVerbatim("HGCalGeom")
37  << "FastTimeParametersESModule for " << name_.size() << " types:";
38  for (unsigned int k = 0; k < name_.size(); ++k)
39  edm::LogVerbatim("HGCalGeom")
40  << " [" << k << "] " << name_[k] << ":" << type_[k];
41 #endif
42 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
T getUntrackedParameter(std::string const &, T const &) const
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
int k[5][pyjets_maxn]
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvToken_
std::vector< std::string > name_
FastTimeParametersESModule::~FastTimeParametersESModule ( void  )
override

Definition at line 44 of file FastTimeParametersESModule.cc.

44 {}

Member Function Documentation

static void FastTimeParametersESModule::fillDescriptions ( edm::ConfigurationDescriptions )
inlinestatic

Definition at line 20 of file FastTimeParametersESModule.cc.

References produce().

20 {}
FastTimeParametersESModule::ReturnType FastTimeParametersESModule::produce ( const IdealGeometryRecord iRecord)

Definition at line 46 of file FastTimeParametersESModule.cc.

References FastTimeParametersFromDD::build(), cpvToken_, DEFINE_FWK_EVENTSETUP_MODULE, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getTransientHandle(), gen::k, name_, edm::ESTransientHandle< T >::product(), and type_.

Referenced by fillDescriptions().

47  {
48  edm::LogVerbatim("HGCalGeom")
49  << "FastTimeParametersESModule::produce(const IdealGeometryRecord& iRecord)";
51 
52  auto ptp = std::make_unique<FastTimeParameters>();
54  for (unsigned int k = 0; k < name_.size(); ++k)
55  builder.build(cpv.product(), *ptp, name_[k], type_[k]);
56 
57 #ifdef EDM_ML_DEBUG
58  edm::LogVerbatim("HGCalGeom")
59  << "FastTimeParametersESModule:: Barrel Parameters: "
60  << " number of cells along z|phi = " << ptp->nZBarrel_ << "|"
61  << ptp->nPhiBarrel_ << " Geometry parameters:";
62  for (unsigned k = 0; k < ptp->geomParBarrel_.size(); ++k)
63  edm::LogVerbatim("HGCalGeom")
64  << "[" << k << "] " << ptp->geomParBarrel_[k];
65  edm::LogVerbatim("HGCalGeom")
66  << "FastTimeParametersESModule:: Endcap Parameters: "
67  << " number of cells along eta|phi = " << ptp->nEtaEndcap_ << "|"
68  << ptp->nPhiEndcap_ << " Geometry parameters:";
69  for (unsigned k = 0; k < ptp->geomParEndcap_.size(); ++k)
70  edm::LogVerbatim("HGCalGeom")
71  << "[" << k << "] " << ptp->geomParEndcap_[k];
72 #endif
73  return ptp;
74 }
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
int k[5][pyjets_maxn]
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvToken_
bool build(const DDCompactView *, FastTimeParameters &, const std::string &, const int)
T const * product() const
std::vector< std::string > name_

Member Data Documentation

edm::ESGetToken<DDCompactView, IdealGeometryRecord> FastTimeParametersESModule::cpvToken_
private

Definition at line 25 of file FastTimeParametersESModule.cc.

Referenced by produce().

std::vector<std::string> FastTimeParametersESModule::name_
private

Definition at line 26 of file FastTimeParametersESModule.cc.

Referenced by FastTimeParametersESModule(), and produce().

std::vector<int> FastTimeParametersESModule::type_
private