All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RootEvtSelector.h
Go to the documentation of this file.
1 // $Id: RootEvtSelector.h,v 1.3 2010-08-24 23:30:32 frankb Exp $
2 //====================================================================
3 // RootTreeEvtSelector.h
4 //--------------------------------------------------------------------
5 //
6 // Package : RootCnv
7 //
8 // Description: The RootEvtSelector component is able
9 // to produce a list of event references given a set of "selection
10 // criteria".
11 //
12 // Author : M.Frank
13 // Created : 4/01/99
14 //
15 //====================================================================
16 // $Header: /afs/cern.ch/project/cvs/reps/lhcb/Online/RootCnv/src/RootEvtSelector.h,v 1.3 2010-08-24 23:30:32 frankb Exp $
17 
18 #ifndef GAUDIROOTCNV_ROOTEVTSELECTOR_H
19 #define GAUDIROOTCNV_ROOTEVTSELECTOR_H 1
20 
21 // Framework include files
22 #include "GaudiKernel/Service.h"
24 
25 /*
26  * Gaudi namespace declaration
27  */
28 namespace Gaudi {
29 
30  // Forward declarations
31  class RootCnvSvc;
32 
41  class GAUDI_API RootEvtSelector : public extends1<Service, IEvtSelector> {
42 
44  StatusCode error(const std::string& msg) const;
45  public:
46 
48  RootEvtSelector(const std::string& name, ISvcLocator* svcloc);
49 
51  virtual ~RootEvtSelector() {}
52 
54  virtual StatusCode initialize();
55 
57  virtual StatusCode finalize();
58 
60 
64  virtual StatusCode createContext(Context*& refpCtxt) const;
65 
69  virtual StatusCode last(Context& refContext) const;
70 
72 
76  virtual StatusCode next(Context& refCtxt) const;
77 
79 
83  virtual StatusCode next(Context& refCtxt,int jump) const;
84 
86 
91  virtual StatusCode previous(Context& refCtxt) const;
92 
94 
99  virtual StatusCode previous(Context& refCtxt,int jump) const;
100 
102 
106  virtual StatusCode rewind(Context& refCtxt) const;
107 
109 
113  virtual StatusCode createAddress(const Context& refCtxt, IOpaqueAddress*&) const;
114 
116 
120  virtual StatusCode releaseContext(Context*& refCtxt) const;
121 
128  virtual StatusCode resetCriteria(const std::string& cr,Context& c)const;
129  protected:
130  // Data Members
132  mutable RootCnvSvc* m_dbMgr;
136  std::string m_persName;
138  std::string m_cnvSvcName;
140  std::string m_rootName;
142  std::string m_criteria;
144  std::string m_dummy;
145  };
146 }
147 #endif // GAUDIROOTCNV_ROOTEVTSELECTOR_H
std::string m_persName
Property; Name of the persistency service to search for conversion service.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
tuple c
Definition: gaudirun.py:341
Description:
Definition: RootCnvSvc.h:54
virtual ~RootEvtSelector()
Standard destructor.
std::string m_dummy
Property: dummy to fake backwards compatibility.
RootCnvSvc * m_dbMgr
Reference to the corresponding conversion service.
std::string m_cnvSvcName
Property; Name of the concversion service used to create opaque addresses.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
unsigned int CLID
Class ID definition.
Definition: ClassID.h:9
Concrete event selector implementation to access ROOT files.
std::string m_criteria
Property: File criteria to define item iteration.
Opaque address interface definition.
This is a number of static methods for bootstrapping the Gaudi framework.
Definition: Bootstrap.h:14
#define GAUDI_API
Definition: Kernel.h:108
CLID m_rootCLID
Class id of root node to create opaque address.
std::string m_rootName
Property: Name of the ROOT entry name.