CMS 3D CMS Logo

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