Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
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
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 //=============================================================================
33 
34 //=============================================================================
35 // Main execution
36 //=============================================================================
38 
39  if (msgLevel() <= MSG::DEBUG) debug() << "==> Execute" << endmsg;
40 
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 Dec 4 2013 14:33:07 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004