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

typedef std::shared_ptr< FastTimeParametersReturnType
 
- 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)
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()(false)
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer () noexcept(false)
 
- 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

std::vector< std::string > name_
 
std::vector< int > type_
 

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::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())
 
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 15 of file FastTimeParametersESModule.cc.

Member Typedef Documentation

Definition at line 20 of file FastTimeParametersESModule.cc.

Constructor & Destructor Documentation

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

Definition at line 31 of file FastTimeParametersESModule.cc.

References gather_cfg::cout, edm::ParameterSet::getUntrackedParameter(), gen::k, name_, edm::ESProducer::setWhatProduced(), and type_.

31  {
32 
33  name_ = iC.getUntrackedParameter<std::vector<std::string> >("Names");
34  type_ = iC.getUntrackedParameter<std::vector<int> >("Types");
35  edm::LogInfo("HGCalGeom") << "FastTimeParametersESModule for "
36  << name_.size() << " types";
37 #ifdef EDM_ML_DEBUG
38  std::cout << "FastTimeParametersESModule for " << name_.size() << " types:";
39  for (unsigned int k=0; k<name_.size(); ++k)
40  std::cout << " [" << k << "] " << name_[k] << ":" << type_[k];
41  std::cout << std::endl;
42 #endif
43  setWhatProduced(this);
44 }
T getUntrackedParameter(std::string const &, T const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
int k[5][pyjets_maxn]
std::vector< std::string > name_
FastTimeParametersESModule::~FastTimeParametersESModule ( void  )

Definition at line 46 of file FastTimeParametersESModule.cc.

46 {}

Member Function Documentation

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

Definition at line 22 of file FastTimeParametersESModule.cc.

References produce().

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

Definition at line 49 of file FastTimeParametersESModule.cc.

References FastTimeParametersFromDD::build(), gather_cfg::cout, DEFINE_FWK_EVENTSETUP_MODULE, FastTimeParameters::geomParBarrel_, FastTimeParameters::geomParEndcap_, edm::eventsetup::EventSetupRecord::get(), gen::k, name_, FastTimeParameters::nEtaEndcap_, FastTimeParameters::nPhiBarrel_, FastTimeParameters::nPhiEndcap_, FastTimeParameters::nZBarrel_, and type_.

Referenced by fillDescriptions().

49  {
50  edm::LogInfo("HGCalGeom")
51  << "FastTimeParametersESModule::produce(const IdealGeometryRecord& iRecord)";
53  iRecord.get(cpv);
54 
57  for (unsigned int k=0; k<name_.size(); ++k)
58  builder.build(&(*cpv), *ptp, name_[k], type_[k]);
59 
60 #ifdef EDM_ML_DEBUG
61  std::cout << "FastTimeParametersESModule:: Barrel Parameters: "
62  << " number of cells along z|phi = " << ptp->nZBarrel_ << "|"
63  << ptp->nPhiBarrel_ << " Geometry parameters = ( ";
64  for (unsigned k=0; k<ptp->geomParBarrel_.size(); ++k)
65  std::cout << "[" << k << "] " << ptp->geomParBarrel_[k] << " ";
66  std::cout << ")" << std::endl;
67  std::cout << "FastTimeParametersESModule:: Endcap Parameters: "
68  << " number of cells along eta|phi = " << ptp->nEtaEndcap_ << "|"
69  << ptp->nPhiEndcap_ << " Geometry parameters = ( ";
70  for (unsigned k=0; k<ptp->geomParEndcap_.size(); ++k)
71  std::cout << "[" << k << "] " << ptp->geomParEndcap_[k] << " ";
72  std::cout << ")" << std::endl;
73 #endif
74  return ReturnType(ptp) ;
75 }
std::shared_ptr< FastTimeParameters > ReturnType
std::vector< double > geomParEndcap_
void get(HolderT &iHolder) const
int k[5][pyjets_maxn]
std::vector< double > geomParBarrel_
bool build(const DDCompactView *, FastTimeParameters &, const std::string &, const int)
std::vector< std::string > name_

Member Data Documentation

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

Definition at line 27 of file FastTimeParametersESModule.cc.

Referenced by FastTimeParametersESModule(), and produce().

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