ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonCnv
MuonBucketDump
src
TruthMuonVertexDumper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONCSVDUMP_TruthMuonVertexDumperAlg_H
5
#define MUONCSVDUMP_TruthMuonVertexDumperAlg_H
6
7
8
#include "
AthenaBaseComps/AthHistogramAlgorithm.h
"
9
10
#include "
StoreGate/ReadHandleKey.h
"
11
12
#include "
xAODTruth/TruthParticleContainer.h
"
13
#include "
xAODTruth/TruthVertexContainer.h
"
14
15
#include "
MuonTesterTree/MuonTesterTree.h
"
16
#include "
MuonTesterTree/ThreeVectorBranch.h
"
17
#include <
MuonTesterTree/IParticleFourMomBranch.h
>
18
19
20
namespace
MuonR4
{
21
class
TruthMuonVertexDumperAlg
:
public
AthHistogramAlgorithm
{
22
23
public
:
24
using
AthHistogramAlgorithm::AthHistogramAlgorithm
;
25
~TruthMuonVertexDumperAlg
() =
default
;
26
27
virtual
StatusCode
initialize
() override final;
28
virtual StatusCode
finalize
() override final;
29
virtual StatusCode
execute
(
const
EventContext& ctx) override final;
30
31
private
:
32
SG
::ReadHandleKey<
xAOD
::
TruthParticleContainer
>
m_truthMuonsKey
{
this
,
"TruthMuonsKey"
,
"MuonTruthParticles"
,
"Key to the truth particle container"
};
33
SG::ReadHandleKey<xAOD::TruthVertexContainer>
m_truthVertexKey
{
this
,
"TruthVerticesKey"
,
"TruthVertices"
,
"Key to the truth vertex container"
};
34
35
Gaudi::Property<std::vector<int>>
m_pdgIdsToKeepVertex
{
this
,
"PdgIdsToKeepVertex"
, {25, 36, 50, 72, 31, 32, 3000001},
"List of PDG IDs to keep vertices for"
};
36
37
MuonVal::MuonTesterTree
m_tree
{
"MuonVertexDump"
,
"MuonBucketDump"
};
38
39
bool
selectDecayVertex
(
const
xAOD::TruthVertex
* vertex)
const
;
40
void
printChildren
(
const
xAOD::TruthParticle
* particle,
int
indentLevel)
const
;
41
void
printParents
(
const
xAOD::TruthParticle
* particle,
int
indentLevel)
const
;
42
43
bool
isFromVertexOfInterest
(
const
xAOD::TruthParticle
* particle,
const
xAOD::TruthVertex
* vertex)
const
;
44
45
//Truth muon information
46
MuonVal::ThreeVectorBranch
m_truthMuonVertexPosition
{
m_tree
,
"truthMuonVertexPosition"
};
47
MuonVal::MatrixBranch<uint16_t>
&
m_truthMuonVertexMuonLinks
{
m_tree
.newMatrix<uint16_t>(
"truthMuonVertexMuonLinks"
)};
48
std::shared_ptr<MuonVal::IParticleFourMomBranch>
m_truthMuonP4
{};
49
};
50
}
51
#endif
AthHistogramAlgorithm.h
TruthParticleContainer.h
IParticleFourMomBranch.h
MuonTesterTree.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ThreeVectorBranch.h
TruthVertexContainer.h
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonR4::TruthMuonVertexDumperAlg
Definition
TruthMuonVertexDumper.h:21
MuonR4::TruthMuonVertexDumperAlg::m_truthMuonVertexPosition
MuonVal::ThreeVectorBranch m_truthMuonVertexPosition
Definition
TruthMuonVertexDumper.h:46
MuonR4::TruthMuonVertexDumperAlg::printChildren
void printChildren(const xAOD::TruthParticle *particle, int indentLevel) const
Definition
TruthMuonVertexDumper.cxx:93
MuonR4::TruthMuonVertexDumperAlg::m_tree
MuonVal::MuonTesterTree m_tree
Definition
TruthMuonVertexDumper.h:37
MuonR4::TruthMuonVertexDumperAlg::execute
virtual StatusCode execute(const EventContext &ctx) override final
Execute method.
Definition
TruthMuonVertexDumper.cxx:31
MuonR4::TruthMuonVertexDumperAlg::m_truthVertexKey
SG::ReadHandleKey< xAOD::TruthVertexContainer > m_truthVertexKey
Definition
TruthMuonVertexDumper.h:33
MuonR4::TruthMuonVertexDumperAlg::initialize
virtual StatusCode initialize() override final
Definition
TruthMuonVertexDumper.cxx:12
MuonR4::TruthMuonVertexDumperAlg::m_truthMuonVertexMuonLinks
MuonVal::MatrixBranch< uint16_t > & m_truthMuonVertexMuonLinks
Definition
TruthMuonVertexDumper.h:47
MuonR4::TruthMuonVertexDumperAlg::~TruthMuonVertexDumperAlg
~TruthMuonVertexDumperAlg()=default
MuonR4::TruthMuonVertexDumperAlg::printParents
void printParents(const xAOD::TruthParticle *particle, int indentLevel) const
Definition
TruthMuonVertexDumper.cxx:103
MuonR4::TruthMuonVertexDumperAlg::m_truthMuonP4
std::shared_ptr< MuonVal::IParticleFourMomBranch > m_truthMuonP4
Definition
TruthMuonVertexDumper.h:48
MuonR4::TruthMuonVertexDumperAlg::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonR4::TruthMuonVertexDumperAlg::m_pdgIdsToKeepVertex
Gaudi::Property< std::vector< int > > m_pdgIdsToKeepVertex
Definition
TruthMuonVertexDumper.h:35
MuonR4::TruthMuonVertexDumperAlg::finalize
virtual StatusCode finalize() override final
Definition
TruthMuonVertexDumper.cxx:26
MuonR4::TruthMuonVertexDumperAlg::selectDecayVertex
bool selectDecayVertex(const xAOD::TruthVertex *vertex) const
Definition
TruthMuonVertexDumper.cxx:70
MuonR4::TruthMuonVertexDumperAlg::isFromVertexOfInterest
bool isFromVertexOfInterest(const xAOD::TruthParticle *particle, const xAOD::TruthVertex *vertex) const
Definition
TruthMuonVertexDumper.cxx:115
MuonR4::TruthMuonVertexDumperAlg::m_truthMuonsKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthMuonsKey
Definition
TruthMuonVertexDumper.h:32
MuonVal::MatrixBranch
Definition
MatrixBranch.h:12
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
MuonVal::ThreeVectorBranch
Definition
ThreeVectorBranch.h:14
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
TruthParticleContainer
Definition
PhysicsAnalysis/TruthParticleID/McParticleEvent/McParticleEvent/TruthParticleContainer.h:42
const
MuonR4
This header ties the generic definitions in this package.
Definition
GlobalPattern.h:14
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::TruthVertex
TruthVertex_v1 TruthVertex
Typedef to implementation.
Definition
TruthVertex.h:15
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0