test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 boost::shared_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  _tracker = boost::shared_ptr<GeometricSearchTracker>(builder.build( tG->trackerDet(), &(*tG), tTopo ));
47  return _tracker;
48 }
49 
50 
T getUntrackedParameter(std::string const &, T const &) const
boost::shared_ptr< GeometricSearchTracker > produce(const TrackerRecoGeometryRecord &)
T const * product() const
Definition: ESHandle.h:86
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
TrackerRecoGeometryESProducer(const edm::ParameterSet &p)
GeometricSearchTracker * build(const GeometricDet *theGeometricTracker, const TrackerGeometry *theGeomDetGeometry, const TrackerTopology *tTopo) __attribute__((cold))