18#include <hipo4/writer.h>
19#include <hipo4/bank.h>
20#include <hipo4/event.h>
21#include <hipo4/utils.h>
22#include <hipo4/dictionary.h>
53 void addSchema(std::string schemaName, hipo::dictionary& factory);
56 void setFile(
const std::string& file){_filename=file;}
61 _bankNamesToSkip.push_back(bankName);
69 hipo::event _outEvent;
70 hipo::dictionary _readerDict;
71 std::vector<std::string> _bankNamesToSkip;
72 std::string _filename;
73 std::vector<hipo::bank* > _banks;
75 long _nSpecialEvents = 0;
76 bool _specialBanksBool =
true;
Clas12root HIPO file reader.
Definition clas12reader.h:74
void addSchema(std::string schemaName, hipo::dictionary &factory)
Definition clas12writer.cpp:132
bool savedBankName(std::string name)
checks if the name of a bank is kept in memory to be skipped
Definition clas12writer.cpp:147
void setFile(const std::string &file)
Definition clas12writer.h:56
void setTag(long tag)
Definition clas12writer.cpp:154
void assignReader(clas12reader &c12reader)
Definition clas12writer.cpp:20
void writeSpecialBanks(bool specialBanksBool)
Definition clas12writer.h:51
void writeEvent()
pass bank information to hipo::writer to write out events
Definition clas12writer.cpp:105
void skipBank(std::string bankName)
adds a bank name to the list of banks to skip
Definition clas12writer.h:59
bool isOpen() const
Definition clas12writer.h:64
virtual ~clas12writer()=default
void openFile()
opens file in hipo::writer, only open it once.
Definition clas12writer.cpp:138
void closeWriter()
closes hipo::writer, writes out events still on buffer
Definition clas12writer.cpp:118
void addSchemas(hipo::dictionary &factory)
add schemas to writer
Definition clas12writer.cpp:126
void processSpecialBanks(std::string inputFilename)
Write the special banks (tag 1) to the output hipo file.
Definition clas12writer.cpp:47
hipo::writer & getWriter()
Definition clas12writer.h:42
bool hasSchema(std::string schemaName)
check if the writer contains a given schema
Definition clas12writer.cpp:96
Definition calextras.cpp:10