test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CrossingPtBasedLinearizationPointFinder.h
Go to the documentation of this file.
1 #ifndef CrossingPtBasedLinearizationPointFinder_H
2 #define CrossingPtBasedLinearizationPointFinder_H
3 
8 
27 {
28 public:
33  const signed int n_pairs = 5 );
34 
42  const RecTracksDistanceMatrix * m, const ModeFinder3d & algo,
43  const signed int n_pairs = -1 );
44 
47 
49 
52  virtual GlobalPoint getLinearizationPoint(const std::vector<reco::TransientTrack> & ) const;
53  virtual GlobalPoint getLinearizationPoint(const std::vector<FreeTrajectoryState> & ) const;
54 
56  return new CrossingPtBasedLinearizationPointFinder ( * this );
57  };
58 protected:
59  const bool useMatrix;
60  signed int theNPairs;
62 
63 private:
66  GlobalPoint find ( const std::vector<std::pair <GlobalPoint , float> > & ) const;
67 private:
69 
74  return a.initialFreeState().momentum().mag() >
76 // return a.p() > b.p();
77  };
78  };
79  std::vector <reco::TransientTrack> getBestTracks ( const std::vector<reco::TransientTrack> & ) const;
80  GlobalPoint useFullMatrix ( const std::vector<reco::TransientTrack> & ) const;
81  GlobalPoint useAllTracks ( const std::vector<reco::TransientTrack> & ) const;
82 };
83 
84 #endif
GlobalPoint useAllTracks(const std::vector< reco::TransientTrack > &) const
GlobalPoint find(const std::vector< std::pair< GlobalPoint, float > > &) const
virtual CrossingPtBasedLinearizationPointFinder * clone() const
std::vector< reco::TransientTrack > getBestTracks(const std::vector< reco::TransientTrack > &) const
int operator()(const reco::TransientTrack &a, const reco::TransientTrack &b)
CrossingPtBasedLinearizationPointFinder(const ModeFinder3d &algo, const signed int n_pairs=5)
T mag() const
Definition: PV3DBase.h:67
GlobalVector momentum() const
FreeTrajectoryState initialFreeState() const
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
GlobalPoint useFullMatrix(const std::vector< reco::TransientTrack > &) const
virtual GlobalPoint getLinearizationPoint(const std::vector< reco::TransientTrack > &) const