RootEvtSelector.h
Go to the documentation of this file.
1 //====================================================================
2 // RootTreeEvtSelector.h
3 //--------------------------------------------------------------------
4 //
5 // Package : RootCnv
6 //
7 // Description: The RootEvtSelector component is able
8 // to produce a list of event references given a set of "selection
9 // criteria".
10 //
11 // Author : M.Frank
12 // Created : 4/01/99
13 //
14 //====================================================================
15 
16 #ifndef GAUDIROOTCNV_ROOTEVTSELECTOR_H
17 #define GAUDIROOTCNV_ROOTEVTSELECTOR_H 1
18 
19 // Framework include files
20 #include "GaudiKernel/Service.h"
21 #include "GaudiKernel/IEvtSelector.h"
22 
23 /*
24  * Gaudi namespace declaration
25  */
26 namespace Gaudi {
27 
28  // Forward declarations
29  class RootCnvSvc;
30 
39  class GAUDI_API RootEvtSelector : public extends1<Service, IEvtSelector> {
40 
42  StatusCode error(const std::string& msg) const;
43  public:
44 
46  RootEvtSelector(const std::string& name, ISvcLocator* svcloc);
47 
49  virtual ~RootEvtSelector() {}
50 
52  virtual StatusCode initialize();
53 
55  virtual StatusCode finalize();
56 
58 
62  virtual StatusCode createContext(Context*& refpCtxt) const;
63 
67  virtual StatusCode last(Context& refContext) const;
68 
70 
74  virtual StatusCode next(Context& refCtxt) const;
75 
77 
81  virtual StatusCode next(Context& refCtxt,int jump) const;
82 
84 
89  virtual StatusCode previous(Context& refCtxt) const;
90 
92 
97  virtual StatusCode previous(Context& refCtxt,int jump) const;
98 
100 
104  virtual StatusCode rewind(Context& refCtxt) const;
105 
107 
111  virtual StatusCode createAddress(const Context& refCtxt, IOpaqueAddress*&) const;
112 
114 
118  virtual StatusCode releaseContext(Context*& refCtxt) const;
119 
126  virtual StatusCode resetCriteria(const std::string& cr,Context& c)const;
127  protected:
128  // Data Members
130  mutable RootCnvSvc* m_dbMgr;
132  CLID m_rootCLID;
134  std::string m_persName;
136  std::string m_cnvSvcName;
138  std::string m_rootName;
140  std::string m_criteria;
142  std::string m_dummy;
143  };
144 }
145 #endif // GAUDIROOTCNV_ROOTEVTSELECTOR_H
tuple c
Definition: gaudirun.py:392
def initialize()
Definition: AnalysisTest.py:12
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
#define GAUDI_API
Definition: Kernel.h:107
Description:
Definition: RootCnvSvc.h:52
virtual ~RootEvtSelector()
Standard destructor.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
Opaque address interface definition.
Helper functions to set/get the application return code.
Definition: __init__.py:1