The Gaudi Framework
master (123e188a)
Toggle main menu visibility
Loading...
Searching...
No Matches
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
};
Algorithm.h
AbortEventAlg
Small algorithm that after a given number of events triggers an AbortEvent.
Definition
AbortEventAlg.h:25
AbortEventAlg::initialize
StatusCode initialize() override
Algorithm initialization.
Definition
AbortEventAlg.cpp:32
AbortEventAlg::m_count
Gaudi::Property< long > m_count
Definition
AbortEventAlg.h:35
AbortEventAlg::execute
StatusCode execute() override
Algorithm execution.
Definition
AbortEventAlg.cpp:48
AbortEventAlg::m_counter
long m_counter
Counter of events.
Definition
AbortEventAlg.h:40
AbortEventAlg::finalize
StatusCode finalize() override
Algorithm finalization.
Definition
AbortEventAlg.cpp:60
AbortEventAlg::m_incidentSvc
SmartIF< IIncidentSvc > m_incidentSvc
Pointer to the incident service.
Definition
AbortEventAlg.h:38
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition
Algorithm.h:98
Gaudi::Property
Implementation of property with value of concrete type.
Definition
Property.h:35
IIncidentSvc
The interface implemented by the IncidentSvc service.
Definition
IIncidentSvc.h:30
SmartIF
Small smart pointer class with automatic reference counting for IInterface.
Definition
SmartIF.h:28
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
GaudiTestSuite
src
AbortEvent
AbortEventAlg.h
Generated on
for The Gaudi Framework by
1.17.0