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

One readout channel's beam-peak calibration. More...

#include <CalibrateBeam.hpp>

Public Attributes

TString name
 Channel name from the active channel map.
Char_t side
 Readout end: 'L' or 'R'.
Int_t strip
 Anode strip index this channel reads.
Double_t fit_adc = 0.0
 Fitted beam-peak centroid, in ADC.
Double_t fit_sigma_adc = 0.0
 Fitted beam-peak width, in ADC.
Long64_t n_samples = 0.0
 Events entering the fit.
Double_t gain = -1.0
 Left/right gain-match override.
Double_t ridge_ratio = 0.0
 Short channels only: C_short / C_long from this subfile's own ridge fit, or 0 when the ridge was not measurable and a fallback was used.

Detailed Description

One readout channel's beam-peak calibration.

Produced per subfile by CalibrateBeam, and consumed by EnergyView to turn raw ADC into calibrated units.

Definition at line 55 of file CalibrateBeam.hpp.

Member Data Documentation

◆ fit_adc

Double_t ChannelCal::fit_adc = 0.0

◆ fit_sigma_adc

Double_t ChannelCal::fit_sigma_adc = 0.0

Fitted beam-peak width, in ADC.

Definition at line 60 of file CalibrateBeam.hpp.

Referenced by DeriveBeamEnergyWindow(), ReduceToAnchors(), ResolutionFWHMPercent(), and WriteCalibrationTree().

◆ gain

Double_t ChannelCal::gain = -1.0

Left/right gain-match override.

When >= 0 this is used instead of 1 / fit_adc; when negative the reciprocal fit is used.

Set by the gain-match step: the long side is anchored on its own beam peak, the short side on C_long / |slope| of the charge-sharing ridge. This puts left and right on the same charge scale, so reaction events — which share charge between ends differently than beam events do — no longer sawtooth between even and odd strips.

Definition at line 70 of file CalibrateBeam.hpp.

Referenced by ComputeLRGainMatch(), Gain(), and WriteCalibrationTree().

◆ n_samples

Long64_t ChannelCal::n_samples = 0.0

Events entering the fit.

Definition at line 61 of file CalibrateBeam.hpp.

Referenced by CalibrateBeam::CalibrateBeamOneSubfile(), ReduceToAnchors(), and WriteCalibrationTree().

◆ name

TString ChannelCal::name

◆ ridge_ratio

Double_t ChannelCal::ridge_ratio = 0.0

Short channels only: C_short / C_long from this subfile's own ridge fit, or 0 when the ridge was not measurable and a fallback was used.

This is a preamplifier gain ratio and therefore fixed per channel, which is what lets AggregateRidgeRatiosForRun() replace each subfile's value with the run-level median over the subfiles that did measure it.

Definition at line 77 of file CalibrateBeam.hpp.

Referenced by WriteCalibrationTree().

◆ side

◆ strip


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