48 const std::vector<std::string>
names_;
54 : fromDD4hep_(iConfig.getParameter<
bool>(
"fromDD4hep")),
69 std::vector<std::string>
names = {
"MuonCommonNumbering",
77 "MuonBarrelSuperLayer",
87 "MuonRpcChamberMiddle",
88 "MuonRpcChamberRight",
93 "MuonRpcEndcapSector",
94 "MuonRpcEndcapChamberB1",
95 "MuonRpcEndcapChamberB2",
96 "MuonRpcEndcapChamberB3",
97 "MuonRpcEndcapChamberC1",
98 "MuonRpcEndcapChamberC2",
99 "MuonRpcEndcapChamberC3",
100 "MuonRpcEndcapChamberE1",
101 "MuonRpcEndcapChamberE2",
102 "MuonRpcEndcapChamberE3",
103 "MuonRpcEndcapChamberF1",
104 "MuonRpcEndcapChamberF2",
105 "MuonRpcEndcapChamberF3",
106 "MuonEndcapStation1",
107 "MuonEndcapStation2",
108 "MuonEndcapStation3",
109 "MuonEndcapStation4",
110 "MuonEndcapSubrings",
120 desc.add<
bool>(
"fromDD4hep",
false);
121 desc.add<std::vector<std::string>>(
"names",
names);
122 descriptions.
add(
"muonOffsetESProducer",
desc);
127 edm::LogVerbatim(
"MuonGeom") <<
"MuonOffsetESProducer::produce(const IdealGeometryRecord& iRecord)";
130 auto ptp = std::make_unique<MuonOffsetMap>();
135 edm::LogVerbatim(
"MuonGeom") <<
"MuonOffsetESProducer::Try to access cms::DDCompactView";
138 builder.build(&(*cpv), *ptp);
141 edm::LogVerbatim(
"MuonGeom") <<
"MuonOffsetESProducer::Try to access DDCompactView";
144 builder.build(&(*cpv), *ptp);
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
edm::ESGetToken< DDCompactView, IdealGeometryRecord > cpvTokenDDD_
std::unique_ptr< MuonOffsetMap > ReturnType
Compact representation of the geometrical detector hierarchy.
const std::string names[nVars_]
ReturnType produce(const IdealGeometryRecord &)
static void fillDescriptions(edm::ConfigurationDescriptions &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > cpvTokenDD4hep_
MuonOffsetESProducer(const edm::ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const std::vector< std::string > names_