ATLAS Offline Software
Loading...
Searching...
No Matches
TruthParticlesInConeTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef PARTICLESINCONETOOLS_TRUTHPARTICLESINCONETOOL_H
6#define PARTICLESINCONETOOLS_TRUTHPARTICLESINCONETOOL_H
7
9#include "GaudiKernel/ServiceHandle.h"
11
16
17namespace xAOD {
18
20 : public AthAlgTool
21 , virtual public ITruthParticlesInConeTool
22{
23public:
25 TruthParticlesInConeTool(const std::string& type,
26 const std::string& name,
27 const IInterface* parent);
28
30 virtual ~TruthParticlesInConeTool() = default;
31
33 virtual StatusCode initialize() override final;
34
36 virtual bool particlesInCone(
37 const EventContext& ctx,
38 float eta,
39 float phi,
40 float dr,
41 std::vector<const TruthParticle*>& output) const override final;
42
44
46 // init look-up table
47 const LookUpTable* getTable(const EventContext& ctx) const;
48
51 this,
52 "TruthParticleLocation",
53 "TruthParticles"
54 };
55
58};
59} // end of namespace
60
62#endif
63
Scalar eta() const
pseudorapidity method
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
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.
2D look up table for iParticles
interface for collecting truth particles inside a cone
virtual ~TruthParticlesInConeTool()=default
destructor
SG::WriteHandleKey< LookUpTable > m_LookUpTableCacheWrite
TruthParticlesInConeTool(const std::string &type, const std::string &name, const IInterface *parent)
constructor
const LookUpTable * getTable(const EventContext &ctx) const
SG::ReadHandleKey< TruthParticleContainer > m_truthParticleLocation
Truth Particle collection name.
virtual bool particlesInCone(const EventContext &ctx, float eta, float phi, float dr, std::vector< const TruthParticle * > &output) const override final
ITruthParticlesInConeTool interface.
SG::ReadHandleKey< LookUpTable > m_LookUpTableCacheRead
IParticlesLookUpTable< TruthParticle > LookUpTable
virtual StatusCode initialize() override final
initialize
Forward declaration.
STL namespace.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
TruthParticle_v1 TruthParticle
Typedef to implementation.
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.
#define private