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
ConversionTrackFinder(const edm::ParameterSet &config, const BaseCkfTrajectoryBuilder *trajectoryBuilder)
int foundHits() const
Definition: Trajectory.h:206
edm::ESHandle< Propagator > thePropagator_
std::vector< TrackCandidate > TrackCandidateCollection
std::unique_ptr< TransientInitialStateEstimator > theInitialState_
Definition: config.py:1
result_type operator()(const Trajectory *t) const
result_type operator()(const Trajectory *t) const
std::vector< TrajectorySeed > TrajectorySeedCollection
std::string theMeasurementTrackerName_
result_type operator()(const Trajectory &t) const
const MagneticField * theMF_
virtual std::vector< Trajectory > tracks(const TrajectorySeedCollection &seeds, TrackCandidateCollection &candidate) const =0
float chiSquared() const
Definition: Trajectory.h:241
result_type operator()(const Trajectory &t) const
const MeasurementTracker * theMeasurementTracker_
const TrackerGeometry * theTrackerGeom_
void setEventSetup(const edm::EventSetup &es)
Initialize EventSetup objects at each event.
const BaseCkfTrajectoryBuilder * theCkfTrajectoryBuilder_