11 #ifndef __Q_ROOT_FILE_WRITER_BASE_HH__
12 #define __Q_ROOT_FILE_WRITER_BASE_HH__
38 virtual void Open(
const std::string &filename,
39 const Diana::QEventInspector &evi);
46 void Dump(
const Diana::QEventInspector& evi);
77 virtual void AppendFileToFile(
const char *fromFile,
const char *toFile)
const;
Abstract class for global writers.
Base class for writers for diana and apollo root files.
virtual ~QRootFileWriterBase()
Defautl dtor (Calls Close())
QGlobalWriter * fGlobalWriter
The current global writer for the file.
void AppendToInput()
Append the output files to the input files.
std::map< std::string, std::string > fReaderWriterFiles
Map of output files and the input files they are synced to.
void Close()
Close any open files.
QTFilePointer fRootOutputAddress
Pointer to the output file.
TFile * fRootOutput
The current file being written.
QRootFileWriterBase()
Default ctor.
void Dump(const Diana::QEventInspector &evi)
Write the event to the output tree.
bool fSkipGenerated
Option to skip events that are generated by the reader.
void Done()
Done run at the end of the event loop.
virtual void Open(const std::string &filename, const Diana::QEventInspector &evi)
Open a file.
bool fAppendToInput
Flag to specify append to input.
virtual void AppendFileToFile(const char *fromFile, const char *toFile) const
Merge an individual file into another.
QTree * fTree
The current tree being written.
one-line description of your QObject