8 const std::vector<reco::TrackRef> &fTracks,
11 std::vector<math::RhoEtaPhiVector> trackP3s;
12 trackP3s.reserve(fTracks.size());
13 for (
unsigned i = 0;
i < fTracks.size(); ++
i) {
18 for (
unsigned j = 0; j < fJets.size(); ++j) {
23 for (
unsigned t = 0;
t < fTracks.size(); ++
t) {
24 double dR2 =
deltaR2(jetEta, jetPhi, trackP3s[
t].
eta(), trackP3s[
t].
phi());
double p() const
momentum vector magnitude
double eta() const final
momentum pseudorapidity
Base class for all types of Jets.
double phi() const
azimuthal angle of momentum vector
void produce(reco::JetTracksAssociation::Container *fAssociation, const std::vector< edm::RefToBase< reco::Jet >> &fJets, const std::vector< reco::TrackRef > &fTracks, TrackClassifier &classifier) const
RhoEtaPhiVectorD RhoEtaPhiVector
spatial vector with cylindrical internal representation using pseudorapidity
TrackClassifier const & evaluate(reco::TrackBaseRef const &)
Classify the RecoTrack in categories.
double eta() const
pseudorapidity of momentum vector
JetVetoedTracksAssociationDRVertex(double fDr)
bool setValue(Container &, const reco::JetBaseRef &, reco::TrackRefVector)
associate jet with value. Returns false and associate nothing if jet is already associated ...
bool is(Category category) const
Returns track flag for a given category.
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Get track history and classify it in function of their .
double mDeltaR2Threshold
fidutial dR between track in the vertex and jet's reference direction
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
double phi() const final
momentum azimuthal angle