15 auto cc = setWhatProduced(
this, myName);
16 trackerToken_ =
cc.consumes();
17 muonToken_ =
cc.consumes();
18 mtdToken_ =
cc.consumes();
24 auto const&
tracker = iRecord.
get(trackerToken_);
25 auto const&
muon = iRecord.
get(muonToken_);
30 mtd = mtdRecord->getHandle(mtdToken_);
32 LogInfo(
"GlobalDetLayergGeometryBuilder") <<
"No MTD geometry is available.";
35 LogInfo(
"GlobalDetLayerGeometryBuilder") <<
"No MTDRecoGeometryRecord is available.";
40 return std::make_unique<GlobalDetLayerGeometry>(&
tracker, &
muon,
mtd.product());
42 return std::make_unique<GlobalDetLayerGeometry>(&
tracker, &
muon);
uint32_t cc[maxCellsPerHit]
GlobalDetLayerGeometryESProducer(const edm::ParameterSet &p)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Log< level::Info, false > LogInfo
~GlobalDetLayerGeometryESProducer() override
std::optional< DepRecordT > tryToGetRecord() const
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::unique_ptr< DetLayerGeometry > produce(const RecoGeometryRecord &)