TTree Writer
This MR includes the changes from the NTupleWriter branch !31 (closed)
Context
Store the data from analysis in a TTree structure. Each Channel should be its own branch containing all Pulses for that channel as well as other important information.
Summary
Each branch is represented by a TTreeBranch
, which contains eventId, npulse, triggerTime and a vector of Pulses.
TTreeWriter
creates the file, tree and branches and calls updateBranch()
from TTreeBranch
to update the branches on each iteration. After all iterations are complete, the TTree is written to file.
A separate dictionary is generated in bin
for vanwftk
.
How was this tested?
I tested it with 2 channels by just looping over the same channel twice and it created 2 branches.
Edited by Jolie Roiseux