CMS 3D CMS Logo

HcalParametersESModule.cc
Go to the documentation of this file.
11 
12 #include <memory>
13 
14 
16 public:
18  ~HcalParametersESModule( void ) override;
19 
20  using ReturnType = std::unique_ptr<HcalParameters>;
21 
23 
25 
26 private:
28 };
29 
32  edm::LogInfo("HCAL") << "HcalParametersESModule::HcalParametersESModule";
33 }
34 
36 
39  descriptions.add( "hcalParameters", desc );
40 }
41 
44  edm::LogInfo("HcalESModule")
45  << "HcalParametersESModule::produce(const HcalParametersRcd& iRecord)";
47 
48  auto ptp = std::make_unique<HcalParameters>();
49  HcalParametersFromDD builder;
50  builder.build( &(*cpv), *ptp );
51 
52  return ptp;
53 }
54 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
bool build(const DDCompactView *, HcalParameters &)
~HcalParametersESModule(void) override
ReturnType produce(const HcalParametersRcd &)
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::unique_ptr< HcalParameters > ReturnType
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
static void fillDescriptions(edm::ConfigurationDescriptions &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HcalParametersESModule(const edm::ParameterSet &)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvToken_