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#include "GaudiKernel/IPartPropSvc.h"
22
23namespace D3PD {
24
26 : public BlockFillerTool<xAOD::TruthParticle>
27{
28public:
30
31
38 TruthParticleFillerTool (const std::string& type,
39 const std::string& name,
40 const IInterface* parent);
41
42
44 virtual StatusCode initialize() override;
45
46
48 virtual StatusCode book() final;
49
50
59 virtual StatusCode fill (const xAOD::TruthParticle& p) override;
60
61
65
67 ServiceHandle<IPartPropSvc> m_ppsvc;
68
71
74
76 int* m_pdgId;
77
79 float* m_charge;
80};
81
82
83} // namespace D3PD
84
85
86#endif // not TRUTHD3PDMAKER_TRUTHPARTICLEFILLERTOOL_H
Type-safe wrapper for block filler tools.
Type-safe wrapper for block filler tools.
ServiceHandle< IPartPropSvc > m_ppsvc
Property: Particle property service.
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