Gaudi Framework, version v25r1
Home
Generated: Mon Mar 24 2014
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
GaudiAlg
src
components
EventNodeKiller.cpp
Go to the documentation of this file.
1
// Include files
2
// local
3
#include "
EventNodeKiller.h
"
4
5
//-----------------------------------------------------------------------------
6
// Implementation file for class : EventNodeKiller
7
//
8
// 2005-07-14 : Marco Cattaneo
9
//-----------------------------------------------------------------------------
10
11
// Declaration of the Algorithm Factory
12
DECLARE_COMPONENT
(
EventNodeKiller
)
13
14
15
//=============================================================================
16
// Standard constructor, initializes variables
17
//=============================================================================
18
EventNodeKiller
::
EventNodeKiller
( const
std
::
string
& name,
19
ISvcLocator
* pSvcLocator)
20
:
GaudiAlgorithm
( name , pSvcLocator )
21
{
22
declareProperty(
"Nodes"
, m_nodes );
23
}
24
//=============================================================================
25
// Destructor
26
//=============================================================================
27
EventNodeKiller::~EventNodeKiller
() {}
28
29
//=============================================================================
30
// Main execution
31
//=============================================================================
32
StatusCode
EventNodeKiller::execute
() {
33
34
if
(
msgLevel
() <=
MSG::DEBUG
)
debug
() <<
"==> Execute"
<<
endmsg
;
35
36
std::vector<std::string>::iterator itS;
37
for
( itS=
m_nodes
.begin(); itS !=
m_nodes
.end(); itS++ ) {
38
if
(
msgLevel
() <=
MSG::DEBUG
)
debug
() <<
"Killing node "
<< *itS <<
endmsg
;
39
eventSvc
()->unlinkObject( *itS ).ignore();
40
}
41
42
return
StatusCode::SUCCESS
;
43
}
44
//=============================================================================
Generated at Mon Mar 24 2014 18:27:42 for Gaudi Framework, version v25r1 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004