|
ATLAS Offline Software
|
Go to the documentation of this file.
23 : base_class(
name, svcLoc),
24 m_eventSource(
"ByteStreamInputSvc",
name),
25 m_evtStore(
"StoreGateSvc",
name) {
45 return StatusCode::SUCCESS;
58 return StatusCode::SUCCESS;
70 const RawEvent* ptrRawEvent =
nullptr;
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 iop =
static_cast<IOpaqueAddress*
>(addr);
151 ATH_MSG_DEBUG(
"Recorded new ByteStreamAddress for xAOD::EventInfo with event context " << *eventContext);
156 ATH_CHECK(
m_evtStore->recordAddress(
"EventInfoAux.",
static_cast<IOpaqueAddress*
>(auxaddr)));
157 ATH_MSG_DEBUG(
"Recorded new ByteStreamAddress for xAOD::EventAuxInfo with event context " << *eventContext);
160 return StatusCode::SUCCESS;
166 #define TRIGEVENTSELECTORBYTESTREAM_UNIMPL \
167 ATH_MSG_FATAL("Misconfiguration - the method " << __FUNCTION__ << " cannot be used online"); \
168 return StatusCode::FAILURE;
207 : m_evtSelector(
other.m_evtSelector) {}
Thrown if the CTP ROBFragment cannot be retrieved for a new event.
Thrown if event source throws an exception when new event is requested.
ServiceHandle< IByteStreamInputSvc > m_eventSource
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
virtual StatusCode rewind(IEvtSelector::Context &c) const override
#define ATH_MSG_VERBOSE(x)
Assign a CLID to EventContext.
virtual StatusCode last(IEvtSelector::Context &refContext) const override
Thrown if the CTP ROBFragment for a new event has non-zero status word or other errors.
virtual StatusCode releaseContext(IEvtSelector::Context *&c) const override
Context(const IEvtSelector *selector)
Constructor from a selector.
::StatusCode StatusCode
StatusCode definition for legacy code.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
Default, invalid implementation of ClassID_traits.
virtual StatusCode createContext(IEvtSelector::Context *&c) const override
ServiceHandle< StoreGateSvc > m_evtStore
Thrown if the event source cannot provide new events temporarily, e.g. when trigger is on hold.
TrigEventSelectorByteStream(const std::string &name, ISvcLocator *svcLoc)
Standard constructor.
virtual ~TrigEventSelectorByteStream()
Standard destructor.
virtual StatusCode next(IEvtSelector::Context &c) const override
void setEventContext(const EventContext &eid)
virtual ~Context()
Default destructor.
virtual StatusCode initialize() override
virtual void * identifier() const override
Implementation of IEvtSelector::Context::identifier.
virtual StatusCode resetCriteria(const std::string &cr, IEvtSelector::Context &c) const override
#define ATH_MSG_WARNING(x)
Event Selector context for TrigEventSelectorByteStream.
virtual StatusCode previous(IEvtSelector::Context &c) const override
#define ATLAS_THREAD_SAFE
virtual StatusCode finalize() override
Define macros for attributes used to control the static checker.
virtual StatusCode createAddress(const IEvtSelector::Context &c, IOpaqueAddress *&iop) const override
Thrown if all events are already read from the input and another one is requested.
#define TRIGEVENTSELECTORBYTESTREAM_UNIMPL