CMS 3D CMS Logo

MTDParametersESModule.cc
Go to the documentation of this file.
12 
14 {
15  edm::LogInfo("TRACKER") << "MTDParametersESModule::MTDParametersESModule";
16 
17  setWhatProduced(this);
18 }
19 
21 {
22 }
23 
24 void
26 {
28  descriptions.add( "mtdParameters", desc );
29 }
30 
33 {
34  edm::LogInfo("MTDParametersESModule") << "MTDParametersESModule::produce(const PMTDParametersRcd& iRecord)" << std::endl;
36  iRecord.getRecord<IdealGeometryRecord>().get( cpv );
37 
38  auto ptp = std::make_unique<PMTDParameters>();
39  builder.build( &(*cpv), *ptp );
40 
41  return ptp;
42 }
43 
std::unique_ptr< PMTDParameters > ReturnType
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
ReturnType produce(const PMTDParametersRcd &)
static void fillDescriptions(edm::ConfigurationDescriptions &)
~MTDParametersESModule(void) override
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
MTDParametersFromDD builder
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool build(const DDCompactView *, PMTDParameters &)
MTDParametersESModule(const edm::ParameterSet &)