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 
18 //
21 //
23 
26 
27 // C/C++ headers
28 #include <string>
29 #include <vector>
30 
33 
34  public:
35 
37  const edm::ParameterSet& config );
38 
39 
40  virtual ~ConversionTrackFinder();
41 
42 
43  virtual std::vector<Trajectory> tracks(const TrajectorySeedCollection seeds , TrackCandidateCollection &candidate) const =0;
44 
46  void setEventSetup( const edm::EventSetup& es ) ;
47  void setEvent(const edm::Event& e ) ;
48 
49 
50  private:
51 
52 
53 
54 
55 
56  protected:
57 
60 
63 
67 
69 
71 
73  typedef int result_type;
74  result_type operator()(const Trajectory& t) const {return t.foundHits();}
75  result_type operator()(const Trajectory* t) const {return t->foundHits();}
76 };
77 
78 
79 struct ExtractChi2 {
80  typedef float result_type;
81  result_type operator()(const Trajectory& t) const {return t.chiSquared();}
82  result_type operator()(const Trajectory* t) const {return t->chiSquared();}
83 };
84 
85 
86 
87 
88 };
89 
90 #endif
virtual std::vector< Trajectory > tracks(const TrajectorySeedCollection seeds, TrackCandidateCollection &candidate) const =0
int foundHits() const
Definition: Trajectory.h:190
const TrajectoryBuilder * theCkfTrajectoryBuilder_
edm::ESHandle< Propagator > thePropagator_
std::vector< TrackCandidate > TrackCandidateCollection
result_type operator()(const Trajectory *t) const
result_type operator()(const Trajectory *t) const
TransientInitialStateEstimator * theInitialState_
std::vector< TrajectorySeed > TrajectorySeedCollection
void setEvent(const edm::Event &e)
result_type operator()(const Trajectory &t) const
const MagneticField * theMF_
ConversionTrackFinder(const edm::EventSetup &es, const edm::ParameterSet &config)
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.
double chiSquared() const
Definition: Trajectory.h:208