#include "DataFormats/Common/interface/AssociationMap.h"
#include "DataFormats/Common/interface/OneToManyWithQuality.h"
#include "DataFormats/Common/interface/Ref.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h"
#include "DataFormats/VertexReco/interface/Vertex.h"
#include "DataFormats/VertexReco/interface/VertexFwd.h"
#include "CommonTools/RecoUtils/interface/PFCand_AssoMapAlgos.h"
Go to the source code of this file.
Namespaces | |
noPuUtils | |
Typedefs | |
typedef edm::AssociationMap < edm::OneToManyWithQuality < reco::PFCandidateCollection, reco::VertexCollection, int > > | reversedPFCandidateToVertexAssociationMap |
Enumerations | |
enum | { noPuUtils::kNeutral =0, noPuUtils::kChNoAssoc, noPuUtils::kChPUAssoc, noPuUtils::kChHSAssoc } |
Functions | |
int | isVertexAssociated (const reco::PFCandidate &, const PFCandToVertexAssMap &, const reco::VertexCollection &, double) |
int | isVertexAssociated_fast (const reco::PFCandidateRef &, const reversedPFCandidateToVertexAssociationMap &, const reco::VertexCollection &, double, int &, int) |
reversedPFCandidateToVertexAssociationMap | reversePFCandToVertexAssociation (const PFCandToVertexAssMap &) |
typedef edm::AssociationMap<edm::OneToManyWithQuality<reco::PFCandidateCollection, reco::VertexCollection, int> > reversedPFCandidateToVertexAssociationMap |
Definition at line 24 of file noPileUpMEtAuxFunctions.h.
int isVertexAssociated | ( | const reco::PFCandidate & | , |
const PFCandToVertexAssMap & | , | ||
const reco::VertexCollection & | , | ||
double | |||
) |
Definition at line 11 of file noPileUpMEtAuxFunctions.cc.
References funct::abs(), edm::AssociationMap< Tag >::begin(), reco::LeafCandidate::charge(), reco::deltaR2(), dR2Min, edm::AssociationMap< Tag >::end(), noPuUtils::kChHSAssoc, noPuUtils::kChNoAssoc, noPuUtils::kChPUAssoc, noPuUtils::kNeutral, minPFCandToVertexAssocQuality, and reco::LeafCandidate::p4().
int isVertexAssociated_fast | ( | const reco::PFCandidateRef & | , |
const reversedPFCandidateToVertexAssociationMap & | , | ||
const reco::VertexCollection & | , | ||
double | , | ||
int & | , | ||
int | |||
) |
Definition at line 60 of file noPileUpMEtAuxFunctions.cc.
References funct::abs(), edm::AssociationMap< Tag >::begin(), reco::deltaR2(), dR2Min, edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), noPuUtils::kChHSAssoc, noPuUtils::kChPUAssoc, edm::Ref< C, T, F >::key(), minPFCandToVertexAssocQuality, and edm::helpers::KeyVal< K, V >::val.
Referenced by NoPileUpPFMEtDataProducer::produce().
reversedPFCandidateToVertexAssociationMap reversePFCandToVertexAssociation | ( | const PFCandToVertexAssMap & | ) |
Definition at line 42 of file noPileUpMEtAuxFunctions.cc.
References edm::AssociationMap< Tag >::begin(), edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::insert(), and edm::Ref< C, T, F >::key().
Referenced by NoPileUpPFMEtDataProducer::produce().