CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalTrackingGeometryESProducer.cc
Go to the documentation of this file.
1 
8 
10 
13 
17 
18 #include <memory>
19 
20 using namespace edm;
21 
23  setWhatProduced(this);
24 }
25 
27 
28 boost::shared_ptr<GlobalTrackingGeometry>
30 
36 
37  try {
38  record.getRecord<TrackerDigiGeometryRecord>().get(tk);
40  // No Tk geo available
41  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No Tracker geometry is available.";
43  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No TrackerDigiGeometryRecord is available.";
44  }
45 
46 
47  try {
48  try {
49  record.getRecord<MuonGeometryRecord>().get(dt);
51  // No DT geo available
52  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No DT geometry is available.";
53  }
54 
55  try {
56  record.getRecord<MuonGeometryRecord>().get(csc);
58  // No CSC geo available
59  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No CSC geometry is available.";
60  }
61 
62  try {
63  record.getRecord<MuonGeometryRecord>().get(rpc);
65  // No RPC geo available
66  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No RPC geometry is available.";
67  }
68 
69  try {
70  record.getRecord<MuonGeometryRecord>().get(gem);
72  // No GEM geo available
73  LogInfo("GeometryGlobalTrackingGeometryBuilder") << "No GEM geometry is available.";
74  }
75 
77  LogWarning("GeometryGlobalTrackingGeometryBuilder") << "No MuonGeometryRecord is available.";
78  }
79 
80 
82  return boost::shared_ptr<GlobalTrackingGeometry>(builder.build(&(*tk), &(*dt), &(*csc), &(*rpc), &(*gem)));
83 }
84 
float dt
Definition: AMPTWrapper.h:126
boost::shared_ptr< GlobalTrackingGeometry > produce(const GlobalTrackingGeometryRecord &record)
Produce GlobalTrackingGeometry.
JetCorrectorParameters::Record record
Definition: classes.h:7
GlobalTrackingGeometry * build(const TrackerGeometry *tk, const DTGeometry *dt, const CSCGeometry *csc, const RPCGeometry *rpc, const GEMGeometry *gem)
Build the geometry.
GlobalTrackingGeometryESProducer(const edm::ParameterSet &p)
Constructor.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60