ATLAS Offline Software
Loading...
Searching...
No Matches
AlpakaExampleAlg.h
Go to the documentation of this file.
1//
2// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3//
4
5#ifndef ATHEXALPAKA_ALPAKAEXAMPLEALG_H
6#define ATHEXALPAKA_ALPAKAEXAMPLEALG_H
7
8// Framework include(s).
10
12
13 public:
15 using AthReentrantAlgorithm::AthReentrantAlgorithm;
16
18 virtual StatusCode initialize() override;
19
21 virtual StatusCode execute( const EventContext& ctx ) const override;
22
23 private:
25 Gaudi::Property< unsigned int > m_nElements{
26 this, "NElements", 8,
27 "Number of synthetic elements to process per event" };
28
29}; // class AlpakaExampleAlg
30
31#endif // ATHEXALPAKA_ALPAKAEXAMPLEALG_H
32
virtual StatusCode initialize() override
The function setting up the algorithm.
virtual StatusCode execute(const EventContext &ctx) const override
The function executing this algorithm.
Gaudi::Property< unsigned int > m_nElements
The number of synthetic elements to process per event.
An algorithm that can be simultaneously executed in multiple threads.