ATLAS Offline Software
ByteStreamMergeOutputSvc.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 BYTESTREAMMERGEOUTPUTSVC_H
6 #define BYTESTREAMMERGEOUTPUTSVC_H
7 
16 #include "GaudiKernel/ServiceHandle.h"
17 
22 class ByteStreamMergeOutputSvc : public extends<AthService, IByteStreamOutputSvc> {
23 public:
25  ByteStreamMergeOutputSvc(const std::string& name, ISvcLocator* svcloc);
26 
28  virtual ~ByteStreamMergeOutputSvc();
29 
30  virtual StatusCode initialize() override;
32  virtual bool putEvent(const RawEvent* re) override;
33  virtual bool putEvent(const RawEvent* re, const EventContext& ctx) override;
34 
35 private:
37 
38  ServiceHandle<IByteStreamInputSvc> m_inSvc{this, "ByteStreamInputSvc", {}};
39  ServiceHandle<IByteStreamOutputSvc> m_outSvc{this, "ByteStreamOutputSvc", {}};
40 
41  Gaudi::Property<std::string> m_bsOutputStreamName{this, "BSOutputStreamName", {}, "stream name for multiple output"};
42  Gaudi::Property<bool> m_overwriteHeader{this, "overWriteHeader", false};
43 };
44 
45 #endif
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ByteStreamMergeOutputSvc::m_outSvc
ServiceHandle< IByteStreamOutputSvc > m_outSvc
Definition: ByteStreamMergeOutputSvc.h:39
RawEvent
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
Definition: RawEvent.h:37
ByteStreamMergeOutputSvc::putEvent
virtual bool putEvent(const RawEvent *re) override
Implementation of the IByteStreamOutputSvc interface methods.
Definition: ByteStreamMergeOutputSvc.cxx:51
ByteStreamMergeOutputSvc::ByteStreamMergeOutputSvc
ByteStreamMergeOutputSvc(const std::string &name, ISvcLocator *svcloc)
Constructors:
Definition: ByteStreamMergeOutputSvc.cxx:20
ByteStreamMergeOutputSvc::m_inSvc
ServiceHandle< IByteStreamInputSvc > m_inSvc
Definition: ByteStreamMergeOutputSvc.h:38
IByteStreamOutputSvc.h
This file contains the interface for the ByteStreamOutputSvc classes.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ByteStreamMergeOutputSvc::initialize
virtual StatusCode initialize() override
Definition: ByteStreamMergeOutputSvc.cxx:31
ByteStreamMergeOutputSvc::~ByteStreamMergeOutputSvc
virtual ~ByteStreamMergeOutputSvc()
Destructor.
Definition: ByteStreamMergeOutputSvc.cxx:27
ByteStreamMergeOutputSvc::reducedROBid
uint32_t reducedROBid(uint32_t)
Definition: ByteStreamMergeOutputSvc.cxx:41
ByteStreamMergeOutputSvc::m_bsOutputStreamName
Gaudi::Property< std::string > m_bsOutputStreamName
Definition: ByteStreamMergeOutputSvc.h:41
ByteStreamMergeOutputSvc::m_overwriteHeader
Gaudi::Property< bool > m_overwriteHeader
Definition: ByteStreamMergeOutputSvc.h:42
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
IByteStreamInputSvc.h
This file contains the interface for the ByteStreamInputSvc classes.
ByteStreamMergeOutputSvc
This class provides the services for merging FullEventFragment with existing bytestream input....
Definition: ByteStreamMergeOutputSvc.h:22
re
const boost::regex re(r_e)
AthService.h
ServiceHandle< IByteStreamInputSvc >