|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef BYTESTREAMCNVSVC_BYTESTREAMDATAWRITER_H
6 #define BYTESTREAMCNVSVC_BYTESTREAMDATAWRITER_H
18 #include "EventStorage/DWError.h"
19 #include "EventStorage/ESCompression.h"
20 #include "EventStorage/EventStorageRecords.h"
21 #include "EventStorage/FileNameCallback.h"
22 #include "boost/shared_ptr.hpp"
63 static std::unique_ptr<ByteStreamDataWriter>
65 const std::string& writingPath,
66 const std::string& fileNameCore,
67 const EventStorage::run_parameters_record& rPar,
68 const std::vector<std::string>& fmdStrings,
69 unsigned int maxFileNE = 0,
70 unsigned int maxFileMB = 0,
71 unsigned int startIndex = 1,
73 unsigned int compLevel = 1);
94 static std::unique_ptr<ByteStreamDataWriter>
96 const std::string& writingPath,
97 boost::shared_ptr<EventStorage::FileNameCallback> theFNCB,
98 const EventStorage::run_parameters_record& rPar,
102 const std::string&
stream,
103 unsigned int lumiBlockNumber,
104 const std::string& applicationName,
105 const std::vector<std::string>& fmdStrings,
106 unsigned int maxFileNE = 0,
107 unsigned int maxFileMB = 0,
109 unsigned int compLevel = 1);
119 static std::unique_ptr<ByteStreamDataWriter>
168 EventStorage::run_parameters_record
rPar{
169 0, 0, 0, 0, 0, 0, 0xFFFFFFFFFFFFFFFFULL, 0xFFFFFFFFFFFFFFFFULL, 0, 0 };
190 boost::shared_ptr<EventStorage::FileNameCallback>
theFNCB;
211 #endif // BYTESTREAMCNVSVC_BYTESTREAMDATAWRITER_H
char data[hepevt_bytes_allocation_ATLAS]
std::string streamName
stream name for use with simple file name
std::string stream
not sure for use with simple file name
unsigned int maxFileMB
Max size of a file in MB. The file is closed before this limit is overrun.
std::string streamType
stream type for use with simple file name
int version
Writer version to instantiate, 0 for most current version.
virtual bool good() const =0
Feedback to user, check if open and last write went OK.
std::string project
project name for use with simple file name
virtual ~ByteStreamDataWriter()
unsigned int maxFileNE
Max size of a file in number of data blocks (or events)
std::string applicationName
application name for use with simple file name
std::string writingPath
Directory where to write data.
std::string fileNameCore
File name not including the ending "._NNNN.data".
unsigned int lumiBlockNumber
luminosity block number for use with simple file name
virtual EventStorage::DWError putData(unsigned int dataSize, const void *data)=0
Write a single block of data.
Class containing parameters needed to initiate DataWriter.
boost::shared_ptr< EventStorage::FileNameCallback > theFNCB
callback method for generating file names
size_t dataSize(TDA::PayloadIterator start)
Size in bytes of the buffer that is needed to decode next fragment data content.
static std::unique_ptr< ByteStreamDataWriter > makeWriter(int version, const std::string &writingPath, const std::string &fileNameCore, const EventStorage::run_parameters_record &rPar, const std::vector< std::string > &fmdStrings, unsigned int maxFileNE=0, unsigned int maxFileMB=0, unsigned int startIndex=1, EventStorage::CompressionType compression=EventStorage::NONE, unsigned int compLevel=1)
Factory method returning data writer instance for specified version.
unsigned int startIndex
Initial file sequence index.
T_ResultType project(ParameterMapping::type< N > parameter_map, const T_Matrix &matrix)
unsigned int compLevel
Compression level.
ByteStreamDataWriter & operator=(const ByteStreamDataWriter &)=delete
EventStorage::CompressionType compression
Compression type.
std::vector< std::string > fmdStrings
Optional vector of strings containing metadata.
ByteStreamDataWriter(const ByteStreamDataWriter &)=delete
This class defines abstract interface for data writing.
EventStorage::run_parameters_record rPar
Other parameters from IS including the run number.