#include "RecoMET/METPUSubtraction/interface/noPileUpMEtAuxFunctions.h"
#include "DataFormats/Math/interface/deltaR.h"
#include <math.h>
Go to the source code of this file.
Functions | |
int | isVertexAssociated (const reco::PFCandidate &pfCandidate, const PFCandToVertexAssMap &pfCandToVertexAssociations, const reco::VertexCollection &vertices, double dZ) |
int | isVertexAssociated_fast (const reco::PFCandidateRef &pfCandidate, const reversedPFCandidateToVertexAssociationMap &pfCandToVertexAssociations, const reco::VertexCollection &vertices, double dZ, int &numWarnings, int maxWarnings) |
reversedPFCandidateToVertexAssociationMap | reversePFCandToVertexAssociation (const PFCandToVertexAssMap &pfCandToVertexAssociations) |
Variables | |
const double | dR2Min =0.01*0.01 |
const int | minPFCandToVertexAssocQuality = noPuUtils::kChHSAssoc |
int isVertexAssociated | ( | const reco::PFCandidate & | pfCandidate, |
const PFCandToVertexAssMap & | pfCandToVertexAssociations, | ||
const reco::VertexCollection & | vertices, | ||
double | dZ | ||
) |
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 & | pfCandidate, |
const reversedPFCandidateToVertexAssociationMap & | pfCandToVertexAssociations, | ||
const reco::VertexCollection & | vertices, | ||
double | dZ, | ||
int & | numWarnings, | ||
int | maxWarnings | ||
) |
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 & | pfCandToVertexAssociations | ) |
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().
const double dR2Min =0.01*0.01 |
Definition at line 9 of file noPileUpMEtAuxFunctions.cc.
const int minPFCandToVertexAssocQuality = noPuUtils::kChHSAssoc |
Definition at line 7 of file noPileUpMEtAuxFunctions.cc.
Referenced by isVertexAssociated(), and isVertexAssociated_fast().