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.
7 
12 
13 
14 #include <memory>
15 #include <string>
16 
17 using namespace edm;
18 
20 {
21  setWhatProduced(this);
22  // 08-Oct-2007 - Patrick Janot
23  // Allow several reco geometries to be created, corresponding to the labelled
24  // TrackerDigiGeometry's - that must created beforehand. Useful to handle an
25  // aligned and a misaligned geometry in the same job.
26  // The default parameter ("") makes this change transparent to the user
27  // See FastSimulation/Configuration/data/ for examples of cfi's.
28  geoLabel = p.getUntrackedParameter<std::string>("trackerGeometryLabel","");
29 }
30 
32 
33 boost::shared_ptr<GeometricSearchTracker>
35 
36 
38  iRecord.getRecord<TrackerDigiGeometryRecord>().get( geoLabel, tG );
40  _tracker = boost::shared_ptr<GeometricSearchTracker>(builder.build( tG->trackerDet(), &(*tG) ));
41  return _tracker;
42 }
43 
44 
T getUntrackedParameter(std::string const &, T const &) const
boost::shared_ptr< GeometricSearchTracker > produce(const TrackerRecoGeometryRecord &)
GeometricSearchTracker * build(const GeometricDet *theGeometricTracker, const TrackerGeometry *theGeomDetGeometry)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:56
TrackerRecoGeometryESProducer(const edm::ParameterSet &p)