Gaudi Framework, version v23r2

Home   Generated: Thu Jun 28 2012

EventNodeKiller.cpp

Go to the documentation of this file.
00001 // $Id: EventNodeKiller.cpp,v 1.4 2008-11-13 07:37:33 cattanem Exp $
00002 // Include files
00003 
00004 // from Gaudi
00005 #include "GaudiKernel/AlgFactory.h"
00006 
00007 // local
00008 #include "EventNodeKiller.h"
00009 
00010 //-----------------------------------------------------------------------------
00011 // Implementation file for class : EventNodeKiller
00012 //
00013 // 2005-07-14 : Marco Cattaneo
00014 //-----------------------------------------------------------------------------
00015 
00016 // Declaration of the Algorithm Factory
00017 DECLARE_ALGORITHM_FACTORY( EventNodeKiller )
00018 
00019 
00020 //=============================================================================
00021 // Standard constructor, initializes variables
00022 //=============================================================================
00023 EventNodeKiller::EventNodeKiller( const std::string& name,
00024                                   ISvcLocator* pSvcLocator)
00025   : GaudiAlgorithm ( name , pSvcLocator )
00026 {
00027   declareProperty( "Nodes", m_nodes );
00028 }
00029 //=============================================================================
00030 // Destructor
00031 //=============================================================================
00032 EventNodeKiller::~EventNodeKiller() {}
00033 
00034 //=============================================================================
00035 // Main execution
00036 //=============================================================================
00037 StatusCode EventNodeKiller::execute() {
00038 
00039   if (msgLevel() <= MSG::DEBUG) debug() << "==> Execute" << endmsg;
00040 
00041   std::vector<std::string>::iterator itS;
00042   for( itS=m_nodes.begin(); itS != m_nodes.end(); itS++ ) {
00043     if (msgLevel() <= MSG::DEBUG) debug() << "Killing node " << *itS << endmsg;
00044     eventSvc()->unlinkObject( *itS ).ignore();
00045   }
00046 
00047   return StatusCode::SUCCESS;
00048 }
00049 //=============================================================================
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Thu Jun 28 2012 23:27:15 for Gaudi Framework, version v23r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004