Go to the documentation of this file.
20 using ReturnType = std::unique_ptr<EcalSimulationParameters>;
34 : fromDD4Hep_(ps.getParameter<
bool>(
"fromDD4Hep")), name_(ps.getParameter<
std::
string>(
"name")) {
43 edm::LogVerbatim(
"EcalGeom") <<
"EcalSimParametersESModule::EcalSimParametersESModule called with dd4hep: "
50 desc.add<
bool>(
"fromDD4Hep",
false);
52 descriptions.
add(
"ecalSimulationParametersEB",
desc);
57 edm::LogVerbatim(
"EcalGeom") <<
"EcalSimParametersESModule::produce(const IdealGeometryRecord& iRecord)";
60 auto ptp = std::make_unique<EcalSimulationParameters>();
64 edm::LogVerbatim(
"EcalGeom") <<
"EcalSimParametersESModule::Try to access cms::DDCompactView";
70 edm::LogVerbatim(
"EcalGeom") <<
"EcalSimParametersESModule::Try to access DDCompactView";
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4Hep_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Compact representation of the geometrical detector hierarchy.
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
bool build(const DDCompactView *, const std::string &name, EcalSimulationParameters &)
EcalSimParametersESModule(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &)
std::unique_ptr< EcalSimulationParameters > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Log< level::Info, true > LogVerbatim
ReturnType produce(const IdealGeometryRecord &)