ATLAS Offline Software
Trigger
TrigSteer
DecisionHandling
src
PassFilter.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
PassFilter.h
"
6
#include "
AthenaKernel/Timeout.h
"
7
#include "
AthenaKernel/AthStatusCode.h
"
8
9
PassFilter::PassFilter
(
const
std::string&
name
, ISvcLocator* pSvcLocator) :
10
AthReentrantAlgorithm
(
name
, pSvcLocator)
11
{
12
}
13
14
StatusCode
PassFilter::execute
(
const
EventContext& ctx)
const
15
{
16
if
(
Athena::Timeout::instance
(ctx).reached()) {
17
ATH_MSG_ERROR
(
"Timeout reached before "
<<
name
());
18
return
Athena::Status::TIMEOUT
;
19
}
20
return
StatusCode::SUCCESS;
21
}
22
PassFilter.h
PassFilter::execute
virtual StatusCode execute(const EventContext &context) const override final
Definition:
PassFilter.cxx:14
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition:
AthReentrantAlgorithm.h:83
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition:
AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Athena::Timeout::instance
static Timeout & instance()
Get reference to Timeout singleton.
Definition:
Timeout.h:64
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:195
Athena::Status::TIMEOUT
@ TIMEOUT
Timeout during event processing.
Timeout.h
Timeout singleton.
AthStatusCode.h
PassFilter::PassFilter
PassFilter(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
PassFilter.cxx:9
Generated on Fri Jul 5 2024 21:24:08 for ATLAS Offline Software by
1.8.18