23: base_class(name, svcLoc),
45 return StatusCode::SUCCESS;
58 return StatusCode::SUCCESS;
70 const RawEvent* ptrRawEvent =
nullptr;
96 catch (
const std::exception& e) {
97 ATH_MSG_ERROR(
"Failed to get next event from the event source, std::exception caught: " << e.what());
98 return StatusCode::FAILURE;
101 ATH_MSG_ERROR(
"Failed to get next event from the event source, unknown exception caught");
102 return StatusCode::FAILURE;
106 if (ptrRawEvent ==
nullptr) {
107 ATH_MSG_ERROR(
"Failed to get next event from the event source, nullptr returned");
108 return StatusCode::FAILURE;
112 return StatusCode::SUCCESS;
121 return StatusCode::SUCCESS;
130 return StatusCode::SUCCESS;
143 const EventContext* eventContext =
nullptr;
149 addr->setEventContext(*eventContext);
152 ATH_MSG_DEBUG(
"Recorded new ByteStreamAddress for xAOD::EventInfo with event context " << *eventContext);
157 auxaddr->setEventContext(*eventContext);
159 ATH_MSG_DEBUG(
"Recorded new ByteStreamAddress for xAOD::EventAuxInfo with event context " << *eventContext);
162 return StatusCode::SUCCESS;
168#define TRIGEVENTSELECTORBYTESTREAM_UNIMPL \
169 ATH_MSG_FATAL("Misconfiguration - the method " << __FUNCTION__ << " cannot be used online"); \
170 return StatusCode::FAILURE;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
Assign a CLID to EventContext.
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
#define TRIGEVENTSELECTORBYTESTREAM_UNIMPL
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
Simple smart pointer for Gaudi-style refcounted objects.
T * get()
Get the pointer.
Event Selector context for TrigEventSelectorByteStream.
virtual ~Context()
Default destructor.
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
Thrown if the CTP ROBFragment for a new event has non-zero status word or other errors.
Thrown if event source throws an exception when new event is requested.
Thrown if the CTP ROBFragment cannot be retrieved for a new event.
Thrown if the event source cannot provide new events temporarily, e.g.
Thrown if all events are already read from the input and another one is requested.