CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
31  public:
32 
34 
35 
36  virtual ~ConversionTrackFinder();
37 
38 
39  virtual std::vector<Trajectory> tracks(const TrajectorySeedCollection& seeds , TrackCandidateCollection &candidate) const =0;
40 
42  void setEventSetup( const edm::EventSetup& es ) ;
43 
44  protected:
45 
47 
51 
52  std::unique_ptr<TransientInitialStateEstimator> theInitialState_;
55 
57 
59 
61  typedef int result_type;
62  result_type operator()(const Trajectory& t) const {return t.foundHits();}
63  result_type operator()(const Trajectory* t) const {return t->foundHits();}
64  };
65 
66 
67  struct ExtractChi2 {
68  typedef float result_type;
69  result_type operator()(const Trajectory& t) const {return t.chiSquared();}
70  result_type operator()(const Trajectory* t) const {return t->chiSquared();}
71  };
72 
73 };
74 
75 #endif
ConversionTrackFinder(const edm::ParameterSet &config, const BaseCkfTrajectoryBuilder *trajectoryBuilder)
int foundHits() const
Definition: Trajectory.h:279
edm::ESHandle< Propagator > thePropagator_
std::vector< TrackCandidate > TrackCandidateCollection
std::unique_ptr< TransientInitialStateEstimator > theInitialState_
result_type operator()(const Trajectory *t) const
result_type operator()(const Trajectory *t) const
std::vector< TrajectorySeed > TrajectorySeedCollection
virtual std::vector< Trajectory > tracks(const TrajectorySeedCollection &seeds, TrackCandidateCollection &candidate) const =0
std::string theMeasurementTrackerName_
result_type operator()(const Trajectory &t) const
const MagneticField * theMF_
float chiSquared() const
Definition: Trajectory.h:307
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_