CMS 3D CMS Logo

ConversionTrackFinder.h
Go to the documentation of this file.
1 #ifndef RecoEGAMMA_ConversionTrack_ConversionTrackFinder_h
2 #define RecoEGAMMA_ConversionTrack_ConversionTrackFinder_h
3 
15 //
18 //
20 
23 
24 // C/C++ headers
25 #include <string>
26 #include <vector>
27 
30 public:
32 
33  virtual ~ConversionTrackFinder();
34 
35  virtual std::vector<Trajectory> tracks(const TrajectorySeedCollection& seeds,
36  TrackCandidateCollection& candidate) const = 0;
37 
39  void setEventSetup(const edm::EventSetup& es);
40 
41 protected:
43 
47 
48  std::unique_ptr<TransientInitialStateEstimator> theInitialState_;
51 
53 
55 
57  typedef int result_type;
58  result_type operator()(const Trajectory& t) const { return t.foundHits(); }
59  result_type operator()(const Trajectory* t) const { return t->foundHits(); }
60  };
61 
62  struct ExtractChi2 {
63  typedef float result_type;
64  result_type operator()(const Trajectory& t) const { return t.chiSquared(); }
65  result_type operator()(const Trajectory* t) const { return t->chiSquared(); }
66  };
67 };
68 
69 #endif
BaseCkfTrajectoryBuilder
Definition: BaseCkfTrajectoryBuilder.h:53
TrajectorySeedCollection
std::vector< TrajectorySeed > TrajectorySeedCollection
Definition: TrajectorySeedCollection.h:6
TrackCandidateCollection.h
ConversionSeedFinder.h
ConversionTrackFinder::useSplitHits_
bool useSplitHits_
Definition: ConversionTrackFinder.h:54
ConversionTrackFinder
Definition: ConversionTrackFinder.h:29
ConversionTrackFinder::theUpdator_
KFUpdator * theUpdator_
Definition: ConversionTrackFinder.h:50
TrajectoryMeasurement.h
ConversionTrackFinder::tracks
virtual std::vector< Trajectory > tracks(const TrajectorySeedCollection &seeds, TrackCandidateCollection &candidate) const =0
config
Definition: config.py:1
ConversionTrackFinder::ExtractChi2
Definition: ConversionTrackFinder.h:62
MeasurementTracker
Definition: MeasurementTracker.h:21
ConversionTrackFinder::ExtractChi2::operator()
result_type operator()(const Trajectory &t) const
Definition: ConversionTrackFinder.h:64
edm::ESHandle< Propagator >
ConversionTrackFinder::theMeasurementTracker_
const MeasurementTracker * theMeasurementTracker_
Definition: ConversionTrackFinder.h:45
ConversionTrackFinder::thePropagator_
edm::ESHandle< Propagator > thePropagator_
Definition: ConversionTrackFinder.h:52
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
OrderedSet.t
t
Definition: OrderedSet.py:90
ConversionTrackFinder::ExtractNumOfHits
Definition: ConversionTrackFinder.h:56
ConversionTrackFinder::ExtractNumOfHits::operator()
result_type operator()(const Trajectory *t) const
Definition: ConversionTrackFinder.h:59
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ConversionTrackFinder::theInitialState_
std::unique_ptr< TransientInitialStateEstimator > theInitialState_
Definition: ConversionTrackFinder.h:48
InitialStep_cff.seeds
seeds
Definition: InitialStep_cff.py:232
edm::ParameterSet
Definition: ParameterSet.h:36
TrackCandidateCollection
std::vector< TrackCandidate > TrackCandidateCollection
Definition: TrackCandidateCollection.h:7
Event.h
ConversionTrackFinder::ExtractChi2::operator()
result_type operator()(const Trajectory *t) const
Definition: ConversionTrackFinder.h:65
ConversionTrackFinder::theMF_
const MagneticField * theMF_
Definition: ConversionTrackFinder.h:42
TransientInitialStateEstimator
Definition: TransientInitialStateEstimator.h:23
ConversionTrackFinder::ExtractNumOfHits::operator()
result_type operator()(const Trajectory &t) const
Definition: ConversionTrackFinder.h:58
edm::EventSetup
Definition: EventSetup.h:57
TrajectorySeedCollection.h
Trajectory.h
ConversionTrackFinder::theCkfTrajectoryBuilder_
const BaseCkfTrajectoryBuilder * theCkfTrajectoryBuilder_
Definition: ConversionTrackFinder.h:46
Trajectory
Definition: Trajectory.h:38
BaseCkfTrajectoryBuilder.h
EventSetup.h
ConversionTrackFinder::theTrackerGeom_
const TrackerGeometry * theTrackerGeom_
Definition: ConversionTrackFinder.h:49
ConversionTrackFinder::~ConversionTrackFinder
virtual ~ConversionTrackFinder()
Definition: ConversionTrackFinder.cc:28
ConversionTrackFinder::ExtractNumOfHits::result_type
int result_type
Definition: ConversionTrackFinder.h:57
ParameterSet.h
MagneticField
Definition: MagneticField.h:19
ConversionTrackFinder::ExtractChi2::result_type
float result_type
Definition: ConversionTrackFinder.h:63
KFUpdator
Definition: KFUpdator.h:32
MeasurementTracker.h
TrackerGeometry
Definition: TrackerGeometry.h:14
ConversionTrackFinder::ConversionTrackFinder
ConversionTrackFinder(const edm::ParameterSet &config, const BaseCkfTrajectoryBuilder *trajectoryBuilder)
Definition: ConversionTrackFinder.cc:15