ATLAS Offline Software
ByteStreamDataWriterV5.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef BYTESTREAMCNVSVC_BYTESTREAMDATAWRITERV5_H
6 #define BYTESTREAMCNVSVC_BYTESTREAMDATAWRITERV5_H
7 
13 #include "ByteStreamDataWriter.h"
14 
16 class DataWriter;
17 }
18 
25 public:
26 
27  ByteStreamDataWriterV5(const std::string& writingPath,
28  const std::string& fileNameCore,
29  const EventStorage::run_parameters_record& rPar,
30  const std::vector<std::string>& fmdStrings,
31  unsigned int maxFileNE,
32  unsigned int maxFileMB,
33  unsigned int startIndex,
35  unsigned int compLevel);
36 
37  ByteStreamDataWriterV5(const std::string& writingPath,
38  boost::shared_ptr<EventStorage::FileNameCallback> theFNCB,
39  const EventStorage::run_parameters_record& rPar,
40  const std::string& project,
41  const std::string& streamType,
42  const std::string& streamName,
43  const std::string& stream,
44  unsigned int lumiBlockNumber,
45  const std::string& applicationName,
46  const std::vector<std::string>& fmdStrings,
47  unsigned int maxFileNE,
48  unsigned int maxFileMB,
50  unsigned int compLevel);
51 
52  virtual ~ByteStreamDataWriterV5();
53 
54  // cannot be copied
57 
58  virtual EventStorage::DWError putData(unsigned int dataSize, const void *data) override;
59 
60  virtual bool good() const override;
61 
62 private:
63 
64  std::unique_ptr<offline_EventStorage_v5::DataWriter> m_writer;
65 };
66 
67 
68 #endif // BYTESTREAMCNVSVC_BYTESTREAMDATAWRITERV5_H
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
ByteStreamDataWriterV5::ByteStreamDataWriterV5
ByteStreamDataWriterV5(const std::string &writingPath, const std::string &fileNameCore, const EventStorage::run_parameters_record &rPar, const std::vector< std::string > &fmdStrings, unsigned int maxFileNE, unsigned int maxFileMB, unsigned int startIndex, EventStorage::CompressionType compression, unsigned int compLevel)
Definition: ByteStreamDataWriterV5.cxx:34
ByteStreamDataWriterV5::~ByteStreamDataWriterV5
virtual ~ByteStreamDataWriterV5()
Definition: ByteStreamDataWriterV5.cxx:100
offline_EventStorage_v5::DataWriter
Definition: v5_DataWriter.h:45
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
ByteStreamDataWriterV5::ByteStreamDataWriterV5
ByteStreamDataWriterV5(const ByteStreamDataWriterV5 &)=delete
ByteStreamDataWriter.h
This file contains the class definition for the ByteStreamDataWriter class.
ByteStreamDataWriterV5::operator=
ByteStreamDataWriterV5 & operator=(const ByteStreamDataWriterV5 &)=delete
ByteStreamDataWriterV5::putData
virtual EventStorage::DWError putData(unsigned int dataSize, const void *data) override
Write a single block of data.
Definition: ByteStreamDataWriterV5.cxx:105
offline_EventStorage_v5
Definition: ByteStreamDataWriterV5.h:15
ByteStreamDataWriterV5::m_writer
std::unique_ptr< offline_EventStorage_v5::DataWriter > m_writer
Definition: ByteStreamDataWriterV5.h:64
PayloadHelpers::dataSize
size_t dataSize(TDA::PayloadIterator start)
Size in bytes of the buffer that is needed to decode next fragment data content.
Definition: TriggerEDMDeserialiserAlg.cxx:188
ByteStreamDataWriterV5
Implementation of ByteStreamDataWriter for version 5 (run1) of EventStorage.
Definition: ByteStreamDataWriterV5.h:24
project
T_ResultType project(ParameterMapping::type< N > parameter_map, const T_Matrix &matrix)
Definition: MeasurementSelector.h:142
AthenaPoolExample_Copy.streamName
string streamName
Definition: AthenaPoolExample_Copy.py:39
RunTileMonitoring.streamType
streamType
Definition: RunTileMonitoring.py:158
offline_EventStorage_v5::CompressionType
CompressionType
Definition: v5_EventStorageRecords.h:41
ByteStreamDataWriterV5::good
virtual bool good() const override
Feedback to user, check if open and last write went OK.
Definition: ByteStreamDataWriterV5.cxx:111
python.BeamSpotUpdate.compression
compression
Definition: BeamSpotUpdate.py:188
ByteStreamDataWriter
This class defines abstract interface for data writing.
Definition: ByteStreamDataWriter.h:41