MUSIC unknown
Analysis for the MUSIC active-target ionization chamber
Loading...
Searching...
No Matches
RunEpoch.hpp
Go to the documentation of this file.
1#ifndef RUNEPOCH_HPP
2#define RUNEPOCH_HPP
3
4#include "DedupStrategy.hpp"
5#include <Rtypes.h>
6#include <RtypesCore.h>
7#include <TString.h>
8#include <map>
9#include <utility>
10#include <vector>
11
17
37struct RunEpoch {
38 TString name;
40 Bool_t enabled;
41
49 TString file_tag;
50
51 std::vector<Int_t> runs;
53 Int_t max_files;
54
57 Int_t n_boards;
58 Int_t n_channels;
60 std::map<std::pair<Int_t, Int_t>, TString> channel_map;
62
67 std::vector<UShort_t> timing_ref_board_channels;
69 Bool_t do_sort;
73 Double_t
75 Double_t
79
80 Bool_t has_cathode;
81
86 Double_t strip_e_min_adc;
87 Double_t strip_e_max_adc;
88 Double_t cathode_max_adc;
89 Double_t grid_max_adc;
90 Double_t strip0_max_adc;
91 Double_t strip17_max_adc;
97
100 : name(""), source(kSolaris), enabled(kTRUE), file_tag(""), max_files(-1),
102 do_sort(kFALSE), event_time_window_us(8.0), reference_channel("Grid"),
105 strip_e_min_adc(0.0), strip_e_max_adc(4096.0), cathode_max_adc(16384.0),
106 grid_max_adc(16384.0), strip0_max_adc(16384.0),
107 strip17_max_adc(16384.0), left_even_max_adc(16384.0),
108 left_odd_max_adc(16384.0), right_even_max_adc(16384.0),
109 right_odd_max_adc(16384.0) {}
110};
111
112#endif
DedupStrategy
How to resolve more than one hit on the same channel within an event.
@ kLARGEST_ENERGY
Keep the highest-energy hit.
RunSource
Which acquisition system produced an epoch's data.
Definition RunEpoch.hpp:13
@ kCoMPASS
CAEN CoMPASS.
Definition RunEpoch.hpp:14
@ kSolaris
SOLARIS DAQ.
Definition RunEpoch.hpp:15
Double_t cathode_max_adc
Cathode full scale.
Definition RunEpoch.hpp:88
std::vector< Int_t > runs
Run numbers belonging to this epoch.
Definition RunEpoch.hpp:51
Bool_t has_cathode
Whether this era instrumented the cathode.
Definition RunEpoch.hpp:80
UShort_t timing_ref_board
Definition RunEpoch.hpp:65
RunEpoch()
Construct with SOLARIS-era defaults; override per epoch.
Definition RunEpoch.hpp:99
Double_t right_odd_max_adc
Definition RunEpoch.hpp:95
Bool_t do_sort
Time-sort hits before event building.
Definition RunEpoch.hpp:69
Double_t left_even_max_adc
Left-side ceiling, even strips.
Definition RunEpoch.hpp:92
TString name
Epoch name, used in logs and plot paths.
Definition RunEpoch.hpp:38
Double_t right_even_max_adc
Right-side ceiling, even strips.
Definition RunEpoch.hpp:94
std::vector< UShort_t > timing_ref_board_channels
Channels on the reference board used to align the others against it.
Definition RunEpoch.hpp:67
Double_t grid_max_adc
Grid full scale.
Definition RunEpoch.hpp:89
Double_t strip0_max_adc
Strip 0 full scale.
Definition RunEpoch.hpp:90
Double_t event_time_window_us
Coincidence window, in microseconds, for grouping hits into one event.
Definition RunEpoch.hpp:71
Double_t strip_e_max_adc
Upper bound of the per-strip energy range.
Definition RunEpoch.hpp:87
TString file_tag
Prefix for this epoch's output files and plot directories.
Definition RunEpoch.hpp:49
Bool_t enabled
Whether this epoch participates in the analysis.
Definition RunEpoch.hpp:40
Int_t max_files
Cap on subfiles processed per run; -1 for all of them.
Definition RunEpoch.hpp:53
Double_t strip17_max_adc
Strip 17 full scale.
Definition RunEpoch.hpp:91
DedupStrategy dedup_strategy
How repeated hits on a slot resolve.
Definition RunEpoch.hpp:77
Double_t left_odd_max_adc
Left-side ceiling, odd strips.
Definition RunEpoch.hpp:93
Double_t reference_channel_min_adc
Lower energy gate on the seed channel.
Definition RunEpoch.hpp:74
Bool_t do_board_sync
Run the multi-board timing alignment.
Definition RunEpoch.hpp:68
Double_t strip_e_min_adc
Lower bound of the per-strip energy range.
Definition RunEpoch.hpp:86
std::map< std::pair< Int_t, Int_t >, TString > channel_map
Board and channel to detector-element name, e.g. "Grid", "de_l_03".
Definition RunEpoch.hpp:60
Int_t n_boards
Boards in this era's setup.
Definition RunEpoch.hpp:57
TString reference_channel
Channel whose hits seed events, e.g. "Grid".
Definition RunEpoch.hpp:72
RunSource source
Acquisition system for this era.
Definition RunEpoch.hpp:39
Double_t reference_channel_max_adc
Upper energy gate on the seed channel.
Definition RunEpoch.hpp:76
Int_t n_channels
Channels per board.
Definition RunEpoch.hpp:58