MUSIC
unknown
Analysis for the MUSIC active-target ionization chamber
Toggle main menu visibility
Loading...
Searching...
No Matches
PulseHistoryGroups.hpp
Go to the documentation of this file.
1
#ifndef PULSE_HISTORY_GROUPS_HPP
2
#define PULSE_HISTORY_GROUPS_HPP
3
4
#include <Rtypes.h>
5
15
22
enum
PulseHistoryKernel
{
23
kBINNED
,
24
kANALYTIC
// k(dt) = -c exp(-(dt + t_m)/tau) + c_B (exp(-t_f/tau) -
25
// exp(-dt/tau))
26
};
27
30
struct
PulseHistoryGroupOption
{
31
Bool_t
enabled
= kFALSE;
32
PulseHistoryKernel
kernel
=
kBINNED
;
36
Double_t
tau_us
= 0.0;
37
};
38
54
struct
PulseHistoryGroups
{
55
PulseHistoryGroupOption
long_left
;
56
PulseHistoryGroupOption
long_right
;
57
PulseHistoryGroupOption
short_left
;
58
PulseHistoryGroupOption
short_right
;
59
PulseHistoryGroupOption
strip0
;
60
PulseHistoryGroupOption
strip17
;
64
PulseHistoryGroupOption
grid
;
65
68
Bool_t
AnyEnabled
()
const
{
69
return
long_left
.enabled ||
long_right
.enabled ||
short_left
.enabled ||
70
short_right
.enabled ||
strip0
.enabled ||
strip17
.enabled ||
71
grid
.enabled;
72
}
73
};
74
75
#endif
PulseHistoryKernel
PulseHistoryKernel
Shape of the pulse-history kernel applied to a channel group.
Definition
PulseHistoryGroups.hpp:22
kBINNED
@ kBINNED
Definition
PulseHistoryGroups.hpp:23
kANALYTIC
@ kANALYTIC
Definition
PulseHistoryGroups.hpp:24
PulseHistoryGroupOption
Per-group pulse-history setting: whether the group is corrected and with which kernel shape.
Definition
PulseHistoryGroups.hpp:30
PulseHistoryGroupOption::enabled
Bool_t enabled
Definition
PulseHistoryGroups.hpp:31
PulseHistoryGroupOption::kernel
PulseHistoryKernel kernel
Definition
PulseHistoryGroups.hpp:32
PulseHistoryGroupOption::tau_us
Double_t tau_us
Known preamp decay time in microseconds, for the form.
Definition
PulseHistoryGroups.hpp:36
PulseHistoryGroups
Which channel groups the pulse-history correction fits and applies to, one setting per kernel group o...
Definition
PulseHistoryGroups.hpp:54
PulseHistoryGroups::long_right
PulseHistoryGroupOption long_right
Long end of the even strips (R).
Definition
PulseHistoryGroups.hpp:56
PulseHistoryGroups::strip17
PulseHistoryGroupOption strip17
Strip 17, unsegmented.
Definition
PulseHistoryGroups.hpp:60
PulseHistoryGroups::grid
PulseHistoryGroupOption grid
The Frisch grid, the channel whose hits seed the events.
Definition
PulseHistoryGroups.hpp:64
PulseHistoryGroups::short_right
PulseHistoryGroupOption short_right
Short end of the odd strips (R).
Definition
PulseHistoryGroups.hpp:58
PulseHistoryGroups::AnyEnabled
Bool_t AnyEnabled() const
Whether any group is on: an epoch with none skips the correction altogether.
Definition
PulseHistoryGroups.hpp:68
PulseHistoryGroups::strip0
PulseHistoryGroupOption strip0
Strip 0, unsegmented.
Definition
PulseHistoryGroups.hpp:59
PulseHistoryGroups::long_left
PulseHistoryGroupOption long_left
Long end of the odd strips (L).
Definition
PulseHistoryGroups.hpp:55
PulseHistoryGroups::short_left
PulseHistoryGroupOption short_left
Short end of the even strips (L).
Definition
PulseHistoryGroups.hpp:57
tooling
include
PulseHistoryGroups.hpp
Generated by
1.17.0