CMS 3D CMS Logo

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