Gaudi Framework, version v23r5
Home
Generated: Wed Nov 28 2012
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
// $Id: EventNodeKiller.cpp,v 1.4 2008-11-13 07:37:33 cattanem Exp $
2
// Include files
3
4
// from Gaudi
5
#include "
GaudiKernel/AlgFactory.h
"
6
7
// local
8
#include "
EventNodeKiller.h
"
9
10
//-----------------------------------------------------------------------------
11
// Implementation file for class : EventNodeKiller
12
//
13
// 2005-07-14 : Marco Cattaneo
14
//-----------------------------------------------------------------------------
15
16
// Declaration of the Algorithm Factory
17
DECLARE_ALGORITHM_FACTORY
(
EventNodeKiller
)
18
19
20
//=============================================================================
21
// Standard constructor, initializes variables
22
//=============================================================================
23
EventNodeKiller
::
EventNodeKiller
( const
std
::
string
& name,
24
ISvcLocator
* pSvcLocator)
25
:
GaudiAlgorithm
( name , pSvcLocator )
26
{
27
declareProperty(
"Nodes"
, m_nodes );
28
}
29
//=============================================================================
30
// Destructor
31
//=============================================================================
32
EventNodeKiller::~EventNodeKiller
() {}
33
34
//=============================================================================
35
// Main execution
36
//=============================================================================
37
StatusCode
EventNodeKiller::execute
() {
38
39
if
(
msgLevel
() <=
MSG::DEBUG
)
debug
() <<
"==> Execute"
<<
endmsg
;
40
41
std::vector<std::string>::iterator
itS;
42
for
( itS=
m_nodes
.
begin
(); itS !=
m_nodes
.
end
(); itS++ ) {
43
if
(
msgLevel
() <=
MSG::DEBUG
)
debug
() <<
"Killing node "
<< *itS <<
endmsg
;
44
eventSvc
()->unlinkObject( *itS ).ignore();
45
}
46
47
return
StatusCode::SUCCESS
;
48
}
49
//=============================================================================
Generated at Wed Nov 28 2012 12:17:10 for Gaudi Framework, version v23r5 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004