| The Gaudi Framework v32r1 (f65d50dc)

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/IEvtSelector.h"
21 #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, IEvtSelector> {
40
42 StatusCode error( const std::string& msg ) const;
43
44 public:
46 using extends::extends;
47
49 StatusCode initialize() override;
50
52 StatusCode finalize() override;
53
55
59 StatusCode createContext( Context*& refpCtxt ) const override;
60
64 StatusCode last( Context& refContext ) const override;
65
67
71 StatusCode next( Context& refCtxt ) const override;
72
74
78 StatusCode next( Context& refCtxt, int jump ) const override;
79
81
86 StatusCode previous( Context& refCtxt ) const override;
87
89
94 StatusCode previous( Context& refCtxt, int jump ) const override;
95
97
101 StatusCode rewind( Context& refCtxt ) const override;
102
104
108 StatusCode createAddress( const Context& refCtxt, IOpaqueAddress*& ) const override;
109
111
115 StatusCode releaseContext( Context*& refCtxt ) const override;
116
123 StatusCode resetCriteria( const std::string& cr, Context& c ) const override;
124
125 protected:
126 // Data Members
128 mutable RootCnvSvc* m_dbMgr;
130 CLID m_rootCLID = CLID_NULL;
131
132 Gaudi::Property<std::string> m_persName{this, "EvtPersistencySvc", "EventPersistencySvc",
133 "Name of the persistency service to search for conversion service"};
134 Gaudi::Property<std::string> m_dummy{this, "DbType", "", "dummy property to fake backwards compatibility"};
135
137 std::string m_cnvSvcName = "Gaudi::RootCnvSvc/RootCnvSvc";
139 std::string m_rootName;
141 std::string m_criteria;
142 };
143 } // namespace Gaudi
144 #endif // GAUDIROOTCNV_ROOTEVTSELECTOR_H
gaudirun.c
c
Definition: gaudirun.py:487
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:352
Gaudi::RootCnvSvc
Description:
Definition: RootCnvSvc.h:52
Gaudi::RootEvtSelector::m_dbMgr
RootCnvSvc * m_dbMgr
Reference to the corresponding conversion service.
Definition: RootEvtSelector.h:128
std::string
STL class.
Service.h
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:8
Gaudi::RootEvtSelector
Concrete event selector implementation to access ROOT files.
Definition: RootEvtSelector.h:39
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
GaudiMP.FdsRegistry.msg
msg
Definition: FdsRegistry.py:8
Gaudi::RootEvtSelector::m_criteria
std::string m_criteria
Property: File criteria to define item iteration.
Definition: RootEvtSelector.h:141
IEvtSelector.h
IOpaqueAddress
Opaque address interface definition.
Definition: IOpaqueAddress.h:23
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71
Gaudi
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1
Gaudi::RootEvtSelector::m_rootName
std::string m_rootName
Property: Name of the ROOT entry name.
Definition: RootEvtSelector.h:139