MUSIC
unknown
Analysis for the MUSIC active-target ionization chamber
Toggle main menu visibility
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
21
struct
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_
;
51
Int_t
loaded_tree_
;
52
54
EnergyView
()
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
Constants.hpp
The dataset configuration, and how it is layered.
EnergyView::tree_
TTree * tree_
Events tree or chain bound by Attach(). Not owned.
Definition
Normalization.hpp:50
EnergyView::Decode
void Decode()
Decode the currently loaded entry into the value members.
Definition
Normalization.cpp:58
EnergyView::rightdE_adc
UShort_t rightdE_adc[18]
Raw right-side strip ADC values.
Definition
Normalization.hpp:23
EnergyView::cathode_adc
Short_t cathode_adc
Raw cathode ADC value.
Definition
Normalization.hpp:25
EnergyView::LoadGains
void LoadGains()
Load the calibration gains for the current file.
Definition
Normalization.cpp:20
EnergyView::gain_left
Float_t gain_left[18]
Per-strip left-side gain.
Definition
Normalization.hpp:28
EnergyView::loaded_tree_
Int_t loaded_tree_
Tree number whose gains are loaded; -1 for none.
Definition
Normalization.hpp:51
EnergyView::Attach
Bool_t Attach(TTree *t)
Bind to an events tree and set up the branch addresses.
Definition
Normalization.cpp:4
EnergyView::total
Double_t total[18]
Summed energy per strip, after strip_factor.
Definition
Normalization.hpp:45
EnergyView::strip_factor
Float_t strip_factor[18]
Per-strip multiplicative alignment, pol3_reference / centroid, applied to total after the per-channel...
Definition
Normalization.hpp:38
EnergyView::is_normed
Bool_t is_normed
Whether a calibration tree was found.
Definition
Normalization.hpp:33
EnergyView::Unit
const char * Unit() const
Unit label for the decoded values, for axis titles.
Definition
Normalization.cpp:110
EnergyView::right
Double_t right[18]
Right-side energy per strip.
Definition
Normalization.hpp:44
EnergyView::left_0_17_adc
UShort_t left_0_17_adc[18]
Raw left-side strip ADC values.
Definition
Normalization.hpp:22
EnergyView::EnergyView
EnergyView()
Construct detached, with zeroed values and no gains loaded.
Definition
Normalization.hpp:54
EnergyView::gain_right
Float_t gain_right[18]
Per-strip right-side gain.
Definition
Normalization.hpp:29
EnergyView::left
Double_t left[18]
Left-side energy per strip.
Definition
Normalization.hpp:43
EnergyView::grid_adc
Short_t grid_adc
Raw Frisch grid ADC value.
Definition
Normalization.hpp:26
EnergyView::gain_cathode
Float_t gain_cathode
Cathode gain.
Definition
Normalization.hpp:30
EnergyView::hits_adc
UShort_t hits_adc[36]
Raw per-slot hit ADC values.
Definition
Normalization.hpp:24
EnergyView::grid
Double_t grid
Grid energy.
Definition
Normalization.hpp:47
EnergyView::cathode
Double_t cathode
Cathode energy.
Definition
Normalization.hpp:46
tooling
include
Normalization.hpp
Generated by
1.17.0