54 for(
auto& branch : branches) {
55 if(branch)
delete branch;
61 for(
int i = 0; i < size; i++) branches.push_back(
new hipo::structure());
62 for(
int i = 0; i < branches.size(); i++) branches[i]->initStructureBySize(120,1,4,800);
67 for(
int i = 0; i < branches.size(); i++) branches[i]->putFloatAt(currentPosition*4,array[i]);
69 if(currentPosition>=200){
83 for(
int i = 0; i < branches.size(); i++){
86 event.addStructure(*branches[i]);
Represents a HIPO event, a container for multiple structures/banks.
Low-level data structure representing a HIPO structure.
void fill(const float *array)
Fill a row of values into the tuple.
void close()
Close the output file.
void open(const char *file)
Open an output HIPO file.
void initBranches(int size)
Initialize internal branch structures.
tuple()
Default constructor.
void writeAndUpdate()
Write the current event and prepare for the next one.
Writer for creating HIPO files.
void open(const char *filename)
Open a file for writing.
void addEvent(hipo::event &hevent)
Add an event to the current record buffer.
void close()
Close the file, flushing remaining events and writing the trailer.
N-tuple writer for columnar float data serialization to HIPO files.