The Gaudi Framework
master (d98a2936)
AbortEventAlg.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2025 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
#pragma once
12
// Include files
13
// from Gaudi
14
#include <
GaudiKernel/Algorithm.h
>
15
16
class
IIncidentSvc
;
17
25
class
AbortEventAlg
:
public
Algorithm
{
26
public
:
28
using
Algorithm::Algorithm
;
29
30
StatusCode
initialize
()
override
;
31
StatusCode
execute
()
override
;
32
StatusCode
finalize
()
override
;
33
34
private
:
35
Gaudi::Property<long>
m_count
{
this
,
"AbortedEventNumber"
, 3,
"At which event to trigger an abort"
};
36
38
SmartIF<IIncidentSvc>
m_incidentSvc
;
40
long
m_counter
= 0;
41
};
AbortEventAlg::m_counter
long m_counter
Counter of events.
Definition:
AbortEventAlg.h:40
Algorithm
Alias for backward compatibility.
Definition:
Algorithm.h:58
Algorithm.h
AbortEventAlg::execute
StatusCode execute() override
Algorithm execution.
Definition:
AbortEventAlg.cpp:48
AbortEventAlg
Definition:
AbortEventAlg.h:25
StatusCode
Definition:
StatusCode.h:64
AbortEventAlg::m_count
Gaudi::Property< long > m_count
Definition:
AbortEventAlg.h:35
SmartIF< IIncidentSvc >
AbortEventAlg::initialize
StatusCode initialize() override
Algorithm initialization.
Definition:
AbortEventAlg.cpp:32
AbortEventAlg::m_incidentSvc
SmartIF< IIncidentSvc > m_incidentSvc
Pointer to the incident service.
Definition:
AbortEventAlg.h:38
AbortEventAlg::finalize
StatusCode finalize() override
Algorithm finalization.
Definition:
AbortEventAlg.cpp:60
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition:
Algorithm.h:98
IIncidentSvc
Definition:
IIncidentSvc.h:30
Gaudi::Property< long >
GaudiTestSuite
src
AbortEvent
AbortEventAlg.h
Generated on Wed Aug 13 2025 09:05:05 for The Gaudi Framework by
1.8.18