-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
54 lines (41 loc) · 2.15 KB
/
README.txt
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
Federico Presutti, July 2015
Remember to "chmod u+x *.sh"
Code for analysis of array of detectors testing.
Currently set up for 4*4 channels where x=0 are reference channels and 3,3 is
the cherenkov detector for discrimating good and bad events.
These parameters can be modified by changing the precompiler macro values at the
top of the files.
Assumes initial raw data in /wntmp/fpresutti/beamdata directory. This directory
hierarchy can also be modified directly in the bash scripts.
Programs:
convert.sh : calls pulse_convert.
Converts all root files that were converted from the DRS4 .dat files into a more
useable form as a root n-tuple. Runs in the /data directory.
analyze.sh : calls analyze_t1065.
Its purpose is to extract all data from the pulses such as amplitude, integral,
peak, quality etc, saving as a different root file in directory ../anadata.
getdata.sh : calls pixel_analysis.
Organizes and processes the analyzed
data, saveing in ../graphs. The output will consist of:
- Plot for the average amplitude and integral of each channel,
- Histograms for the distribution of the center of the beam, and a root file
containing these histograms,
- Plot for the time resolution of each channel agaisnt the reference
channel, as well as to every other pixel.
properties.sh : calls get_properties.
Fits gaussians to each histogram in the root files created above, and saves mean
and sigma x, y values etc for each run in both a csv spreadsheet beam.csv and a
root file beam.root.
Others:
distribution saves the amplitude/integral by delta t relation for each pixle
into a root file
correction works similarly but also performs a self-calibration
calibration is also similar but allows the calibration of one run using another
the makeResolution macro has may functions to make various plots for the paper
the makePlot and makePlot2 scripts create a scatter plot for the highest
energy pixel time stamp and weighted time stamp, and calibrated vs
self-calibrated time stamp respectively. They have to be provided a list of
files in the command line argument.
npxels.sh : calls weighting
Makes a plot of all the time resolution by the number of pixels used in the
weighted average.