ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
const std::vector< std::pair< const xAOD::Vertex *, size_t > > hardScatterMatches(const xAOD::VertexContainer &vxContainer)
std::tuple< ElementLink< xAOD::TruthEventBaseContainer >, float, float > VertexTruthMatchInfo
const xAOD::Vertex * bestHardScatterMatch(const xAOD::VertexContainer &vxContainer)
HardScatterType classifyHardScatter(const xAOD::VertexContainer &vxContainer)
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.