CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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  // check if the pf candidate is associated with a vertex,
31  // return the type of association
33  const PFCandToVertexAssMap&,
35  double);
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
46  double,
47  int&,
48  int);
49 
50  //promote a low quality association to a better level
51  // if dz justifies it
53  int quality, double z, const reco::VertexCollection& vertices, double dZ, int& vtxAssociationType, bool checkdR2);
54 
55 } // namespace noPuUtils
56 
57 #endif
edm::AssociationMap< edm::OneToManyWithQuality< reco::PFCandidateCollection, reco::VertexCollection, int > > reversedPFCandToVertexAssMap
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
string quality
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)