36 : fromDD4hep_(pset.getParameter<bool>(
"fromDD4hep")) {
47 desc.
add<
bool>(
"fromDD4hep",
false);
48 descriptions.
add(
"mtdParameters", desc);
52 auto ptp = std::make_unique<PMTDParameters>();
std::unique_ptr< PMTDParameters > ReturnType
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
ReturnType produce(const PMTDParametersRcd &)
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Compact representation of the geometrical detector hierarchy.
static void fillDescriptions(edm::ConfigurationDescriptions &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
MTDParametersFromDD builder
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool build(const DDCompactView *, PMTDParameters &)
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > dd4hepToken_
MTDParametersESModule(const edm::ParameterSet &)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > ddCompactToken_