The Gaudi Framework
v36r1 (3e2fb5a8)
EventNodeKiller.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 files
12
// local
13
#include "
EventNodeKiller.h
"
14
15
//-----------------------------------------------------------------------------
16
// Implementation file for class : EventNodeKiller
17
//
18
// 2005-07-14 : Marco Cattaneo
19
//-----------------------------------------------------------------------------
20
21
// Declaration of the Algorithm Factory
22
DECLARE_COMPONENT
(
EventNodeKiller
)
23
24
//=============================================================================
25
// Main execution
26
//=============================================================================
27
StatusCode
EventNodeKiller
::
execute
() {
28
29
if
( msgLevel(
MSG::DEBUG
) ) debug() <<
"==> Execute"
<<
endmsg
;
30
31
for
(
auto
& node : m_nodes ) {
32
if
( msgLevel(
MSG::DEBUG
) ) debug() <<
"Killing node "
<< node <<
endmsg
;
33
eventSvc()->unlinkObject( node ).ignore();
34
}
35
36
return
StatusCode::SUCCESS
;
37
}
38
//=============================================================================
MSG::DEBUG
@ DEBUG
Definition:
IMessageSvc.h:25
StatusCode
Definition:
StatusCode.h:65
GaudiPython.Pythonizations.execute
execute
Definition:
Pythonizations.py:566
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition:
MsgStream.h:203
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition:
StatusCode.h:100
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition:
PluginServiceV1.h:46
EventNodeKiller
Definition:
EventNodeKiller.h:27
EventNodeKiller.h
GaudiAlg
src
components
EventNodeKiller.cpp
Generated on Tue Sep 21 2021 12:27:38 for The Gaudi Framework by
1.8.18