ATLAS Offline Software
Loading...
Searching...
No Matches
InDetVertexTruthMatchTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef InDetVertexTruthMatchTool_h
6#define InDetVertexTruthMatchTool_h
7
8// Framework include(s):
9#include "AsgTools/AsgTool.h"
10
11// EDM include(s):
15
21
22
24 public asg::AsgTool {
25
27
28 public:
29
30 InDetVertexTruthMatchTool( const std::string & name );
31
32 virtual StatusCode initialize() override final;
33 virtual StatusCode finalize() override;
34
35 //take const collection of vertices, match them, and decorate with matching info
36 virtual StatusCode matchVertices( const xAOD::VertexContainer & vxContainer ) const override;
37
38 private:
39
41
42 //required MC match probability to consider track a good match
44 //relative weight threshold to consider vertex matched
46 //pt cut to use on tracks
48
49 mutable std::atomic<unsigned int> m_nVtx {};
50 mutable std::atomic<unsigned int> m_nVtxWithBadLinks {};
51 mutable std::atomic<unsigned int> m_nBadLinks {};
52 mutable std::atomic<unsigned int> m_nLinks {};
53
54 //private methods to check if particles are good to use
55 bool pass( const xAOD::TruthParticle & truthPart ) const;
56 bool pass( const xAOD::TrackParticle & trackPart ) const;
57
58};
59
60#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Class for vertex truth matching.
std::atomic< unsigned int > m_nVtxWithBadLinks
std::atomic< unsigned int > m_nVtx
InDetVertexTruthMatchTool(const std::string &name)
virtual StatusCode matchVertices(const xAOD::VertexContainer &vxContainer) const override
std::atomic< unsigned int > m_nBadLinks
std::atomic< unsigned int > m_nLinks
bool pass(const xAOD::TruthParticle &truthPart) const
static const xAOD::TrackParticleContainer * findTrackParticleContainer(const xAOD::VertexContainer &vxContainer)
bool pass(const xAOD::TrackParticle &trackPart) const
virtual StatusCode initialize() override final
Dummy implementation of the initialisation function.
virtual StatusCode finalize() override
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
TrackParticle_v1 TrackParticle
Reference the current persistent version:
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
TruthParticle_v1 TruthParticle
Typedef to implementation.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".