2 #define MT_LCWRITER_H 1
15 #include "EVENT/LCIO.h"
25 class LCIORandomAccessMgr ;
std::shared_ptr< SIO::LCIORandomAccessMgr > _raMgr
The random access manager for event/run random access in the file.
LCWriter & operator=(const LCWriter &)=delete
no assignment operator
void close()
Closes the output file/stream.
void open(const std::string &filename)
Opens a file for writing.
void writeEvent(EVENT::LCEvent *evt)
Writes the given event to file.
std::mutex _mutex
Synchronization mutex.
~LCWriter()=default
Destructor.
std::atomic< unsigned int > _maxBufferSize
The compression level.
The main event interface.
std::atomic< int > _compressionLevel
The compression level.
void setCompressionLevel(int level)
Set the compression level - needs to be called before open() otherwise call will have no effect...
pair< int, string > level
void writeRunHeader(EVENT::LCRunHeader *hdr)
Writes the given run header to file.
std::ofstream _stream
The output file stream.
LCWriter()=default
Default constructor.
static std::string getSIOFileName(const std::string &filename)