CMS 3D CMS Logo

TrackerRecoGeometryESProducer.cc
Go to the documentation of this file.
8 
13 
14 
15 #include <memory>
16 #include <string>
17 
18 using namespace edm;
19 
21 {
22  setWhatProduced(this);
23  // 08-Oct-2007 - Patrick Janot
24  // Allow several reco geometries to be created, corresponding to the labelled
25  // TrackerDigiGeometry's - that must created beforehand. Useful to handle an
26  // aligned and a misaligned geometry in the same job.
27  // The default parameter ("") makes this change transparent to the user
28  // See FastSimulation/Configuration/data/ for examples of cfi's.
29  geoLabel = p.getUntrackedParameter<std::string>("trackerGeometryLabel","");
30 }
31 
33 
34 std::unique_ptr<GeometricSearchTracker>
36 
37 
39  iRecord.getRecord<TrackerDigiGeometryRecord>().get( geoLabel, tG );
40 
42  iRecord.getRecord<TrackerTopologyRcd>().get(tTopoHand);
43  const TrackerTopology *tTopo=tTopoHand.product();
44 
46  return std::unique_ptr<GeometricSearchTracker>(builder.build( tG->trackerDet(), &(*tG), tTopo ));
47 }
48 
49 
T getUntrackedParameter(std::string const &, T const &) const
GeometricDet const * trackerDet() const
std::unique_ptr< GeometricSearchTracker > produce(const TrackerRecoGeometryRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
HLT enums.
TrackerRecoGeometryESProducer(const edm::ParameterSet &p)
GeometricSearchTracker * build(const GeometricDet *theGeometricTracker, const TrackerGeometry *theGeomDetGeometry, const TrackerTopology *tTopo) __attribute__((cold))
T const * product() const
Definition: ESHandle.h:84