CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConversionTrackFinder.cc
Go to the documentation of this file.
2 //
4 //
10 //
11 
15 //
17 //
19 
20 #include <sstream>
21 
22 
24  const edm::ParameterSet& conf ) :
25  conf_(conf),
26  theCkfTrajectoryBuilder_(0),
27  theInitialState_(0),
28  theTrackerGeom_(0),
29  theUpdator_(0),
30  thePropagator_(0)
31 {
32  // std::cout << " ConversionTrackFinder base CTOR " << std::endl;
33 
34  edm::ParameterSet tise_params = conf_.getParameter<edm::ParameterSet>("TransientInitialStateEstimatorParameters") ;
35  theInitialState_ = new TransientInitialStateEstimator( es, tise_params);
36  useSplitHits_ = conf_.getParameter<bool>("useHitsSplitting");
37 
38 
39 }
40 
41 
43 
44 
45  delete theInitialState_;
46 
47 }
48 
49 
51 
52  edm::ESHandle<MeasurementTracker> measurementTrackerHandle;
53  es.get<CkfComponentsRecord>().get(measurementTrackerHandle);
54  theMeasurementTracker_ = measurementTrackerHandle.product();
55 
56  // set the TrajectoryBuilder
57  std::string trajectoryBuilderName = conf_.getParameter<std::string>("TrajectoryBuilder");
58  // std::cout << " ConversionTrackFinderBase tbName" << trajectoryBuilderName << std::endl;
59  edm::ESHandle<TrajectoryBuilder> theTrajectoryBuilderHandle;
60  es.get<CkfComponentsRecord>().get(trajectoryBuilderName,theTrajectoryBuilderHandle);
61  theCkfTrajectoryBuilder_ = theTrajectoryBuilderHandle.product();
62 
63  edm::ESHandle<TrackerGeometry> trackerHandle;
64  es.get<TrackerDigiGeometryRecord>().get(trackerHandle);
65  theTrackerGeom_= trackerHandle.product();
66 
67  es.get<TrackingComponentsRecord>().get("AnyDirectionAnalyticalPropagator",
69 
71 }
72 
75 
76 
77 
78 }
T getParameter(std::string const &) const
const TrajectoryBuilder * theCkfTrajectoryBuilder_
void setEventSetup(const edm::EventSetup &es)
Call this at each event until this object will come from the EventSetup as it should.
edm::ESHandle< Propagator > thePropagator_
virtual void update(const edm::Event &) const
TransientInitialStateEstimator * theInitialState_
void setEvent(const edm::Event &e)
tuple conf
Definition: dbtoconf.py:185
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
ConversionTrackFinder(const edm::EventSetup &es, const edm::ParameterSet &config)
const MeasurementTracker * theMeasurementTracker_
const TrackerGeometry * theTrackerGeom_
void setEventSetup(const edm::EventSetup &es)
Initialize EventSetup objects at each event.