Gaudi Framework, version v23r0 |
Home | Generated: Mon Jan 30 2012 |
Algorithm to kill nodes in the event data store. More...
#include <EventNodeKiller.h>
Public Member Functions | |
EventNodeKiller (const std::string &name, ISvcLocator *pSvcLocator) | |
Standard constructor. | |
virtual | ~EventNodeKiller () |
Destructor. | |
virtual StatusCode | execute () |
Algorithm execution. | |
Private Attributes | |
std::vector< std::string > | m_nodes |
String property "Nodes". |
Algorithm to kill nodes in the event data store.
Useful if you want to make the application "forget" about the previous history of the input file
Definition at line 18 of file EventNodeKiller.h.
EventNodeKiller::EventNodeKiller | ( | const std::string & | name, |
ISvcLocator * | pSvcLocator | ||
) |
Standard constructor.
Definition at line 23 of file EventNodeKiller.cpp.
: GaudiAlgorithm ( name , pSvcLocator ) { declareProperty( "Nodes", m_nodes ); }
EventNodeKiller::~EventNodeKiller | ( | ) | [virtual] |
StatusCode EventNodeKiller::execute | ( | ) | [virtual] |
Algorithm execution.
Reimplemented from GaudiAlgorithm.
Definition at line 37 of file EventNodeKiller.cpp.
{ if (msgLevel() <= MSG::DEBUG) debug() << "==> Execute" << endmsg; std::vector<std::string>::iterator itS; for( itS=m_nodes.begin(); itS != m_nodes.end(); itS++ ) { if (msgLevel() <= MSG::DEBUG) debug() << "Killing node " << *itS << endmsg; eventSvc()->unlinkObject( *itS ).ignore(); } return StatusCode::SUCCESS; }
std::vector<std::string> EventNodeKiller::m_nodes [private] |
String property "Nodes".
Definition at line 30 of file EventNodeKiller.h.