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.";
101 return std::unique_ptr<GlobalTrackingGeometry>(builder.
build(tk, mtd, dt, csc, rpc, gem, me0));
edm::ESGetToken< ME0Geometry, MuonGeometryRecord > me0Token_
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > gemToken_
std::optional< DepRecordT > tryToGetRecord() const
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > mtdToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtToken_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerToken_
Log< level::Info, false > LogInfo
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcToken_
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