ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaBaseComps
src
AthAlgorithm.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AthenaBaseComps/AthAlgorithm.h
"
6
7
#include "
CxxUtils/checker_macros.h
"
8
9
10
AthAlgorithm::AthAlgorithm
(
const
std::string& name,
11
ISvcLocator* pSvcLocator ) :
12
AthCommonAlgorithm
<
Gaudi
::Algorithm>( name, pSvcLocator )
13
{
14
// default cardinality for non-reentrant algorithms
15
setProperty
(
"Cardinality"
, 1 ).orThrow(
"Unable to set property 'Cardinality'"
, name);
16
}
17
18
19
StatusCode
AthAlgorithm::execute
(
const
EventContext& ctx )
const
20
{
21
// "Thread-safe" because scheduler ensures algorithm never gets called concurrently.
22
auto
nc_this
ATLAS_THREAD_SAFE
=
const_cast<
AthAlgorithm
*
>
( this );
23
return
nc_this->execute( ctx );
24
}
AthAlgorithm.h
setProperty
void setProperty(columnar::PythonToolHandle &self, const std::string &key, nb::object value)
Definition
NanobindBindings.cxx:75
checker_macros.h
Define macros for attributes used to control the static checker.
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition
checker_macros.h:211
AthAlgorithm::execute
virtual StatusCode execute(const EventContext &ctx)=0
Execute method.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
AthCommonAlgorithm< Gaudi::Algorithm >::AthCommonAlgorithm
AthCommonAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition
AthCommonAlgorithm.cxx:17
Gaudi
=============================================================================
Definition
CaloGPUClusterAndCellDataMonitorOptions.h:273
Generated on
for ATLAS Offline Software by
1.17.0