CMS 3D CMS Logo

SimpleJetTrackAssociator.h
Go to the documentation of this file.
4 
5 namespace helper {
7  public:
9  deltaR2_(0), nHits_(0), chi2nMax_(0) { }
10  SimpleJetTrackAssociator(double deltaR, int32_t nHits, double chi2nMax) :
11  deltaR2_(deltaR*deltaR), nHits_(nHits), chi2nMax_(chi2nMax) {}
12 
13  // 100% FWLite compatible (but will make up transient refs)
15 
16  // more versatile, persistent refs, for when we're in full framework
17  void associate(const math::XYZVector &dir, const edm::View<reco::Track> &in, reco::TrackRefVector &out) ;
18  private:
19  double deltaR2_;
20  int32_t nHits_;
21  double chi2nMax_;
22 };
23 }
24 
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:15
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:30
SimpleJetTrackAssociator(double deltaR, int32_t nHits, double chi2nMax)
dbl *** dir
Definition: mlp_gen.cc:35