ATLAS Offline Software
Loading...
Searching...
No Matches
AthRemoteExec::BytestreamCodec Class Referencefinal

Encode and decode RawEvent data. More...

#include <BytestreamCodec.h>

Inheritance diagram for AthRemoteExec::BytestreamCodec:
Collaboration diagram for AthRemoteExec::BytestreamCodec:

Public Member Functions

virtual const std::string & encoding () const override
virtual StatusCode initialize () override
virtual const std::string & key () const override final
virtual const std::string & schema () const override final
virtual StatusCode decode (const EventContext &ctx, const Payload &payload) const override final
virtual StatusCode encode (const EventContext &ctx, Payload &payload, const std::vector< const IPayloadCodec * > &alsoCrossing, std::vector< std::string > &dangling) const override final

Protected Member Functions

virtual StatusCode initializeBoundary () override
 Called from initialize().
virtual StatusCode doDecode (const EventContext &ctx, IProxyDict &store, const Payload &payload) const override
 Decode payload.data and record it onto a SG.
virtual StatusCode doEncode (const EventContext &ctx, IProxyDict &store, Payload &payload, const std::vector< const IPayloadCodec * > &alsoCrossing, std::vector< std::string > &dangling) const override
 Read input data (SG, RawEvent, etc.) and encode it into a payload.data.
bool writingToSG () const
 Codec direction.

Private Member Functions

IProxyDict * storeOf (const EventContext &ctx) const
 The store belonging to ctx. Errors and returns null if there is none.

Private Attributes

SG::WriteHandleKey< RawEventCache > m_decoded {this, "Decoded", "", "Key for RawEvent cache object"}
 Writing to SG only on the receiving side.
ServiceHandle< IROBDataProviderSvc > m_robsSvc {this, "ROBDataProvider", "ROBDataProviderSvc/ROBDataProviderSvc"}
 Read RawEvent directly on the sending side or set the next event on the receiving side.
Gaudi::Property< std::vector< std::string > > m_keepDetectors
 Sub-detectors whose ROBs are encoded; empty means the entire event.
std::set< eformat::SubDetectorGroup > m_keep
 The decoded KeepDetectors.
Gaudi::Property< std::string > m_key {this, "Key", "", "see BoundaryInfo::key"}
Gaudi::Property< std::string > m_schema
Gaudi::Property< std::string > m_direction
bool m_writing = false

Static Private Attributes

static const std::string s_encoding = "bytestream"

Detailed Description

Encode and decode RawEvent data.

Codec for encoding/decoding RawEvent data into/from plain bytes. It is meant to only transfer data from client (reading RAW file/bytestream) to server. On the client-side RawEvent is read directly from ROBDataProviderSvc, while on the server-side the decoded data is stored in StoreGate as RawEventCache. Server-side ROBDataProviderSvc is then notified, via setNextEvent() call, that RawEvent stored in StoreGate is the next one.

Definition at line 26 of file BytestreamCodec.h.

Member Function Documentation

◆ decode()

StatusCode AthRemoteExec::PayloadCodecBase::decode ( const EventContext & ctx,
const Payload & payload ) const
finaloverridevirtualinherited

Definition at line 47 of file PayloadCodecBase.cxx.

◆ doDecode()

StatusCode AthRemoteExec::BytestreamCodec::doDecode ( const EventContext & ctx,
IProxyDict & store,
const Payload & payload ) const
overrideprotectedvirtual

Decode payload.data and record it onto a SG.

Implements AthRemoteExec::PayloadCodecBase.

Definition at line 35 of file BytestreamCodec.cxx.

◆ doEncode()

StatusCode AthRemoteExec::BytestreamCodec::doEncode ( const EventContext & ctx,
IProxyDict & store,
Payload & payload,
const std::vector< const IPayloadCodec * > & alsoCrossing,
std::vector< std::string > & dangling ) const
overrideprotectedvirtual

Read input data (SG, RawEvent, etc.) and encode it into a payload.data.

Implements AthRemoteExec::PayloadCodecBase.

Definition at line 52 of file BytestreamCodec.cxx.

◆ encode()

