Go to the documentation of this file.
37 : fromDDD_(
p.getParameter<
bool>(
"fromDDD")), fromDD4hep_(
p.getParameter<
bool>(
"fromDD4hep")) {
52 descDB.
add<
bool>(
"fromDDD",
false);
53 descDB.
add<
bool>(
"fromDD4hep",
false);
54 descriptions.
add(
"trackerNumberingGeometryDB", descDB);
57 desc.add<
bool>(
"fromDDD",
true);
58 desc.add<
bool>(
"fromDD4hep",
false);
59 descriptions.
add(
"trackerNumberingGeometry",
desc);
62 descDD4hep.
add<
bool>(
"fromDDD",
false);
63 descDD4hep.
add<
bool>(
"fromDD4hep",
true);
64 descriptions.
add(
"DD4hep_trackerNumberingGeometry", descDD4hep);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static std::unique_ptr< GeometricDet > construct(const PGeometricDet &pgd)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::unique_ptr< GeometricDet > produce(const IdealGeometryRecord &)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
std::vector< double > const & vector(std::string_view iKey) const
returns an empty container if not found
edm::ESGetToken< PGeometricDet, IdealGeometryRecord > pgToken_
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
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::vector< T > getVector(const std::string &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
~TrackerGeometricDetESModule(void) override
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
TrackerGeometricDetESModule(const edm::ParameterSet &p)
std::unique_ptr< GeometricDet > construct(DDCompactView const &cpv, std::vector< int > const &detidShifts)
edm::ESGetToken< DDCompactView, IdealGeometryRecord > ddToken_
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > dd4hepToken_