Skip to content
benkrikler edited this page Jun 9, 2014 · 3 revisions

Pulse Viewer

There are a number of pulses viewers. Currently Damien, John, and Andy all have their own (and who knows how many countless other) that histogram the trees from alcapana's output.

We should converge on one.

John's

$ cd AlcapDAQ/analyzer/scripts
$ root -l
[0].x load_pulse_viewer.c
[1]view_pulses("tree_file.root")

After compiling a list of detectors (there's room for improvement here), you can choose which detector to examine and then move forward and backward through the pulses. You can't edit the canvas. You can save all the pulses you want to a file name "pulses.root".

Rootana pulse viewer

Andy and Ben implemented a rootana module called ExportPulses. The idea is that as you're processing pulses and find one that's interesting (e.g. a poor chi^2 fit) then you can ask the ExportPulses module to histogram that TPI and save it to your output file.

There is also a PulseViewer module which will plot all pulses meeting a certain criteria, specified through your rootana Modules file.