Gaudi Framework, version v23r0

Home   Generated: Mon Jan 30 2012
Public Member Functions | Private Attributes

EventNodeKiller Class Reference

Algorithm to kill nodes in the event data store. More...

#include <EventNodeKiller.h>

Inheritance diagram for EventNodeKiller:
Inheritance graph
[legend]
Collaboration diagram for EventNodeKiller:
Collaboration graph
[legend]

List of all members.

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::stringm_nodes
 String property "Nodes".

Detailed Description

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

Author:
Marco Cattaneo
Date:
2005-07-14

Definition at line 18 of file EventNodeKiller.h.


Constructor & Destructor Documentation

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]

Destructor.

Definition at line 32 of file EventNodeKiller.cpp.

{}

Member Function Documentation

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;
}

Member Data Documentation

String property "Nodes".

Definition at line 30 of file EventNodeKiller.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Mon Jan 30 2012 13:53:12 for Gaudi Framework, version v23r0 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004