ATLAS Offline Software
InDetVertexTruthMatchUtils.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef InDetVertexTruthMatchUtils_h
6 #define InDetVertexTruthMatchUtils_h
7 
10 
12 
13  //Namespace for useful analysis things on the truth matching decorations applied to the VertexContainer
14  //Can be called by algorithms inside or outside Athena to do their analysis
15 
16  //How the matching info is stored; link to the truth vertex, a float with its contribution to the relative track weight, and a float with its contribution to the track sumpt2 of the truth vertex
17  typedef std::tuple<ElementLink<xAOD::TruthEventBaseContainer>, float, float> VertexTruthMatchInfo;
18 
19  //type codes for vertex matching on all vertices
21  MATCHED, // > threshold (default 70%) from one truth interaction
22  MERGED, // not matched
23  SPLIT, // highest weight truth interaction contributes to >1 vtx (vtx with highest fraction of sumpT2 remains matched/merged)
24  FAKE, // highest contribution is fake (if pile-up MC info not present those tracks end up as "fakes")
25  DUMMY, // is the dummy vertex
26  NTYPES // access to number of types
27 };
28 
29  //Classification for true hard-scatter interaction
31  CLEAN, // matched
32  LOWPU, // merged, but dominant contributor
33  HIGHPU, // merged and dominated by pile-up or fakes
34  HSSPLIT, // split
35  NONE, // not found
36  NHSTYPES
37  };
38 
39  //Find the best reco vertex matching the hard scatter event
40  //returns 0 in case can't find one
41  const xAOD::Vertex * bestHardScatterMatch( const xAOD::VertexContainer & vxContainer );
42 
43  //pointers to all reco vertices for which the hard scatter has some contribution
44  //includes the index in the matching info where to find it
45  const std::vector<std::pair<const xAOD::Vertex*, size_t> > hardScatterMatches( const xAOD::VertexContainer & vxContainer );
46 
47  //find the hard scatter type
49 
50 }
51 
52 
53 #endif
InDetVertexTruthMatchUtils::DUMMY
@ DUMMY
Definition: InDetVertexTruthMatchUtils.h:25
InDetVertexTruthMatchUtils::LOWPU
@ LOWPU
Definition: InDetVertexTruthMatchUtils.h:32
VertexContainerFwd.h
TruthEventBaseContainer.h
InDetVertexTruthMatchUtils::bestHardScatterMatch
const xAOD::Vertex * bestHardScatterMatch(const xAOD::VertexContainer &vxContainer)
Definition: InDetVertexTruthMatchUtils.cxx:20
InDetVertexTruthMatchUtils::classifyHardScatter
HardScatterType classifyHardScatter(const xAOD::VertexContainer &vxContainer)
Definition: InDetVertexTruthMatchUtils.cxx:70
InDetVertexTruthMatchUtils::MATCHED
@ MATCHED
Definition: InDetVertexTruthMatchUtils.h:21
InDetVertexTruthMatchUtils::NHSTYPES
@ NHSTYPES
Definition: InDetVertexTruthMatchUtils.h:36
InDetVertexTruthMatchUtils::CLEAN
@ CLEAN
Definition: InDetVertexTruthMatchUtils.h:31
InDetVertexTruthMatchUtils::HSSPLIT
@ HSSPLIT
Definition: InDetVertexTruthMatchUtils.h:34
InDetVertexTruthMatchUtils::HIGHPU
@ HIGHPU
Definition: InDetVertexTruthMatchUtils.h:33
InDetVertexTruthMatchUtils::NTYPES
@ NTYPES
Definition: InDetVertexTruthMatchUtils.h:26
InDetVertexTruthMatchUtils::VertexTruthMatchInfo
std::tuple< ElementLink< xAOD::TruthEventBaseContainer >, float, float > VertexTruthMatchInfo
Definition: InDetVertexTruthMatchUtils.h:17
InDetVertexTruthMatchUtils::VertexMatchType
VertexMatchType
Definition: InDetVertexTruthMatchUtils.h:20
InDetVertexTruthMatchUtils::NONE
@ NONE
Definition: InDetVertexTruthMatchUtils.h:35
InDetVertexTruthMatchUtils
Definition: InDetVertexTruthMatchUtils.h:11
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
InDetVertexTruthMatchUtils::MERGED
@ MERGED
Definition: InDetVertexTruthMatchUtils.h:22
InDetVertexTruthMatchUtils::SPLIT
@ SPLIT
Definition: InDetVertexTruthMatchUtils.h:23
InDetVertexTruthMatchUtils::HardScatterType
HardScatterType
Definition: InDetVertexTruthMatchUtils.h:30
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
InDetVertexTruthMatchUtils::FAKE
@ FAKE
Definition: InDetVertexTruthMatchUtils.h:24
readCCLHist.float
float
Definition: readCCLHist.py:83
InDetVertexTruthMatchUtils::hardScatterMatches
const std::vector< std::pair< const xAOD::Vertex *, size_t > > hardScatterMatches(const xAOD::VertexContainer &vxContainer)
Definition: InDetVertexTruthMatchUtils.cxx:41