5#ifndef BYTESTREAMCNVSVC_BYTESTREAMEVENTSTORAGEINPUTSVC_H
6#define BYTESTREAMCNVSVC_BYTESTREAMEVENTSTORAGEINPUTSVC_H
22#include "GaudiKernel/ServiceHandle.h"
36 :
public extends<AthService, IByteStreamInputSvc>
41 ISvcLocator* pSvcLocator);
48 virtual StatusCode
stop ()
override;
49 virtual StatusCode
finalize ()
override;
55 virtual void setEvent (
void*
data,
unsigned int eventStatus)
override;
62 virtual std::pair<long,std::string>
getBlockIterator(
const std::string& fileName)
override;
65 virtual bool ready ()
override;
83 std::unique_ptr<EventStorage::DataReader>
m_reader;
98 Gaudi::Property<bool>
m_sequential{
this,
"EnableSequential",
false,
"enable sequential reading"};
99 Gaudi::Property<bool>
m_dump{
this,
"DumpFlag",
false,
"Dump fragments"};
100 Gaudi::Property<float>
m_wait{
this,
"WaitSecs", 0.0f,
"Seconds to wait if input is in wait state"};
101 Gaudi::Property<bool>
m_valEvent{
this,
"ValidateEvent",
false,
"switch on check_tree when reading events"};
102 Gaudi::Property<std::string>
m_eventInfoKey{
this,
"EventInfoKey",
"EventInfo",
"Key of EventInfo in metadata store"};
107 void buildFragment (EventCache* cache, uint32_t eventSize,
bool validate)
const;
111 void setEvent (
const EventContext& context,
void*
data,
unsigned int eventStatus);
121 const T* tmp =
m_storeGate->tryConstRetrieve<T>(key);
124 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Maintain a set of objects, one per slot.
char data[hepevt_bytes_allocation_ATLAS]
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
Maintain a set of objects, one per slot.
The Athena Transient Store API.