CMS 3D CMS Logo

ConversionTrackFinder.cc
Go to the documentation of this file.
1 //
3 //
7 //
8 
10 //
11 //
12 
13 #include <sstream>
14 
15 
17  theCkfTrajectoryBuilder_(trajectoryBuilder),
18  theInitialState_(new TransientInitialStateEstimator(conf.getParameter<edm::ParameterSet>("TransientInitialStateEstimatorParameters"))),
19  theTrackerGeom_(nullptr),
20  theUpdator_(nullptr),
21  thePropagator_(nullptr)
22 {
23  // std::cout << " ConversionTrackFinder base CTOR " << std::endl;
24  useSplitHits_ = conf.getParameter<bool>("useHitsSplitting");
25  theMeasurementTrackerName_ = conf.getParameter<std::string>("MeasurementTrackerName");
26 }
27 
28 
30 }
31 
32 
34 
35  edm::ESHandle<MeasurementTracker> measurementTrackerHandle;
36  es.get<CkfComponentsRecord>().get(theMeasurementTrackerName_,measurementTrackerHandle);
37  theMeasurementTracker_ = measurementTrackerHandle.product();
38 
39  edm::ESHandle<TrackerGeometry> trackerHandle;
40  es.get<TrackerDigiGeometryRecord>().get(trackerHandle);
41  theTrackerGeom_= trackerHandle.product();
42 
43  es.get<TrackingComponentsRecord>().get("AnyDirectionAnalyticalPropagator",
45 
46  theInitialState_->setEventSetup( es, static_cast<TkTransientTrackingRecHitBuilder const *>(theCkfTrajectoryBuilder_->hitBuilder())->cloner() );
47 }
ConversionTrackFinder(const edm::ParameterSet &config, const BaseCkfTrajectoryBuilder *trajectoryBuilder)
T getParameter(std::string const &) const
edm::ESHandle< Propagator > thePropagator_
std::unique_ptr< TransientInitialStateEstimator > theInitialState_
#define nullptr
const TransientTrackingRecHitBuilder * hitBuilder() const
std::string theMeasurementTrackerName_
const T & get() const
Definition: EventSetup.h:55
HLT enums.
const MeasurementTracker * theMeasurementTracker_
const TrackerGeometry * theTrackerGeom_
T const * product() const
Definition: ESHandle.h:86
void setEventSetup(const edm::EventSetup &es)
Initialize EventSetup objects at each event.
const BaseCkfTrajectoryBuilder * theCkfTrajectoryBuilder_