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 
64 
68 
70 
72 
74  typedef int result_type;
75  result_type operator()(const Trajectory& t) const {return t.foundHits();}
76  result_type operator()(const Trajectory* t) const {return t->foundHits();}
77 };
78 
79 
80 struct ExtractChi2 {
81  typedef float result_type;
82  result_type operator()(const Trajectory& t) const {return t.chiSquared();}
83  result_type operator()(const Trajectory* t) const {return t->chiSquared();}
84 };
85 
86 
87 
88 
89 };
90 
91 #endif
int foundHits() const
Definition: Trajectory.h:236
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
virtual std::vector< Trajectory > tracks(const TrajectorySeedCollection &seeds, TrackCandidateCollection &candidate) const =0
void setEvent(const edm::Event &e)
std::string theMeasurementTrackerName_
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:254