ATLAS Offline Software
Loading...
Searching...
No Matches
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
20#include "GaudiKernel/ServiceHandle.h"
21
22namespace D3PD {
23
25 : public BlockFillerTool<xAOD::TruthParticle>
26{
27public:
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
64
67
70
72 int* m_pdgId;
73
75 float* m_charge;
76};
77
78
79} // namespace D3PD
80
81
82#endif // not TRUTHD3PDMAKER_TRUTHPARTICLEFILLERTOOL_H
Type-safe wrapper for block filler tools.
Type-safe wrapper for block filler tools.
BlockFillerTool< xAOD::TruthParticle > Base
int * m_uniqueID
Variable: Unique Identifier for the particle.
std::string m_PDGIDVariable
Property: Name for pdgId variable.
float * m_charge
Variable: Particle charge.
int * m_status
Variable: Status code for the particle.
virtual StatusCode initialize() override
Standard Gaudi initialize method.
TruthParticleFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
int * m_pdgId
Variable: Particle ID code.
virtual StatusCode book() final
Book variables for this block.
virtual StatusCode fill(const xAOD::TruthParticle &p) override
Fill one block — type-safe version.
Block filler tool for noisy FEB information.
STL namespace.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
#define private
Definition testRead.cxx:27