ATLAS Offline Software
Loading...
Searching...
No Matches
TruthParticleIndexDecoratorAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRUTHPARTICLEINDEXDECORATORALG_H
6#define TRUTHPARTICLEINDEXDECORATORALG_H
7
8// STL includes
9#include <string>
14
15// class to decorate xAOD::TruthParticles with additional information required by validation
17public:
18 TruthParticleIndexDecoratorAlg(const std::string& name, ISvcLocator* pSvcLocator);
19 virtual StatusCode initialize();
20 virtual StatusCode execute(const EventContext &ctx) const;
21
22private:
23
26 {this, "TruthParticleContainerName", "TruthParticles", ""};
27
29 {this, "TruthParticleIndexDecoration", "origTruthIndex", "decoration name for the original truth particle index."};
30};
31#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_truthParticleName
TruthParticle container's name needed to create decorators.
TruthParticleIndexDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteDecorHandleKey< xAOD::TruthParticleContainer > m_indexDecor
virtual StatusCode execute(const EventContext &ctx) const