CMS 3D CMS Logo

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  GlobalPoint getLinearizationPoint(const std::vector<reco::TransientTrack> & ) const override;
53  GlobalPoint getLinearizationPoint(const std::vector<FreeTrajectoryState> & ) const override;
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
GlobalPoint getLinearizationPoint(const std::vector< reco::TransientTrack > &) const override
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
CrossingPtBasedLinearizationPointFinder * clone() const override
FreeTrajectoryState initialFreeState() const
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
GlobalPoint useFullMatrix(const std::vector< reco::TransientTrack > &) const