Forked from
atlas / athena
108785 commits behind, 11 commits ahead of the upstream repository.
-
Edward Moyse authoredEdward Moyse authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ExampleAlg_step4.h 933 B
/*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
#ifndef MYNEWPACKAGE_EXAMPLEALG_STEP4_H
#define MYNEWPACKAGE_EXAMPLEALG_STEP4_H
#include "AthenaBaseComps/AthReentrantAlgorithm.h"
#include "xAODTracking/TrackParticleContainer.h"
#include "DevTutorialWriteAlgAndTool/IMyAlgTool.h"
/** An example algorithm that reads and writes objects from the event store
using handles.*/
class ExampleAlg_step4
: public AthReentrantAlgorithm
{
public:
using AthReentrantAlgorithm::AthReentrantAlgorithm;
virtual StatusCode initialize() override;
virtual StatusCode execute (const EventContext& ctx) const override;
private:
SG::ReadHandleKey<xAOD::TrackParticleContainer> m_trackParticleKey
{ this, "TrackParticleContainerKey", "InDetTrackParticles", "Key for TrackParticle Containers" };
ToolHandle<IMyAlgTool> m_algTool {this, "SelectionTool", "MyAlgTool", "The selection tool"};
};
#endif