-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
106 lines (77 loc) · 2 KB
/
notes.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
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
================================================================================
Dictionary notes - terms used
-- beam --
position
target_mat
target_mat_thickness?
intensity
-- calibration --
source
threshold
----- header definition -----
<source: beam, none, Na, etc> <position: (x, y)> <thrs: int>
<target_material: Mg, Cu, None etc> <target_thickness: int>
================================================================================
Program Flow:
Start
|
Meta data exist?
Y N
| |
| Read file_dict.txt
| |
| Strip Metadata, generate file names
| |
| Add pedestal file to header info
| |
Save metadata
|
Apply filters to select data
| |
| for all metadata
| | |
| | For all filters
| | | |
| | | Does current filter match metadata value?
| | | Y N
| | | | |
| | | | Remove from list
| | | | |
Any thing left in the list after all loops exit?
|
Data set required exist?
Y N
| |
| For each channel, for each data point use bin_data()
| |
| Is there a pedestal recorded?
| Y N
| | |
| | Read pedestal file
| | |
| | Calculate pedestal (average of data)
| | |
| Subtract pedestal from histogram (this will need a new function)
| |
| Does ADC->photon data exist?
| Y N
| | |
| | choose data set (first set?)
| | |
| | apply bin_data()
| | |
| | smooth (apply gaussian kernel)
| | |
| | peak_find()
| | |
| Convert ADC bins into photons
| |
Return data set
|
Plot data set
|
...
|
Profit
class histogram dictionary
look at integrating histogram dict w/ Root possibly numpy etc for plotting?