CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
RawDataSelector.h
Go to the documentation of this file.
1//=====================================================================
2// RawDataSelector.h
3//=====================================================================
4//
5// Description: An event selector service that steps through Event
6// Filter packed raw events by use of an event source
7// object and an iterator object called RawDataIterator.
8// The type of event source is specified at run time. It
9// can be a single file, a set of files or the network.
10//
11//---------------------------------------------------------------------
12
13#ifndef RAWDATA_SELECTOR_H
14#define RAWDATA_SELECTOR_H
15
16// Include files.
17#include <string>
18#include "GaudiKernel/Service.h"
19#include "GaudiKernel/IEvtSelector.h"
20#include "GaudiKernel/IProperty.h"
21
22
23// Forward declarations.
24class IAddressCreator;
25class ISvcLocator;
26class RawDataContext;
28
29// Class RawDataSelector.
30class RawDataSelector : virtual public Service,
31 virtual public IEvtSelector,
32 virtual public IProperty
33{
34
35public:
36
37 // Standard Constructor.
38 RawDataSelector(const std::string& name, ISvcLocator* svcloc);
39
40 // Standard Destructor.
42
43 // Implementation of Service base class methods.
44 virtual StatusCode initialize();
45
46 // Implementation of the IEvtSelector interface methods.
47 virtual StatusCode createContext(Context*& it) const;
48 virtual StatusCode next(Context& it) const;
49 virtual StatusCode next(Context& it, int jump) const;
50 virtual StatusCode previous(Context& it) const;
51 virtual StatusCode previous(Context& it, int jump) const;
52
53 virtual StatusCode last(Context& it) const;
54 virtual StatusCode rewind(Context& it) const;
55
56 virtual StatusCode createAddress(const Context& it,IOpaqueAddress*& iop) const;
57 virtual StatusCode releaseContext(Context*& it) const;
58 virtual StatusCode resetCriteria(const std::string& criteria, Context& context) const;
59
60 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvInterface);
61
62private:
63
64 IRawDataInputSvc* m_eventSource;
65 RawDataContext* m_beginContext;
66 RawDataContext* m_endContext;
67 IAddressCreator* m_addressCreator;
68 std::string m_eventSourceName;
69
70
71};
72
73#endif // RAWDATA_SELECTOR_H
This class provides the Context for RawDataSelector.
virtual StatusCode previous(Context &it) const
virtual StatusCode createAddress(const Context &it, IOpaqueAddress *&iop) const
virtual StatusCode initialize()
virtual StatusCode previous(Context &it, int jump) const
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvInterface)
virtual StatusCode resetCriteria(const std::string &criteria, Context &context) const
virtual StatusCode last(Context &it) const
virtual StatusCode rewind(Context &it) const
virtual StatusCode next(Context &it, int jump) const
virtual StatusCode next(Context &it) const
virtual StatusCode createContext(Context *&it) const
virtual StatusCode releaseContext(Context *&it) const