CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
NoPileUpMEtAuxFunctions.h
Go to the documentation of this file.
1 #ifndef RecoMET_METPUSubtraction_noPileUpMEtAuxFunctions_h
2 #define RecoMET_METPUSubtraction_noPileUpMEtAuxFunctions_h
3 
7 
14 
16 
17  // 0 = neutral particle,
18  // 1 = charged particle not associated to any vertex
19  // 2 = charged particle associated to pile-up vertex
20  // 3 = charged particle associated to vertex of hard-scatter event
21 namespace noPuUtils {
23 
24  typedef std::vector<std::pair<reco::PFCandidateRef, int> > CandQualityPairVector;
25  typedef std::vector<std::pair<reco::VertexRef, int> > VertexQualityPairVector;
26 
29 
30 
31 
32 
33 // check if the pf candidate is associated with a vertex,
34 // return the type of association
36 
37 // reverse the vertex-pfcandidate association map
39 
40 // check if the pf candidate is associated with a vertex,
41 // based over references keys
42 // return the type of association
44 
45 //promote a low quality association to a better level
46 // if dz justifies it
47 void promoteAssocToHSAssoc(int quality, double z,
49  double dZ, int& vtxAssociationType, bool checkdR2);
50 
51 
52 }
53 
54 #endif
edm::AssociationMap< edm::OneToManyWithQuality< reco::PFCandidateCollection, reco::VertexCollection, int > > reversedPFCandToVertexAssMap
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
noPuUtils::reversedPFCandToVertexAssMap reversePFCandToVertexAssociation(const PFCandToVertexAssMap &)
std::vector< std::pair< reco::PFCandidateRef, int > > CandQualityPairVector
int isVertexAssociated(const reco::PFCandidatePtr &, const PFCandToVertexAssMap &, const reco::VertexCollection &, double)
void promoteAssocToHSAssoc(int quality, double z, const reco::VertexCollection &vertices, double dZ, int &vtxAssociationType, bool checkdR2)
std::vector< std::pair< reco::VertexRef, int > > VertexQualityPairVector
int isVertexAssociated_fast(const reco::PFCandidateRef &, const noPuUtils::reversedPFCandToVertexAssMap &, const reco::VertexCollection &, double, int &, int)