MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
Loading...
Searching...
No Matches
EventsSummary Class Reference

Calibrated summary plots and sample traces, built from events files. More...

#include <EventsSummary.hpp>

Static Public Member Functions

static TGraph * BuildTraceFromTotals (const Double_t *total)
 Build a trace graph from one event's per-strip totals.
static void SaveSampleTraces (const std::vector< TGraph * > &traces, const TString &save_name, const TString &subdir, Double_t y_min, Double_t y_max, const char *y_title)
 Draw a set of traces overlaid on one frame and save it.
static void BuildNormedSummaryHistograms (const TString &input_filename, const TString &file_label)
 Build the calibrated summary histograms for one events file.

Detailed Description

Calibrated summary plots and sample traces, built from events files.

Runs after the pipeline, over its output, using EnergyView to decode raw ADC into calibrated units.

Definition at line 104 of file EventsSummary.hpp.

Member Function Documentation

◆ BuildNormedSummaryHistograms()

void EventsSummary::BuildNormedSummaryHistograms ( const TString & input_filename,
const TString & file_label )
static

Build the calibrated summary histograms for one events file.

Parameters
input_filenameEvents ROOT file to read.
file_labelLabel from FileSet::FileLabel(), used in plot names.

Definition at line 237 of file EventsSummary.cpp.

Referenced by RunFusedPipelineForFile().

◆ BuildTraceFromTotals()

TGraph * EventsSummary::BuildTraceFromTotals ( const Double_t * total)
static

Build a trace graph from one event's per-strip totals.

Parameters
total18 per-strip energies, as from EnergyView::total or a cached event.
Returns
A newly allocated graph of energy against strip index. The caller owns it.

Definition at line 363 of file EventsSummary.cpp.

Referenced by BuildNormedSummaryHistograms(), and FinalizeEvent().

◆ SaveSampleTraces()

void EventsSummary::SaveSampleTraces ( const std::vector< TGraph * > & traces,
const TString & save_name,
const TString & subdir,
Double_t y_min,
Double_t y_max,
const char * y_title )
static

Draw a set of traces overlaid on one frame and save it.

All traces are drawn in a single colour on a TH2F frame. The canvas is saved to the plots directory when SAVE_PLOTS is set.

Parameters
tracesTraces to overlay. Not deleted — the caller keeps ownership.
save_nameOutput basename, without extension.
subdirPlot subdirectory under the plots base.
y_minLower bound of the energy axis.
y_maxUpper bound of the energy axis.
y_titleEnergy axis title, carrying the unit.

Definition at line 208 of file EventsSummary.cpp.

Referenced by EventBuilder::BuildEventsFromSortedHits(), and BuildNormedSummaryHistograms().


The documentation for this class was generated from the following files: