ATLAS Offline Software
Loading...
Searching...
No Matches
CopyTruthParticles.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef COPYTRUTHPARTICLES_H
6#define COPYTRUTHPARTICLES_H
7
8#include "AsgTools/AsgTool.h"
16
17// Do I need IAsgTool? I need AsgTool for the eventStore()
21public:
22
24 CopyTruthParticles(const std::string& name);
25
27
28 virtual int execute() const;
29
30 virtual StatusCode initialize();
32
33
35 virtual bool classify(const xAOD::TruthParticle* tp) const = 0;
36
37
38protected:
40 Gaudi::Property<float> m_ptmin{this, "PtMin", 0. , "Minimum pT of particles to be accepted for tagging (in MeV)"};
41
43 SG::ReadHandleKey<xAOD::TruthEventContainer> m_truthEventKey{this, "TruthEventKey", "TruthEvents", "SG Key for input truth event container"};
44
46 SG::WriteHandleKey<ConstDataVector<xAOD::TruthParticleContainer> > m_outTruthPartKey{this, "OutputName", "TagInputs", "Name of the resulting TruthParticle collection"};
47
48};
49
50
51#endif
#define ASG_TOOL_INTERFACE(CLASSNAME)
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
DataVector adapter that acts like it holds const pointers.
SG::WriteHandleKey< ConstDataVector< xAOD::TruthParticleContainer > > m_outTruthPartKey
Key for output truth particles.
virtual bool classify(const xAOD::TruthParticle *tp) const =0
Classifier function(s)
CopyTruthParticles(const std::string &name)
Constructor.
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Gaudi::Property< float > m_ptmin
Minimum pT for particle selection (in MeV)
virtual int execute() const
Method to be called for each event.
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEventKey
Key for input truth event.
IJetExecuteTool is a dual-use tool interface for generic tools, i.e. those that behave like algorithm...
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
TruthParticle_v1 TruthParticle
Typedef to implementation.