The Gaudi Framework  v33r0 (d5ea422b)
LegacyAlgorithm.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #include <GaudiKernel/Algorithm.h>
12 
14 
15 namespace Gaudi {
16  namespace details {
18  return execState( Gaudi::Hive::currentContext() ).state() == AlgExecState::State::Done;
19  }
20 
23  .setState( state ? AlgExecState::State::Done : AlgExecState::State::None );
24  }
25 
27 
30  }
31 
34  }
35  } // namespace details
36 } // namespace Gaudi
void resetExecuted()
Reset the executed state of the Algorithm for the duration of the current event.
void setFilterPassed(bool state) const
Set the filter passed flag to the specified state.
bool filterPassed() const
void setState(State s)
State state() const
GAUDI_API const EventContext & currentContext()
AlgExecState & execState(const EventContext &ctx) const override
reference to AlgExecState of Alg
Definition: Algorithm.cpp:568
void setExecuted(bool state) const
Set the executed flag to the specified state.
bool isExecuted() const
Has this algorithm been executed since the last reset?
void setFilterPassed(bool f=true)
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1
bool filterPassed() const
Did this algorithm pass or fail its filter criterion for the last event?