-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXDU_pipeline.yaml
89 lines (86 loc) · 2.21 KB
/
XDU_pipeline.yaml
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
# Preparation function - run before the files loop
prefileloop_call:
type: prefileloop_call
kwargs:
XDU_files_path: XDU_electronic_chain/XDU_files
module: XDU_electronic_chain
# Function ran before evenry events loop - prepare the trees, read needed stuff from a run tree, etc.
preevent_func:
type: preeventloop_call
module: XDU_electronic_chain.preevent_func
# Stuff below is repeated for every file and event
# Read shower angles from the shower tree
read_angles:
type: call
module: electronic_chain
kwargs:
tree: tshower
# Read sampling time (time bin) from the simulation run tree
read_sampling_time:
type: call
module: electronic_chain
kwargs:
tree: trunefieldsimdata
# Read event traces
read_traces:
type: call
module: electronic_chain
kwargs:
tree: tefield
# Adjust traces sizes - XDU chain needs this stuff
adjust_traces:
type: call
module: electronic_chain
# Calculate effective length of antenna (needs angles, so for every event)
CEL:
type: call
module: XDU_electronic_chain.antenna_effective_length
# Convert efield to voltage
efield2voltage:
type: call
module: XDU_electronic_chain.efield2voltage
# Readout/prepare galactic noise
gala:
type: call
module: XDU_electronic_chain.galactic_noise
# Add galactic noise
galactic_noise:
type: add_randomized
module: XDU_electronic_chain.galactic_noise
# Readout/prepare LNA coefficient
LNA_get:
type: call
module: XDU_electronic_chain.LNA
# Add LNA noise
LNA_coefficient:
type: multiply
# Readout/prepare cable and filter coefficients
filter_get:
type: call
module: XDU_electronic_chain.filters
# Add cable noise
cable_coefficient:
type: multiply
# Add filter noise
filter_coefficient:
type: multiply
# Turn the strange XDU traces lengths into the original lengths
restore_traces_length:
type: call
module: electronic_chain
# Store the voltage at this stage of the pipeline
store_voltage:
type: store
tree_type: VoltageEventTree
filename_suffix: _voltage
copy_tefield: true
# Compute ADC counts from voltage at this stage of the pipeline
voltage2adc:
type: call
module: XDU_electronic_chain
# Store the ADC counts
store_adc:
type: store
tree_type: ADCEventTree
filename_suffix: _adc
copy_tefield: true