ATLAS Offline Software
Loading...
Searching...
No Matches
SecVertexTruthMatchAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRACKINGANALYSISALGORITHMS_SECVERTEXTRUTHMATCHALG_H
6#define TRACKINGANALYSISALGORITHMS_SECVERTEXTRUTHMATCHALG_H
7
8// Gaudi/Athena include(s):
10#include "AsgTools/ToolHandle.h"
11
12// SG includes
16
17// Local include(s):
19
20// Asg includes
24
25namespace CP {
26
32
33 public:
35 SecVertexTruthMatchAlg( const std::string& name, ISvcLocator* svcLoc );
36 virtual StatusCode initialize() override;
37 virtual StatusCode execute() override;
38
39 private:
40 // Input (reco) Secondary Vertices
41 SG::ReadHandleKey<xAOD::VertexContainer> m_secVtxContainerKey{this, "SecondaryVertexContainer", "VrtSecInclusive_SecondaryVertices",
42 "Secondary vertex container"};
43 // Input Truth Vertices
44 SG::ReadHandleKey<xAOD::TruthVertexContainer> m_truthVtxContainerKey{this, "TruthVertexContainer", "TruthVertices",
45 "Truth vertex container"};
46 // Input Tracks
47 SG::ReadHandleKey<xAOD::TrackParticleContainer> m_trackParticleContainerKey{this, "TrackParticleContainer", "InDetTrackParticles",
48 "Track container"};
49
50 Gaudi::Property<std::vector<int>> m_targetPDGIDs{this, "TargetPDGIDs", {}, "List of PDGIDs to select for matching"};
51
52 Gaudi::Property<bool> m_writeHistograms{this, "WriteHistograms", true, "Write histograms"};
53
54 ToolHandle<IInDetSecVtxTruthMatchTool> m_matchTool{this, "MatchTool", "InDetSecVtxTruthMatchTool"};
55 Gaudi::Property<bool> m_doMuSA{this, "doMuSA", false, "MuSA mode for wider histogram ranges"};
56 Gaudi::Property<bool> m_doSMOrigin{this, "doSMOrigin", false, "Enable SM origin categorization"};
57
58 void fillRecoHistograms(const xAOD::Vertex* secVtx, const std::string& matchType);
59 void fillTruthHistograms(const xAOD::TruthVertex* truthVtx, const std::string& truthType);
60 void fillOriginHistograms(const xAOD::Vertex* secVtx, const std::string& originType);
61 };
62} // namespace CP
63#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Handle class for reading from StoreGate.
void fillOriginHistograms(const xAOD::Vertex *secVtx, const std::string &originType)
Gaudi::Property< bool > m_doMuSA
Gaudi::Property< bool > m_writeHistograms
Gaudi::Property< std::vector< int > > m_targetPDGIDs
Gaudi::Property< bool > m_doSMOrigin
virtual StatusCode initialize() override
void fillRecoHistograms(const xAOD::Vertex *secVtx, const std::string &matchType)
virtual StatusCode execute() override
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleContainerKey
SG::ReadHandleKey< xAOD::VertexContainer > m_secVtxContainerKey
ToolHandle< IInDetSecVtxTruthMatchTool > m_matchTool
SecVertexTruthMatchAlg(const std::string &name, ISvcLocator *svcLoc)
Regular Algorithm constructor.
void fillTruthHistograms(const xAOD::TruthVertex *truthVtx, const std::string &truthType)
SG::ReadHandleKey< xAOD::TruthVertexContainer > m_truthVtxContainerKey
the (new) base class for EventLoop algorithms
Property holding a SG store/key/clid from which a ReadHandle is made.
Select isolated Photons, Electrons and Muons.
TruthVertex_v1 TruthVertex
Typedef to implementation.
Definition TruthVertex.h:15
Vertex_v1 Vertex
Define the latest version of the vertex class.