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.
void FreeDiagnostics ()
 Delete every diagnostic histogram and null the pointers.

Public Attributes

Kernel kernel [kNGROUPS]
 The group fits, one per Group: each the fit over the sum of its channels, the fallback for a channel without a kernel of its own.
std::vector< Kernel > kernel_ch
 The applied kernels, one per (board, channel) index as in the group map (empty before Measure()): the channel's own fit, or a flagged copy of its group's.
std::vector< Int_t > group_of
 The group map Measure() was given.
std::vector< TString > name_ch
 Channel-map name per index.
Bool_t enabled [kNGROUPS]
 Whether the group was configured for correction.
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 the file draws (Constants::SavePlots()), 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.
std::vector< TProfile * > dtprev_before_ch
 Per channel index, deviation against time to previous pulse before and after the channel's own kernel; drawn per group on one canvas.
std::vector< TProfile * > dtprev_after_ch

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 223 of file PulseHistory.hpp.

Constructor & Destructor Documentation

◆ Result()

PulseHistory::Result::Result ( )

Construct with zeroed counters and null diagnostics.

Definition at line 159 of file PulseHistory.cpp.

◆ ~Result()

PulseHistory::Result::~Result ( )

Frees any diagnostic histograms still held.

Definition at line 170 of file PulseHistory.cpp.

Member Function Documentation

◆ FreeDiagnostics()

void PulseHistory::Result::FreeDiagnostics ( )

Delete every diagnostic histogram and null the pointers.

Definition at line 172 of file PulseHistory.cpp.

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

Member Data Documentation

◆ dev_after

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

And after.

Definition at line 253 of file PulseHistory.hpp.

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

◆ dev_before

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

Deviation distribution before correction.

Definition at line 252 of file PulseHistory.hpp.

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

◆ dev_vs_pred

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

Channel deviation against predicted shift.

Definition at line 251 of file PulseHistory.hpp.

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

◆ dtprev_after

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

And after.

Definition at line 257 of file PulseHistory.hpp.

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

◆ dtprev_after_ch

std::vector<TProfile *> PulseHistory::Result::dtprev_after_ch

◆ dtprev_before

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

Deviation against time to previous pulse.

Definition at line 256 of file PulseHistory.hpp.

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

◆ dtprev_before_ch

std::vector<TProfile *> PulseHistory::Result::dtprev_before_ch

Per channel index, deviation against time to previous pulse before and after the channel's own kernel; drawn per group on one canvas.

Definition at line 260 of file PulseHistory.hpp.

Referenced by FreeDiagnostics(), PulseHistory::Measure(), and PulseHistory::SavePlots().

◆ enabled

Bool_t PulseHistory::Result::enabled[kNGROUPS]

Whether the group was configured for correction.

Definition at line 234 of file PulseHistory.hpp.

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

◆ group_of

std::vector<Int_t> PulseHistory::Result::group_of

◆ kernel

Kernel PulseHistory::Result::kernel[kNGROUPS]

The group fits, one per Group: each the fit over the sum of its channels, the fallback for a channel without a kernel of its own.

Definition at line 226 of file PulseHistory.hpp.

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

◆ kernel_ch

std::vector<Kernel> PulseHistory::Result::kernel_ch

The applied kernels, one per (board, channel) index as in the group map (empty before Measure()): the channel's own fit, or a flagged copy of its group's.

Definition at line 230 of file PulseHistory.hpp.

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

◆ mean_shift

Double_t PulseHistory::Result::mean_shift[kNGROUPS]

Mean subtracted term per group, ADC.

Definition at line 241 of file PulseHistory.hpp.

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

◆ 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 245 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 237 of file PulseHistory.hpp.

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

◆ n_clamped

Long64_t PulseHistory::Result::n_clamped = 0

Corrections clamped rather than applied in full.

Definition at line 239 of file PulseHistory.hpp.

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

◆ n_clamped_group

Long64_t PulseHistory::Result::n_clamped_group[kNGROUPS]

Clamps per group.

Definition at line 240 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 238 of file PulseHistory.hpp.

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

◆ n_hits

Long64_t PulseHistory::Result::n_hits = 0

Hits examined.

Definition at line 235 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 236 of file PulseHistory.hpp.

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

◆ name_ch

std::vector<TString> PulseHistory::Result::name_ch

Channel-map name per index.

Definition at line 232 of file PulseHistory.hpp.

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

◆ shift

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

Shift applied per hit.

Definition at line 254 of file PulseHistory.hpp.

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

◆ sorted_input

Bool_t PulseHistory::Result::sorted_input = kTRUE

Whether the input arrived time-ordered.

Definition at line 242 of file PulseHistory.hpp.

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


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