CMS 3D CMS Logo

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
noPuUtils::VertexQualityPairVector
std::vector< std::pair< reco::VertexRef, int > > VertexQualityPairVector
Definition: NoPileUpMEtAuxFunctions.h:25
PFCand_AssoMapAlgos.h
PFCandidate.h
noPuUtils::kChNoAssoc
Definition: NoPileUpMEtAuxFunctions.h:22
noPuUtils::promoteAssocToHSAssoc
void promoteAssocToHSAssoc(int quality, double z, const reco::VertexCollection &vertices, double dZ, int &vtxAssociationType, bool checkdR2)
Definition: NoPileUpMEtAuxFunctions.cc:104
AssociationMap.h
reco::VertexCollection
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
noPuUtils::kNeutral
Definition: NoPileUpMEtAuxFunctions.h:22
noPuUtils
Definition: NoPileUpMEtAuxFunctions.h:21
AlignmentTracksFromVertexSelector_cfi.vertices
vertices
Definition: AlignmentTracksFromVertexSelector_cfi.py:5
edm::Ref< PFCandidateCollection >
quality
const uint32_t *__restrict__ Quality * quality
Definition: CAHitNtupletGeneratorKernelsImpl.h:122
CandidateFwd.h
OneToManyWithQuality.h
noPuUtils::isVertexAssociated_fast
int isVertexAssociated_fast(const reco::PFCandidateRef &, const noPuUtils::reversedPFCandToVertexAssMap &, const reco::VertexCollection &, double, int &, int)
Definition: NoPileUpMEtAuxFunctions.cc:64
noPuUtils::isVertexAssociated
int isVertexAssociated(const reco::PFCandidatePtr &, const PFCandToVertexAssMap &, const reco::VertexCollection &, double)
Definition: NoPileUpMEtAuxFunctions.cc:11
noPuUtils::kChPUAssoc
Definition: NoPileUpMEtAuxFunctions.h:22
edm::AssociationMap
Definition: AssociationMap.h:48
noPuUtils::reversedPFCandToVertexAssMap
edm::AssociationMap< edm::OneToManyWithQuality< reco::PFCandidateCollection, reco::VertexCollection, int > > reversedPFCandToVertexAssMap
Definition: NoPileUpMEtAuxFunctions.h:28
noPuUtils::kChHSAssoc
Definition: NoPileUpMEtAuxFunctions.h:22
edm::Ptr< PFCandidate >
VertexFwd.h
Ref.h
Vertex.h
noPuUtils::CandQualityPairVector
std::vector< std::pair< reco::PFCandidateRef, int > > CandQualityPairVector
Definition: NoPileUpMEtAuxFunctions.h:24
noPuUtils::reversePFCandToVertexAssociation
noPuUtils::reversedPFCandToVertexAssMap reversePFCandToVertexAssociation(const PFCandToVertexAssMap &)
Definition: NoPileUpMEtAuxFunctions.cc:44
Candidate.h
PFCandidateFwd.h