| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

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:
[legend]
Collaboration diagram for EventNodeKiller:
[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::string > | m_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

std::vector<std::string> EventNodeKiller::m_nodes`[private]`

String property "Nodes".

Definition at line 30 of file EventNodeKiller.h.

The documentation for this class was generated from the following files:

- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r2/GaudiAlg/src/components/EventNodeKiller.h
- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r2/GaudiAlg/src/components/EventNodeKiller.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines