CMS 3D CMS Logo

CrossingPtBasedLinearizationPointFinder.h
Go to the documentation of this file.
1 #ifndef CrossingPtBasedLinearizationPointFinder_H
2 #define CrossingPtBasedLinearizationPointFinder_H
3 
8 
27 public:
31  CrossingPtBasedLinearizationPointFinder(const ModeFinder3d &algo, const signed int n_pairs = 5);
32 
40  const ModeFinder3d &algo,
41  const signed int n_pairs = -1);
42 
44 
46 
49  GlobalPoint getLinearizationPoint(const std::vector<reco::TransientTrack> &) const override;
50  GlobalPoint getLinearizationPoint(const std::vector<FreeTrajectoryState> &) const override;
51 
54  };
55 
56 protected:
57  const bool useMatrix;
58  signed int theNPairs;
60 
61 private:
64  GlobalPoint find(const std::vector<std::pair<GlobalPoint, float> > &) const;
65 
66 private:
68 
73  return a.initialFreeState().momentum().mag() > b.initialFreeState().momentum().mag();
74  // return a.p() > b.p();
75  };
76  };
77  std::vector<reco::TransientTrack> getBestTracks(const std::vector<reco::TransientTrack> &) const;
78  GlobalPoint useFullMatrix(const std::vector<reco::TransientTrack> &) const;
79  GlobalPoint useAllTracks(const std::vector<reco::TransientTrack> &) const;
80 };
81 
82 #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:64
GlobalVector momentum() const
CrossingPtBasedLinearizationPointFinder * clone() const override
FreeTrajectoryState initialFreeState() const
double b
Definition: hdecay.h:118
double a
Definition: hdecay.h:119
GlobalPoint useFullMatrix(const std::vector< reco::TransientTrack > &) const