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"
22 
23 /*
24  * Gaudi namespace declaration
25  */
26 namespace Gaudi {
27 
28  // Forward declarations
29  class RootCnvSvc;
30 
39  class GAUDI_API RootEvtSelector : public extends<Service,
40  IEvtSelector> {
41 
43  StatusCode error(const std::string& msg) const;
44  public:
45 
48 
50  virtual ~RootEvtSelector() = default;
51 
53  virtual StatusCode initialize();
54 
56  virtual StatusCode finalize();
57 
59 
63  virtual StatusCode createContext(Context*& refpCtxt) const;
64 
68  virtual StatusCode last(Context& refContext) const;
69 
71 
75  virtual StatusCode next(Context& refCtxt) const;
76 
78 
82  virtual StatusCode next(Context& refCtxt,int jump) const;
83 
85 
90  virtual StatusCode previous(Context& refCtxt) const;
91 
93 
98  virtual StatusCode previous(Context& refCtxt,int jump) const;
99 
101 
105  virtual StatusCode rewind(Context& refCtxt) const;
106 
108 
112  virtual StatusCode createAddress(const Context& refCtxt, IOpaqueAddress*&) const;
113 
115 
119  virtual StatusCode releaseContext(Context*& refCtxt) const;
120 
127  virtual StatusCode resetCriteria(const std::string& cr,Context& c)const;
128  protected:
129  // Data Members
131  mutable RootCnvSvc* m_dbMgr;
144  };
145 }
146 #endif // GAUDIROOTCNV_ROOTEVTSELECTOR_H
std::string m_persName
Property; Name of the persistency service to search for conversion service.
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
tuple c
Definition: gaudirun.py:391
Description:
Definition: RootCnvSvc.h:52
std::string m_dummy
Property: dummy to fake backwards compatibility.
RootCnvSvc * m_dbMgr
Reference to the corresponding conversion service.
STL class.
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:26
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
Concrete event selector implementation to access ROOT files.
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
std::string m_criteria
Property: File criteria to define item iteration.
Opaque address interface definition.
#define GAUDI_API
Definition: Kernel.h:107
CLID m_rootCLID
Class id of root node to create opaque address.
Helper functions to set/get the application return code.
Definition: __init__.py:1
std::string m_rootName
Property: Name of the ROOT entry name.