| # Gaudi Framework, version v23r1 |

Home |  | Generated: Wed Feb 29 2012

# RootEvtSelector.h

Go to the documentation of this file.

    00001 // $Id: RootEvtSelector.h,v 1.3 2010-08-24 23:30:32 frankb Exp $
    00002 //====================================================================
    00003 //      RootTreeEvtSelector.h
    00004 //--------------------------------------------------------------------
    00005 //
    00006 //      Package    : RootCnv
    00007 //
    00008 //  Description: The RootEvtSelector component is able
    00009 //               to produce a list of event references given a set of "selection
    00010 //               criteria".
    00011 //
    00012 //  Author     : M.Frank
    00013 //  Created    : 4/01/99
    00014 //
    00015 //====================================================================
    00016 // $Header: /afs/cern.ch/project/cvs/reps/lhcb/Online/RootCnv/src/RootEvtSelector.h,v 1.3 2010-08-24 23:30:32 frankb Exp $
    00017
    00018 #ifndef GAUDIROOTCNV_ROOTEVTSELECTOR_H
    00019 #define GAUDIROOTCNV_ROOTEVTSELECTOR_H 1
    00020
    00021 // Framework include files
    00022 #include "GaudiKernel/Service.h"
    00023 #include "GaudiKernel/IEvtSelector.h"
    00024
    00025 /*
    00026  *  Gaudi namespace declaration
    00027  */
    00028 namespace Gaudi {
    00029
    00030   // Forward declarations
    00031   class RootCnvSvc;
    00032
    00041   class GAUDI_API RootEvtSelector : public extends1<Service, IEvtSelector> {
    00042
    00044     StatusCode error(const std::string& msg)  const;
    00045   public:
    00046
    00048     RootEvtSelector(const std::string& name, ISvcLocator* svcloc);
    00049
    00051     virtual ~RootEvtSelector() {}
    00052
    00054     virtual StatusCode initialize();
    00055
    00057     virtual StatusCode finalize();
    00058
    00060
    00064     virtual StatusCode createContext(Context*& refpCtxt) const;
    00065
    00069     virtual StatusCode last(Context& refContext) const;
    00070
    00072
    00076     virtual StatusCode next(Context& refCtxt) const;
    00077
    00079
    00083     virtual StatusCode next(Context& refCtxt,int jump) const;
    00084
    00086
    00091     virtual StatusCode previous(Context& refCtxt) const;
    00092
    00094
    00099     virtual StatusCode previous(Context& refCtxt,int jump) const;
    00100
    00102
    00106     virtual StatusCode rewind(Context& refCtxt) const;
    00107
    00109
    00113     virtual StatusCode createAddress(const Context& refCtxt, IOpaqueAddress*&) const;
    00114
    00116
    00120     virtual StatusCode releaseContext(Context*& refCtxt) const;
    00121
    00128     virtual StatusCode resetCriteria(const std::string& cr,Context& c)const;
    00129   protected:
    00130     // Data Members
    00132     mutable RootCnvSvc*             m_dbMgr;
    00134     CLID                            m_rootCLID;
    00136     std::string                     m_persName;
    00138     std::string                     m_cnvSvcName;
    00140     std::string                     m_rootName;
    00142     std::string                     m_criteria;
    00144     std::string                     m_dummy;
    00145   };
    00146 }
    00147 #endif  // GAUDIROOTCNV_ROOTEVTSELECTOR_H

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