MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
Loading...
Searching...
No Matches
PulseHistory::Result Struct Reference

Everything one subfile's pulse-history pass produced. More...

#include <PulseHistory.hpp>

Collaboration diagram for PulseHistory::Result:

Public Member Functions

 Result ()
 Construct with zeroed counters and null diagnostics.
 ~Result ()
 Frees any diagnostic histograms still held.

Public Attributes

Kernel kernel [kNGroups]
 One kernel per Group.
Long64_t n_hits = 0
 Hits examined.
Long64_t n_seeds = 0
 Hits usable as a previous pulse.
Long64_t n_beam_events = 0
 Beam-like events the fit drew on.
Long64_t n_corrected = 0
 Hits that received a correction.
Long64_t n_clamped = 0
 Corrections clamped rather than applied in full.
Long64_t n_clamped_group [kNGroups]
 Clamps per group.
Double_t mean_shift [kNGroups]
 Mean subtracted term per group, ADC.
Bool_t sorted_input = kTRUE
 Whether the input arrived time-ordered.
std::vector< Double_t > mode
 Beam peak per (board, channel) index, in ADC.
Diagnostics

Filled when SAVE_PLOTS is on, drawn and freed by SavePlots().

Null otherwise.

TH2D * dev_vs_pred [kNGroups]
 Channel deviation against predicted shift.
TH1D * dev_before [kNGroups]
 Deviation distribution before correction.
TH1D * dev_after [kNGroups]
 And after.
TH1D * shift [kNGroups]
 Shift applied per hit.
TProfile * dtprev_before [kNGroups]
 Deviation against time to previous pulse.
TProfile * dtprev_after [kNGroups]
 And after.

Detailed Description

Everything one subfile's pulse-history pass produced.

Note
Owns the diagnostic histograms. SavePlots() draws and frees them; the destructor frees any that survive.

Definition at line 95 of file PulseHistory.hpp.

Constructor & Destructor Documentation

◆ Result()

PulseHistory::Result::Result ( )

Construct with zeroed counters and null diagnostics.

Definition at line 83 of file PulseHistory.cpp.

◆ ~Result()

PulseHistory::Result::~Result ( )

Frees any diagnostic histograms still held.

Definition at line 93 of file PulseHistory.cpp.

Member Data Documentation

◆ dev_after

TH1D* PulseHistory::Result::dev_after[kNGroups]

And after.

Definition at line 114 of file PulseHistory.hpp.

Referenced by PulseHistory::Measure(), Result(), PulseHistory::SavePlots(), and ~Result().

◆ dev_before

TH1D* PulseHistory::Result::dev_before[kNGroups]

Deviation distribution before correction.

Definition at line 113 of file PulseHistory.hpp.

Referenced by PulseHistory::Measure(), Result(), PulseHistory::SavePlots(), and ~Result().

◆ dev_vs_pred

TH2D* PulseHistory::Result::dev_vs_pred[kNGroups]

Channel deviation against predicted shift.

Definition at line 112 of file PulseHistory.hpp.

Referenced by PulseHistory::Measure(), Result(), PulseHistory::SavePlots(), and ~Result().

◆ dtprev_after

TProfile* PulseHistory::Result::dtprev_after[kNGroups]

And after.

Definition at line 118 of file PulseHistory.hpp.

Referenced by PulseHistory::Measure(), Result(), PulseHistory::SavePlots(), and ~Result().

◆ dtprev_before

TProfile* PulseHistory::Result::dtprev_before[kNGroups]

Deviation against time to previous pulse.

Definition at line 117 of file PulseHistory.hpp.

Referenced by PulseHistory::Measure(), Result(), PulseHistory::SavePlots(), and ~Result().

◆ kernel

Kernel PulseHistory::Result::kernel[kNGroups]

◆ mean_shift

Double_t PulseHistory::Result::mean_shift[kNGroups]

Mean subtracted term per group, ADC.

Definition at line 103 of file PulseHistory.hpp.

Referenced by PulseHistory::Apply(), PulseHistory::Report(), Result(), and PulseHistory::WriteToEventsFile().

◆ mode

std::vector<Double_t> PulseHistory::Result::mode

Beam peak per (board, channel) index, in ADC.

Zero where the channel is not a long end, which is what AmpBinOf() keys off.

Definition at line 107 of file PulseHistory.hpp.

Referenced by PulseHistory::Apply(), and PulseHistory::Measure().

◆ n_beam_events

Long64_t PulseHistory::Result::n_beam_events = 0

Beam-like events the fit drew on.

Definition at line 99 of file PulseHistory.hpp.

Referenced by PulseHistory::Measure(), PulseHistory::Report(), and PulseHistory::WriteToEventsFile().

◆ n_clamped

Long64_t PulseHistory::Result::n_clamped = 0

Corrections clamped rather than applied in full.

Definition at line 101 of file PulseHistory.hpp.

Referenced by PulseHistory::Apply(), PulseHistory::Report(), and PulseHistory::WriteToEventsFile().

◆ n_clamped_group

Long64_t PulseHistory::Result::n_clamped_group[kNGroups]

Clamps per group.

Definition at line 102 of file PulseHistory.hpp.

Referenced by PulseHistory::Apply(), PulseHistory::Report(), and Result().

◆ n_corrected

Long64_t PulseHistory::Result::n_corrected = 0

Hits that received a correction.

Definition at line 100 of file PulseHistory.hpp.

Referenced by PulseHistory::Apply(), PulseHistory::Report(), and PulseHistory::WriteToEventsFile().

◆ n_hits

Long64_t PulseHistory::Result::n_hits = 0

Hits examined.

Definition at line 97 of file PulseHistory.hpp.

Referenced by PulseHistory::Measure(), and PulseHistory::Report().

◆ n_seeds

Long64_t PulseHistory::Result::n_seeds = 0

Hits usable as a previous pulse.

Definition at line 98 of file PulseHistory.hpp.

Referenced by PulseHistory::Measure(), and PulseHistory::Report().

◆ shift

TH1D* PulseHistory::Result::shift[kNGroups]

Shift applied per hit.

Definition at line 115 of file PulseHistory.hpp.

Referenced by PulseHistory::Apply(), PulseHistory::Measure(), Result(), PulseHistory::SavePlots(), and ~Result().

◆ sorted_input

Bool_t PulseHistory::Result::sorted_input = kTRUE

Whether the input arrived time-ordered.

Definition at line 104 of file PulseHistory.hpp.

Referenced by PulseHistory::Measure(), and PulseHistory::Report().


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