23 auto cc = setWhatProduced(
this);
46 if (
auto tkH = tkRecord->getHandle(trackerToken_)) {
49 LogWarning(
"GeometryGlobalTrackingGeometryBuilder") <<
"No Tracker geometry is available.";
52 LogWarning(
"GeometryGlobalTrackingGeometryBuilder") <<
"No TrackerDigiGeometryRecord is available.";
56 if (
auto mtdH = mtdRecord->getHandle(mtdToken_)) {
59 LogInfo(
"GeometryGlobalTrackingGeometryBuilder") <<
"No MTD geometry is available.";
62 LogInfo(
"GeometryGlobalTrackingGeometryBuilder") <<
"No MTDDigiGeometryRecord is available.";
66 if (
auto dtH = muonRecord->getHandle(dtToken_)) {
69 LogWarning(
"GeometryGlobalTrackingGeometryBuilder") <<
"No DT geometry is available.";
72 if (
auto cscH = muonRecord->getHandle(cscToken_)) {
75 LogWarning(
"GeometryGlobalTrackingGeometryBuilder") <<
"No CSC geometry is available.";
78 if (
auto rpcH = muonRecord->getHandle(rpcToken_)) {
81 LogWarning(
"GeometryGlobalTrackingGeometryBuilder") <<
"No RPC geometry is available.";
84 if (
auto gemH = muonRecord->getHandle(gemToken_)) {
87 LogInfo(
"GeometryGlobalTrackingGeometryBuilder") <<
"No GEM geometry is available.";
90 if (
auto me0H = muonRecord->getHandle(me0Token_)) {
93 LogInfo(
"GeometryGlobalTrackingGeometryBuilder") <<
"No ME0 geometry is available.";
97 LogWarning(
"GeometryGlobalTrackingGeometryBuilder") <<
"No MuonGeometryRecord is available.";
GlobalTrackingGeometryESProducer(const edm::ParameterSet &p)
Constructor.
Log< level::Info, false > LogInfo
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
GlobalTrackingGeometry * build(const TrackerGeometry *tk, const MTDGeometry *mtd, const DTGeometry *dt, const CSCGeometry *csc, const RPCGeometry *rpc, const GEMGeometry *gem, const ME0Geometry *me0)
Build the geometry.
Log< level::Warning, false > LogWarning
std::unique_ptr< GlobalTrackingGeometry > produce(const GlobalTrackingGeometryRecord &record)
Produce GlobalTrackingGeometry.
~GlobalTrackingGeometryESProducer() override
Destructor.