The Gaudi Framework  v30r3 (a5ef0a68)
EventNodeKiller.cpp
Go to the documentation of this file.
1 // Include files
2 // local
3 #include "EventNodeKiller.h"
4 
5 //-----------------------------------------------------------------------------
6 // Implementation file for class : EventNodeKiller
7 //
8 // 2005-07-14 : Marco Cattaneo
9 //-----------------------------------------------------------------------------
10 
11 // Declaration of the Algorithm Factory
13 
14 //=============================================================================
15 // Main execution
16 //=============================================================================
18 {
19 
20  if ( msgLevel( MSG::DEBUG ) ) debug() << "==> Execute" << endmsg;
21 
22  for ( auto& node : m_nodes ) {
23  if ( msgLevel( MSG::DEBUG ) ) debug() << "Killing node " << node << endmsg;
24  eventSvc()->unlinkObject( node ).ignore();
25  }
26 
27  return StatusCode::SUCCESS;
28 }
29 //=============================================================================
StatusCode execute() override final
Algorithm to kill nodes in the event data store.
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
constexpr static const auto SUCCESS
Definition: StatusCode.h:87
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209