-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathset.cpp
114 lines (106 loc) · 2.46 KB
/
set.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
//
//Set all the constant values I need from cost.hpp
//
#include "../classe.hpp"
#include <iostream>
// #ifndef WF_FILE
// #define WF_FILE "give_this_file_a_proper_name"
// std::cout << "\nGIVE A NAME TO THE FILE TO READ WITH a.wf_file " << std::endl;
// #endif // !WF_FILE
//
// #ifndef DATA_FORMAT
// #define DATA_FORMAT "set_a_data_format";
// #endif // !DATA_FORMAT
//
// #ifndef INVERT
// #define INVERT 0;
// #endif // !INVERT
//
// #ifndef TEMPL_F
// #define TEMPL_F "0";
// #endif // !TEMPL_F
//
// #ifndef NOISE_F
// #define NOISE_F "0";
// #endif // !NOISE_F
//
// #ifndef MUON_F
// #define MUON_F "0";
// #endif // !MUON_F
//
// #ifndef TRG_F
// #define TRG_F "0";
// #endif // !TRG_F
//
// #ifndef MEMORYDEPTH
// #define MEMORYDEPTH 1024;
// #endif // !MEMORYDEPTH
//
// #ifndef N_WF
// #define N_WF 50;
// #endif // !N_WF
//
void cla::set(){
wf_file = WF_FILE;
oldwf_file = WF_FILE;
data_format = DATA_FORMAT;
invert = INVERT;
templ_f = TEMPL_F;
noise_f = NOISE_F;
muon_f = MUON_F;
trg_f = TRG_F;
memorydepth = MEMORYDEPTH;
n_wf = N_WF;
res = RES;
prepulse_ticks = PREPULSE_TICKS;
oldprepulse_ticks = PREPULSE_TICKS;
pretrg = PRETRG;
afttrg = AFTTRG;
tick_len = TICK_LEN;
sat_up = SAT_UP;
sat_low = SAT_LOW;
bsl = BSL;
rms = RMS;
//Calibration
int_low = INT_LOW;
int_up = INT_UP;
nbins = NBINS;
nmaxpeaks = NMAXPEAKS;
mu0_low = MU0_LOW;
mu0_up = MU0_UP;
spe_low = SPE_LOW;
spe_up = SPE_UP;
s0_low = S0_LOW;
s0_up = S0_UP;
sc_low = SC_LOW;
sc_up = SC_UP;
fit_low = FIT_LOW;
fit_up = FIT_UP;
hmin = HMIN;
hmax = HMAX;
spe_ampl = SPE_AMPL;
spe_charge= SPE_CHARGE;
//Deconvolution
int_prompt = INT_PROMPT;
roll = ROLL;
amp = AMP;
f_prompt = F_PROMPT;
amp_low = AMP_LOW;
amp_up = AMP_UP;
n2_ = N2_;
deco_sm = DECO_SM;
fit_l = FIT_L;
fit_u = FIT_U;
a_fast = A_FAST;
tau_fast = TAU_FAST;
a_slow = A_SLOW;
tau_slow = TAU_SLOW;
sigma = SIGMA;
t_0 = T_0;
//ProtoDUNE
channel = CHANNEL;
gStyle->SetOptFit(1111); gStyle->SetOptTitle(0);
gStyle->SetStatX(0.9); gStyle->SetStatY(0.9);
gStyle->SetPalette(kSunset);
ROOT::Math::MinimizerOptions::SetDefaultMinimizer("Minuit");
}