CMS 3D CMS Logo

MTDParametersESModule.cc
Go to the documentation of this file.
13 
14 #include <memory>
15 
17 public:
19 
20  using ReturnType = std::unique_ptr<PMTDParameters>;
21 
23 
25 
26 private:
29 };
30 
33  edm::LogInfo("TRACKER") << "MTDParametersESModule::MTDParametersESModule";
34 }
35 
38  descriptions.add("mtdParameters", desc);
39 }
40 
42  edm::LogInfo("MTDParametersESModule") << "MTDParametersESModule::produce(const PMTDParametersRcd& iRecord)"
43  << std::endl;
44  auto cpv = iRecord.getTransientHandle(compactViewToken_);
45  auto ptp = std::make_unique<PMTDParameters>();
46  builder.build(cpv.product(), *ptp);
47 
48  return ptp;
49 }
50 
std::unique_ptr< PMTDParameters > ReturnType
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
ReturnType produce(const PMTDParametersRcd &)
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
static void fillDescriptions(edm::ConfigurationDescriptions &)
#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 &)
const edm::ESGetToken< DDCompactView, IdealGeometryRecord > compactViewToken_