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 
68 
70  typedef int result_type;
71  result_type operator()(const Trajectory& t) const {return t.foundHits();}
72  result_type operator()(const Trajectory* t) const {return t->foundHits();}
73 };
74 
75 
76 struct ExtractChi2 {
77  typedef float result_type;
78  result_type operator()(const Trajectory& t) const {return t.chiSquared();}
79  result_type operator()(const Trajectory* t) const {return t->chiSquared();}
80 };
81 
82 
83 
84 
85 };
86 
87 #endif
virtual std::vector< Trajectory > tracks(const TrajectorySeedCollection seeds, TrackCandidateCollection &candidate) const =0
int foundHits() const
Definition: Trajectory.h:190
const TrajectoryBuilder * theCkfTrajectoryBuilder_
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)
tuple config
Definition: cmsDriver.py:17
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