ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
TruthD3PDMaker
src
TruthParticleFillerTool.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3
/*
4
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5
*/
6
13
14
#ifndef TRUTHD3PDMAKER_TRUTHPARTICLEFILLERTOOL_H
15
#define TRUTHD3PDMAKER_TRUTHPARTICLEFILLERTOOL_H
16
17
18
#include "
D3PDMakerUtils/BlockFillerTool.h
"
19
#include "
xAODTruth/TruthParticle.h
"
20
#include "GaudiKernel/ServiceHandle.h"
21
22
namespace
D3PD
{
23
24
class
TruthParticleFillerTool
25
:
public
BlockFillerTool
<xAOD::TruthParticle>
26
{
27
public
:
28
typedef
BlockFillerTool<xAOD::TruthParticle>
Base
;
29
30
37
TruthParticleFillerTool
(
const
std::string&
type
,
38
const
std::string& name,
39
const
IInterface* parent);
40
41
43
virtual
StatusCode
initialize
()
override
;
44
45
47
virtual
StatusCode
book
() final;
48
49
58
virtual StatusCode
fill
(
const
xAOD
::
TruthParticle
& p) override;
59
60
61
private
:
63
std
::
string
m_PDGIDVariable
;
64
66
int
*
m_status
;
67
69
int
*
m_uniqueID
;
70
72
int
*
m_pdgId
;
73
75
float
*
m_charge
;
76
};
77
78
79
}
// namespace D3PD
80
81
82
#endif
// not TRUTHD3PDMAKER_TRUTHPARTICLEFILLERTOOL_H
BlockFillerTool.h
Type-safe wrapper for block filler tools.
TruthParticle.h
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition
BlockFillerTool.h:65
D3PD::TruthParticleFillerTool::Base
BlockFillerTool< xAOD::TruthParticle > Base
Definition
TruthParticleFillerTool.h:28
D3PD::TruthParticleFillerTool::m_uniqueID
int * m_uniqueID
Variable: Unique Identifier for the particle.
Definition
TruthParticleFillerTool.h:69
D3PD::TruthParticleFillerTool::m_PDGIDVariable
std::string m_PDGIDVariable
Property: Name for pdgId variable.
Definition
TruthParticleFillerTool.h:63
D3PD::TruthParticleFillerTool::m_charge
float * m_charge
Variable: Particle charge.
Definition
TruthParticleFillerTool.h:75
D3PD::TruthParticleFillerTool::m_status
int * m_status
Variable: Status code for the particle.
Definition
TruthParticleFillerTool.h:66
D3PD::TruthParticleFillerTool::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition
TruthParticleFillerTool.cxx:40
D3PD::TruthParticleFillerTool::TruthParticleFillerTool
TruthParticleFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition
TruthParticleFillerTool.cxx:26
D3PD::TruthParticleFillerTool::m_pdgId
int * m_pdgId
Variable: Particle ID code.
Definition
TruthParticleFillerTool.h:72
D3PD::TruthParticleFillerTool::book
virtual StatusCode book() final
Book variables for this block.
Definition
TruthParticleFillerTool.cxx:49
D3PD::TruthParticleFillerTool::fill
virtual StatusCode fill(const xAOD::TruthParticle &p) override
Fill one block — type-safe version.
Definition
TruthParticleFillerTool.cxx:67
TruthParticle
(HepMC) Monte Carlo particle.
Definition
PhysicsAnalysis/TruthParticleID/McParticleEvent/McParticleEvent/TruthParticle.h:58
const
D3PD
Block filler tool for noisy FEB information.
Definition
CaloCellDetailsFillerTool.cxx:29
std
STL namespace.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
type
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0