Skip to content

TTree Writer

Jolie Roiseux requested to merge feature/ttree-protoype into develop

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.

DataOutTree->Show(0) produces the following output: Screen_Shot_2021-03-01_at_2.07.29_PM

DataOutTree->Draw("ch0.npulse") produces the following: Screen_Shot_2021-03-01_at_2.08.03_PM

Edited by Jolie Roiseux

Merge request reports