RecoEgamma
EgammaPhotonAlgos
src
ConversionTrackFinder.cc
Go to the documentation of this file.
1
//
2
#include "
RecoEgamma/EgammaPhotonAlgos/interface/ConversionTrackFinder.h
"
3
//
4
#include "
RecoTracker/Record/interface/CkfComponentsRecord.h
"
5
#include "
RecoTracker/CkfPattern/interface/TransientInitialStateEstimator.h
"
6
#include "
RecoTracker/TransientTrackingRecHit/interface/TkTransientTrackingRecHitBuilder.h
"
7
//
8
9
#include "
TrackingTools/KalmanUpdators/interface/KFUpdator.h
"
10
//
11
//
12
13
#include <sstream>
14
15
ConversionTrackFinder::ConversionTrackFinder
(
const
edm::ParameterSet
& conf,
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
28
ConversionTrackFinder::~ConversionTrackFinder
() {}
29
30
void
ConversionTrackFinder::setEventSetup
(
const
edm::EventSetup
& es) {
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
}
edm::ESHandle::product
T const * product() const
Definition:
ESHandle.h:86
BaseCkfTrajectoryBuilder
Definition:
BaseCkfTrajectoryBuilder.h:53
ConversionTrackFinder::useSplitHits_
bool useSplitHits_
Definition:
ConversionTrackFinder.h:54
edm
HLT enums.
Definition:
AlignableModifier.h:19
CkfComponentsRecord.h
TransientInitialStateEstimator.h
TkTransientTrackingRecHitBuilder.h
edm::EventSetup::get
T get() const
Definition:
EventSetup.h:73
CkfComponentsRecord
Definition:
CkfComponentsRecord.h:22
TrackerDigiGeometryRecord
Definition:
TrackerDigiGeometryRecord.h:15
edm::ESHandle< MeasurementTracker >
ConversionTrackFinder::theMeasurementTracker_
const MeasurementTracker * theMeasurementTracker_
Definition:
ConversionTrackFinder.h:45
ConversionTrackFinder::thePropagator_
edm::ESHandle< Propagator > thePropagator_
Definition:
ConversionTrackFinder.h:52
BaseCkfTrajectoryBuilder::hitBuilder
const TransientTrackingRecHitBuilder * hitBuilder() const
Definition:
BaseCkfTrajectoryBuilder.h:104
ConversionTrackFinder::theMeasurementTrackerName_
std::string theMeasurementTrackerName_
Definition:
ConversionTrackFinder.h:44
ConversionTrackFinder::setEventSetup
void setEventSetup(const edm::EventSetup &es)
Initialize EventSetup objects at each event.
Definition:
ConversionTrackFinder.cc:30
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ConversionTrackFinder::theInitialState_
std::unique_ptr< TransientInitialStateEstimator > theInitialState_
Definition:
ConversionTrackFinder.h:48
KFUpdator.h
edm::ParameterSet
Definition:
ParameterSet.h:36
ParameterSet
Definition:
Functions.h:16
ConversionTrackFinder.h
TransientInitialStateEstimator
Definition:
TransientInitialStateEstimator.h:23
edm::EventSetup
Definition:
EventSetup.h:57
get
#define get
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
ConversionTrackFinder::theCkfTrajectoryBuilder_
const BaseCkfTrajectoryBuilder * theCkfTrajectoryBuilder_
Definition:
ConversionTrackFinder.h:46
ConversionTrackFinder::theTrackerGeom_
const TrackerGeometry * theTrackerGeom_
Definition:
ConversionTrackFinder.h:49
ConversionTrackFinder::~ConversionTrackFinder
virtual ~ConversionTrackFinder()
Definition:
ConversionTrackFinder.cc:28
TrackingComponentsRecord
Definition:
TrackingComponentsRecord.h:12
ConversionTrackFinder::ConversionTrackFinder
ConversionTrackFinder(const edm::ParameterSet &config, const BaseCkfTrajectoryBuilder *trajectoryBuilder)
Definition:
ConversionTrackFinder.cc:15
Generated for CMSSW Reference Manual by
1.8.16