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);
std::optional< DepRecordT > tryToGetRecord() const
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
GlobalDetLayerGeometryESProducer(const edm::ParameterSet &p)
Log< level::Info, false > LogInfo
T const * product() const
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
~GlobalDetLayerGeometryESProducer() override
std::unique_ptr< DetLayerGeometry > produce(const RecoGeometryRecord &)