Typedefs | |
typedef std::vector< std::pair < reco::PFCandidateRef, int > > | CandQualityPairVector |
typedef edm::AssociationMap < edm::OneToManyWithQuality < reco::PFCandidateCollection, reco::VertexCollection, int > > | reversedPFCandToVertexAssMap |
typedef std::vector< std::pair < reco::VertexRef, int > > | VertexQualityPairVector |
Enumerations | |
enum | { kNeutral =0, kChNoAssoc, kChPUAssoc, kChHSAssoc } |
Functions | |
int | isVertexAssociated (const reco::PFCandidatePtr &, const PFCandToVertexAssMap &, const reco::VertexCollection &, double) |
int | isVertexAssociated_fast (const reco::PFCandidateRef &, const noPuUtils::reversedPFCandToVertexAssMap &, const reco::VertexCollection &, double, int &, int) |
void | promoteAssocToHSAssoc (int quality, double z, const reco::VertexCollection &vertices, double dZ, int &vtxAssociationType, bool checkdR2) |
noPuUtils::reversedPFCandToVertexAssMap | reversePFCandToVertexAssociation (const PFCandToVertexAssMap &) |
Variables | |
const double | dR2Min =0.01*0.01 |
typedef std::vector<std::pair<reco::PFCandidateRef, int> > noPuUtils::CandQualityPairVector |
Definition at line 24 of file NoPileUpMEtAuxFunctions.h.
typedef edm::AssociationMap<edm::OneToManyWithQuality<reco::PFCandidateCollection, reco::VertexCollection, int> > noPuUtils::reversedPFCandToVertexAssMap |
Definition at line 28 of file NoPileUpMEtAuxFunctions.h.
typedef std::vector<std::pair<reco::VertexRef, int> > noPuUtils::VertexQualityPairVector |
Definition at line 25 of file NoPileUpMEtAuxFunctions.h.
anonymous enum |
Enumerator | |
---|---|
kNeutral | |
kChNoAssoc | |
kChPUAssoc | |
kChHSAssoc |
Definition at line 22 of file NoPileUpMEtAuxFunctions.h.
int noPuUtils::isVertexAssociated | ( | const reco::PFCandidatePtr & | pfCandidate, |
const PFCandToVertexAssMap & | pfCandToVertexAssociations, | ||
const reco::VertexCollection & | vertices, | ||
double | dZ | ||
) |
Definition at line 11 of file NoPileUpMEtAuxFunctions.cc.
References edm::AssociationMap< Tag >::begin(), edm::AssociationMap< Tag >::end(), kChNoAssoc, kNeutral, promoteAssocToHSAssoc(), HLT_FULL_cff::quality, and edm::refToPtr().
int noPuUtils::isVertexAssociated_fast | ( | const reco::PFCandidateRef & | pfCandidate, |
const noPuUtils::reversedPFCandToVertexAssMap & | pfCandToVertexAssociations, | ||
const reco::VertexCollection & | vertices, | ||
double | dZ, | ||
int & | numWarnings, | ||
int | maxWarnings | ||
) |
Definition at line 64 of file NoPileUpMEtAuxFunctions.cc.
References edm::AssociationMap< Tag >::begin(), reco::deltaR2(), dR2Min, edm::AssociationMap< Tag >::end(), edm::AssociationMap< Tag >::find(), kChNoAssoc, edm::Ref< C, T, F >::key(), kNeutral, promoteAssocToHSAssoc(), HLT_FULL_cff::quality, and edm::helpers::KeyVal< K, V >::val.
Referenced by NoPileUpPFMEtDataProducer::produce().
void noPuUtils::promoteAssocToHSAssoc | ( | int | quality, |
double | z, | ||
const reco::VertexCollection & | vertices, | ||
double | dZ, | ||
int & | vtxAssociationType, | ||
bool | checkdR2 | ||
) |
Definition at line 99 of file NoPileUpMEtAuxFunctions.cc.
References funct::abs(), and kChHSAssoc.
Referenced by isVertexAssociated(), and isVertexAssociated_fast().
noPuUtils::reversedPFCandToVertexAssMap noPuUtils::reversePFCandToVertexAssociation | ( | const PFCandToVertexAssMap & | pfCandToVertexAssociations | ) |
Definition at line 45 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().
const double noPuUtils::dR2Min =0.01*0.01 |
Definition at line 9 of file NoPileUpMEtAuxFunctions.cc.
Referenced by isVertexAssociated_fast().