StatusCode AthRemoteExec::PayloadCodecBase::encode ( const EventContext & ctx,
Payload & payload,
const std::vector< const IPayloadCodec * > & alsoCrossing,
std::vector< std::string > & dangling ) const
finaloverridevirtualinherited

Definition at line 70 of file PayloadCodecBase.cxx.

◆ encoding()

virtual const std::string & AthRemoteExec::BytestreamCodec::encoding ( ) const
inlineoverridevirtual

Definition at line 30 of file BytestreamCodec.h.

◆ initialize()

StatusCode AthRemoteExec::PayloadCodecBase::initialize ( )
overridevirtualinherited

Definition at line 19 of file PayloadCodecBase.cxx.

◆ initializeBoundary()

StatusCode AthRemoteExec::BytestreamCodec::initializeBoundary ( )
overrideprotectedvirtual

Called from initialize().

Reimplemented from AthRemoteExec::PayloadCodecBase.

Definition at line 16 of file BytestreamCodec.cxx.

◆ key()

virtual const std::string & AthRemoteExec::PayloadCodecBase::key ( ) const
inlinefinaloverridevirtualinherited

Definition at line 34 of file PayloadCodecBase.h.

◆ schema()

virtual const std::string & AthRemoteExec::PayloadCodecBase::schema ( ) const
inlinefinaloverridevirtualinherited

Definition at line 35 of file PayloadCodecBase.h.

◆ storeOf()

IProxyDict * AthRemoteExec::PayloadCodecBase::storeOf ( const EventContext & ctx) const
privateinherited

The store belonging to ctx. Errors and returns null if there is none.

Definition at line 85 of file PayloadCodecBase.cxx.

◆ writingToSG()

bool AthRemoteExec::PayloadCodecBase::writingToSG ( ) const
inlineprotectedinherited

Codec direction.

Definition at line 46 of file PayloadCodecBase.h.

Member Data Documentation

◆ m_decoded

SG::WriteHandleKey<RawEventCache> AthRemoteExec::BytestreamCodec::m_decoded {this, "Decoded", "", "Key for RawEvent cache object"}
private

Writing to SG only on the receiving side.

Definition at line 41 of file BytestreamCodec.h.

◆ m_direction

Gaudi::Property<std::string> AthRemoteExec::PayloadCodecBase::m_direction
privateinherited
Initial value:

Definition at line 65 of file PayloadCodecBase.h.

◆ m_keep

std::set<eformat::SubDetectorGroup> AthRemoteExec::BytestreamCodec::m_keep
private

The decoded KeepDetectors.

Definition at line 51 of file BytestreamCodec.h.

◆ m_keepDetectors

Gaudi::Property<std::vector<std::string> > AthRemoteExec::BytestreamCodec::m_keepDetectors
private
Initial value:

Sub-detectors whose ROBs are encoded; empty means the entire event.

Definition at line 47 of file BytestreamCodec.h.

◆ m_key

Gaudi::Property<std::string> AthRemoteExec::PayloadCodecBase::m_key {this, "Key", "", "see BoundaryInfo::key"}
privateinherited

Definition at line 62 of file PayloadCodecBase.h.

◆ m_robsSvc

ServiceHandle<IROBDataProviderSvc> AthRemoteExec::BytestreamCodec::m_robsSvc {this, "ROBDataProvider", "ROBDataProviderSvc/ROBDataProviderSvc"}
private

Read RawEvent directly on the sending side or set the next event on the receiving side.

Definition at line 44 of file BytestreamCodec.h.

◆ m_schema

Gaudi::Property<std::string> AthRemoteExec::PayloadCodecBase::m_schema
privateinherited
Initial value:

Definition at line 63 of file PayloadCodecBase.h.

◆ m_writing

bool AthRemoteExec::PayloadCodecBase::m_writing = false
privateinherited

Definition at line 73 of file PayloadCodecBase.h.

◆ s_encoding

const std::string AthRemoteExec::BytestreamCodec::s_encoding = "bytestream"
staticprivate

Definition at line 53 of file BytestreamCodec.h.


The documentation for this class was generated from the following files: