14 : mDeltaR2Threshold (fDr*fDr)
19 const std::vector <reco::TrackRef>& fTracks)
const
22 std::vector <math::RhoEtaPhiVector> trackP3s;
23 trackP3s.reserve (fTracks.size());
24 for (
unsigned i = 0;
i < fTracks.size(); ++
i) {
29 for (
unsigned j = 0;
j < fJets.size(); ++
j) {
34 for (
unsigned t = 0;
t < fTracks.size(); ++
t) {
35 double dR2 =
deltaR2 (jetEta, jetPhi, trackP3s[
t].
eta(), trackP3s[
t].
phi());
double p() const
momentum vector magnitude
Base class for all types of Jets.
virtual double phi() const final
momentum azimuthal angle
double phi() const
azimuthal angle of momentum vector
RhoEtaPhiVectorD RhoEtaPhiVector
spatial vector with cylindrical internal representation using pseudorapidity
double eta() const
pseudorapidity of momentum vector
bool setValue(Container &, const reco::JetBaseRef &, reco::TrackRefVector)
associate jet with value. Returns false and associate nothing if jet is already associated ...
double mDeltaR2Threshold
fidutial dR between track in the vertex and jet's reference direction
void produce(reco::JetTracksAssociation::Container *fAssociation, const std::vector< edm::RefToBase< reco::Jet > > &fJets, const std::vector< reco::TrackRef > &fTracks) const
JetTracksAssociationDRVertex(double fDr)
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
virtual double eta() const final
momentum pseudorapidity