MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
Loading...
Searching...
No Matches
Normalization.hpp
Go to the documentation of this file.
1#ifndef NORMALIZATION_HPP
2#define NORMALIZATION_HPP
3
4#include "Constants.hpp"
5#include <Rtypes.h>
6#include <TTree.h>
7
21struct EnergyView {
22 UShort_t left_0_17_adc[18];
23 UShort_t rightdE_adc[18];
24 UShort_t hits_adc[36];
25 Short_t cathode_adc;
26 Short_t grid_adc;
27
28 Float_t gain_left[18];
29 Float_t gain_right[18];
30 Float_t gain_cathode;
33 Bool_t is_normed;
34
38 Float_t strip_factor[18];
39
43 Double_t left[18];
44 Double_t right[18];
45 Double_t total[18];
46 Double_t cathode;
47 Double_t grid;
49
50 TTree *tree_;
52
55 : cathode_adc(0), grid_adc(0), gain_cathode(0.0f), is_normed(kFALSE),
56 cathode(0.0), grid(0.0), tree_(nullptr), loaded_tree_(-1) {}
57
63 Bool_t Attach(TTree *t);
64
73 void Decode();
74
78 void LoadGains();
79
82 const char *Unit() const;
83};
84
85#endif
The dataset configuration, and how it is layered.
TTree * tree_
Events tree or chain bound by Attach(). Not owned.
void Decode()
Decode the currently loaded entry into the value members.
UShort_t rightdE_adc[18]
Raw right-side strip ADC values.
Short_t cathode_adc
Raw cathode ADC value.
void LoadGains()
Load the calibration gains for the current file.
Float_t gain_left[18]
Per-strip left-side gain.
Int_t loaded_tree_
Tree number whose gains are loaded; -1 for none.
Bool_t Attach(TTree *t)
Bind to an events tree and set up the branch addresses.
Double_t total[18]
Summed energy per strip, after strip_factor.
Float_t strip_factor[18]
Per-strip multiplicative alignment, pol3_reference / centroid, applied to total after the per-channel...
Bool_t is_normed
Whether a calibration tree was found.
const char * Unit() const
Unit label for the decoded values, for axis titles.
Double_t right[18]
Right-side energy per strip.
UShort_t left_0_17_adc[18]
Raw left-side strip ADC values.
EnergyView()
Construct detached, with zeroed values and no gains loaded.
Float_t gain_right[18]
Per-strip right-side gain.
Double_t left[18]
Left-side energy per strip.
Short_t grid_adc
Raw Frisch grid ADC value.
Float_t gain_cathode
Cathode gain.
UShort_t hits_adc[36]
Raw per-slot hit ADC values.
Double_t grid
Grid energy.
Double_t cathode
Cathode energy.