ATLAS Offline Software
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-2023 CERN for the benefit of the ATLAS collaboration
5 */
6 
14 #ifndef TRUTHD3PDMAKER_TRUTHPARTICLEFILLERTOOL_H
15 #define TRUTHD3PDMAKER_TRUTHPARTICLEFILLERTOOL_H
16 
17 
20 #include "GaudiKernel/ServiceHandle.h"
21 #include "GaudiKernel/IPartPropSvc.h"
22 
23 namespace D3PD {
24 
26  : public BlockFillerTool<xAOD::TruthParticle>
27 {
28 public:
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 
62 private:
64  std::string m_PDGIDVariable;
65 
67  ServiceHandle<IPartPropSvc> m_ppsvc;
68 
70  int* m_status;
71 
73  int* m_barcode;
74 
76  int* m_pdgId;
77 
79  float* m_charge;
80 };
81 
82 
83 } // namespace D3PD
84 
85 
86 #endif // not TRUTHD3PDMAKER_TRUTHPARTICLEFILLERTOOL_H
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
D3PD::TruthParticleFillerTool::m_status
int * m_status
Variable: Status code for the particle.
Definition: TruthParticleFillerTool.h:70
D3PD::TruthParticleFillerTool::m_pdgId
int * m_pdgId
Variable: Particle ID code.
Definition: TruthParticleFillerTool.h:76
D3PD::TruthParticleFillerTool
Definition: TruthParticleFillerTool.h:27
TruthParticle
Definition: PhysicsAnalysis/TruthParticleID/McParticleEvent/McParticleEvent/TruthParticle.h:58
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
BlockFillerTool.h
Type-safe wrapper for block filler tools.
D3PD
Block filler tool for noisy FEB information.
Definition: InnerDetector/InDetMonitoring/InDetGlobalMonitoring/macros/EnhancedPrimaryVertexMonitoring/TrigD3PD/ChainGroup.h:21
D3PD::TruthParticleFillerTool::m_charge
float * m_charge
Variable: Particle charge.
Definition: TruthParticleFillerTool.h:79
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
D3PD::TruthParticleFillerTool::fill
virtual StatusCode fill(const xAOD::TruthParticle &p) override
Fill one block — type-safe version.
Definition: TruthParticleFillerTool.cxx:73
test_pyathena.parent
parent
Definition: test_pyathena.py:15
D3PD::BlockFillerTool
Type-safe wrapper for block filler tools.
Definition: BlockFillerTool.h:68
D3PD::TruthParticleFillerTool::m_barcode
int * m_barcode
Variable: Barcode for the particle.
Definition: TruthParticleFillerTool.h:73
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
D3PD::TruthParticleFillerTool::initialize
virtual StatusCode initialize() override
Standard Gaudi initialize method.
Definition: TruthParticleFillerTool.cxx:45
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
D3PD::TruthParticleFillerTool::m_PDGIDVariable
std::string m_PDGIDVariable
Property: Name for pdgId variable.
Definition: TruthParticleFillerTool.h:64
D3PD::TruthParticleFillerTool::TruthParticleFillerTool
TruthParticleFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Definition: TruthParticleFillerTool.cxx:28
TruthParticle.h
D3PD::TruthParticleFillerTool::Base
BlockFillerTool< xAOD::TruthParticle > Base
Definition: TruthParticleFillerTool.h:29
D3PD::TruthParticleFillerTool::book
virtual StatusCode book() final
Book variables for this block.
Definition: TruthParticleFillerTool.cxx:55
D3PD::TruthParticleFillerTool::m_ppsvc
ServiceHandle< IPartPropSvc > m_ppsvc
Property: Particle property service.
Definition: TruthParticleFillerTool.h:67
ServiceHandle
Definition: ClusterMakerTool.h:37