-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals_PC.h
32 lines (26 loc) · 1.49 KB
/
globals_PC.h
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
// Begin Global Variable Playtime
const int NSAMPLES = 4100; // should be *approximately* set in the wavedump config file
// the code will exit with an error if this value is wrong.
const int ChanToAnalyze = 6; // PC channels: 5, 7, 9 , 11, 12, 13, 14, 15
const int Tclk = 2; // Sampling period in nanoseconds for the 1730 digitizer
// Trapezoidal Filter Parameters
const int Tk = 150; // This code is assuming the convention k<l !!!!!!
const int Tl = 600; // If l>k, The flat top time m = l-k.
//const int Ttau = 59.7e3; // 1/e Decay Time in nanoseconds. (high gain 60 mV/MeV)
const int Ttau = 10e3; // (pulser data) 11e3; 1/e (27 mV/MeV chip)
const int Tdelay = 10; // flat top delay (only works for Tdelay >= 0 currently)
const int Twidth = 300; // width of flat top to average for the energy
// First Derivative Filter Parameters
const int Dk = 100; //
const int Dt = 200; // MUST HAVE: Dt >= Dk + 1 !!!!!!
// Second Derivative Filter Parameters
const int DDk = 85;
const int DDt = 87;
const int DDr = 89;//
// Trigger/Timing Parameters
const int polarity = -1; // 1 = positive, -1 = negative
const double thresh = 100e3; // Threshold for second derivative trigger
const int trigDelay = 200; // Look for the first zero crossing in the second derivative within
// a fixed time window
const int trigHO = 2000; // Only allow double triggers if separated by a time trigHO
// End of Global Variable playground