Gaudi Framework, version v22r0

Home   Generated: 9 Feb 2011

Selector.cpp

Go to the documentation of this file.
00001 // $Header: /tmp/svngaudi/tmp.jEpFh25751/Gaudi/GaudiKernel/src/Lib/Selector.cpp,v 1.2 2000/12/13 12:57:23 mato Exp $
00002 //====================================================================
00003 //  NTuple name space: Selector class implementation
00004 //--------------------------------------------------------------------
00005 //
00006 //  Package    : Gaudi/NTupleSvc ( The LHCb Offline System)
00007 //  Author     : M.Frank
00008 //
00009 //  +---------+----------------------------------------------+--------+
00010 //  |    Date |                 Comment                      | Who    |
00011 //  +---------+----------------------------------------------+--------+
00012 //  | 10/10/00| Initial version.                             | MF     |
00013 //  +---------+----------------------------------------------+--------+
00014 //====================================================================
00015 #define GAUDI_NTUPLEITEMS_CPP 1
00016 
00017 #include "GaudiKernel/NTuple.h"
00018 #include "GaudiKernel/Selector.h"
00019 
00021 StatusCode NTuple::Selector::initialize(NTuple::Tuple* /* nt */ )    {
00022   return StatusCode::SUCCESS;
00023 }
00024 
00026 bool NTuple::Selector::operator()(void* nt)   {
00027   DataObject* p = (DataObject*)nt;
00028   bool result = false;
00029   try   {
00030     NTuple::Tuple* tuple = dynamic_cast<NTuple::Tuple*>(p);
00031     if ( 0 != tuple )   {
00032       if ( m_firstCall )    {
00033         m_status = initialize(tuple);
00034         m_firstCall = false;
00035       }
00036       if ( m_status.isSuccess() )  {
00037         result = this->operator()(tuple);
00038       }
00039     }
00040   }
00041   catch(...)    {
00042   }
00043   return result;
00044 }
00045 
00047 bool NTuple::Selector::operator()(NTuple::Tuple* /* nt */ )  {
00048   return true;
00049 }
00050 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Wed Feb 9 16:24:57 2011 for Gaudi Framework, version v22r0 by Doxygen version 1.6.2 written by Dimitri van Heesch, © 1997-2004