The Gaudi Framework  v33r0 (d5ea422b)
EventNodeKiller.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 // Include files
12 // local
13 #include "EventNodeKiller.h"
14 
15 //-----------------------------------------------------------------------------
16 // Implementation file for class : EventNodeKiller
17 //
18 // 2005-07-14 : Marco Cattaneo
19 //-----------------------------------------------------------------------------
20 
21 // Declaration of the Algorithm Factory
23 
24 //=============================================================================
25 // Main execution
26 //=============================================================================
28 
29  if ( msgLevel( MSG::DEBUG ) ) debug() << "==> Execute" << endmsg;
30 
31  for ( auto& node : m_nodes ) {
32  if ( msgLevel( MSG::DEBUG ) ) debug() << "Killing node " << node << endmsg;
33  eventSvc()->unlinkObject( node ).ignore();
34  }
35 
36  return StatusCode::SUCCESS;
37 }
38 //=============================================================================
constexpr static const auto SUCCESS
Definition: StatusCode.h:96
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:61
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:202