ATLAS Offline Software
Loading...
Searching...
No Matches
TrigEventSelectorByteStream.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGEVENTSELECTORBYTESTREAM_H
6#define TRIGEVENTSELECTORBYTESTREAM_H
7
8#include "GaudiKernel/IEvtSelector.h"
10
11// Forward declarations
13class StoreGateSvc;
14
19
20class TrigEventSelectorByteStream : public extends<AthService, IEvtSelector> {
21public:
26 class Context : public IEvtSelector::Context {
27 public:
29 Context(const IEvtSelector* selector);
33 virtual ~Context();
35 virtual void* identifier() const override;
36 private:
38 const IEvtSelector* m_evtSelector;
39 };
40
42 TrigEventSelectorByteStream(const std::string& name, ISvcLocator* svcLoc);
45
46 // ------------------------- Service methods --------------------------------
47 virtual StatusCode initialize() override;
48 virtual StatusCode finalize() override;
49
50 // ------------------------- IEvtSelector methods ---------------------------
51 virtual StatusCode createContext(IEvtSelector::Context*& c) const override;
52 virtual StatusCode next(IEvtSelector::Context& c) const override;
53 virtual StatusCode next(IEvtSelector::Context& c, int jump) const override;
54 virtual StatusCode previous(IEvtSelector::Context& c) const override;
55 virtual StatusCode previous(IEvtSelector::Context& c, int jump) const override;
56 virtual StatusCode last(IEvtSelector::Context& refContext) const override;
57 virtual StatusCode rewind(IEvtSelector::Context& c) const override;
58 virtual StatusCode createAddress(const IEvtSelector::Context& c, IOpaqueAddress*& iop) const override;
59 virtual StatusCode releaseContext(IEvtSelector::Context*& c) const override;
60 virtual StatusCode resetCriteria(const std::string& cr, IEvtSelector::Context& c) const override;
61
62private:
63 // @property Reference to the event source (ByteStreamInputSvc)
65 // Reference to the StoreGateScv
67};
68
69#endif // TRIGEVENTSELECTORBYTESTREAM_H
This class provides the interface to services to read bytestream data.
The Athena Transient Store API.
Event Selector context for TrigEventSelectorByteStream.
const IEvtSelector * m_evtSelector
pointer to the event selector
virtual void * identifier() const override
Implementation of IEvtSelector::Context::identifier.
Context(const IEvtSelector *selector)
Constructor from a selector.
virtual ~TrigEventSelectorByteStream()
Standard destructor.
virtual StatusCode createAddress(const IEvtSelector::Context &c, IOpaqueAddress *&iop) const override
virtual StatusCode rewind(IEvtSelector::Context &c) const override
virtual StatusCode previous(IEvtSelector::Context &c) const override
virtual StatusCode resetCriteria(const std::string &cr, IEvtSelector::Context &c) const override
virtual StatusCode createContext(IEvtSelector::Context *&c) const override
virtual StatusCode releaseContext(IEvtSelector::Context *&c) const override
ServiceHandle< IByteStreamInputSvc > m_eventSource
TrigEventSelectorByteStream(const std::string &name, ISvcLocator *svcLoc)
Standard constructor.
virtual StatusCode finalize() override
ServiceHandle< StoreGateSvc > m_evtStore
virtual StatusCode next(IEvtSelector::Context &c) const override
virtual StatusCode last(IEvtSelector::Context &refContext) const override
virtual StatusCode initialize() override