CMS 3D CMS Logo

SimpleJetTrackAssociator.h
Go to the documentation of this file.
4 
5 namespace helper {
7  public:
9  SimpleJetTrackAssociator(double deltaR, int32_t nHits, double chi2nMax)
10  : deltaR2_(deltaR * deltaR), nHits_(nHits), chi2nMax_(chi2nMax) {}
11 
12  // 100% FWLite compatible (but will make up transient refs)
14 
15  // more versatile, persistent refs, for when we're in full framework
16  void associate(const math::XYZVector &dir, const edm::View<reco::Track> &in, reco::TrackRefVector &out);
17 
18  private:
19  double deltaR2_;
20  int32_t nHits_;
21  double chi2nMax_;
22  };
23 } // namespace helper
Definition: helper.py:1
void associateTransient(const math::XYZVector &dir, const reco::TrackCollection &in, reco::TrackRefVector &out)
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
void associate(const math::XYZVector &dir, const edm::View< reco::Track > &in, reco::TrackRefVector &out)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
SimpleJetTrackAssociator(double deltaR, int32_t nHits, double chi2nMax)