@@ -27,7 +27,12 @@ rule build_pars_dsp_tau_geds:
27
27
datatype = "cal" ,
28
28
channel = "{channel}" ,
29
29
raw_table_name = lambda wildcards : get_table_name (
30
- metadata , config , "cal" , wildcards .timestamp , wildcards .channel , "raw"
30
+ channelmap_textdb ,
31
+ config ,
32
+ "cal" ,
33
+ wildcards .timestamp ,
34
+ wildcards .channel ,
35
+ "raw" ,
31
36
),
32
37
output :
33
38
decay_const = temp (get_pattern_pars_tmp_channel (config , "dsp" , "decay_constant" )),
@@ -57,14 +62,19 @@ rule build_pars_evtsel_geds:
57
62
filelist_path (config ), "all-{experiment}-{period}-{run}-cal-raw.filelist"
58
63
),
59
64
pulser_file = get_pattern_pars_tmp_channel (config , "tcm" , "pulser_ids" ),
60
- database = get_pattern_pars_tmp_channel ( config , "dsp" , "decay_constant" ) ,
65
+ database = rules . build_pars_dsp_tau_geds . output . decay_const ,
61
66
raw_cal_curve = get_blinding_curve_file ,
62
67
params :
63
68
timestamp = "{timestamp}" ,
64
69
datatype = "cal" ,
65
70
channel = "{channel}" ,
66
71
raw_table_name = lambda wildcards : get_table_name (
67
- metadata , config , "cal" , wildcards .timestamp , wildcards .channel , "raw"
72
+ channelmap_textdb ,
73
+ config ,
74
+ "cal" ,
75
+ wildcards .timestamp ,
76
+ wildcards .channel ,
77
+ "raw" ,
68
78
),
69
79
output :
70
80
peak_file = temp (
@@ -97,14 +107,19 @@ rule build_pars_dsp_nopt_geds:
97
107
files = os .path .join (
98
108
filelist_path (config ), "all-{experiment}-{period}-{run}-fft-raw.filelist"
99
109
),
100
- database = get_pattern_pars_tmp_channel ( config , "dsp" , "decay_constant" ) ,
101
- inplots = get_pattern_plts_tmp_channel ( config , "dsp" , "decay_constant" ) ,
110
+ database = rules . build_pars_dsp_tau_geds . output . decay_const ,
111
+ inplots = rules . build_pars_dsp_tau_geds . output . plots ,
102
112
params :
103
113
timestamp = "{timestamp}" ,
104
114
datatype = "cal" ,
105
115
channel = "{channel}" ,
106
116
raw_table_name = lambda wildcards : get_table_name (
107
- metadata , config , "cal" , wildcards .timestamp , wildcards .channel , "raw"
117
+ channelmap_textdb ,
118
+ config ,
119
+ "cal" ,
120
+ wildcards .timestamp ,
121
+ wildcards .channel ,
122
+ "raw" ,
108
123
),
109
124
output :
110
125
dsp_pars_nopt = temp (
@@ -137,15 +152,20 @@ rule build_pars_dsp_dplms_geds:
137
152
fft_files = os .path .join (
138
153
filelist_path (config ), "all-{experiment}-{period}-{run}-fft-raw.filelist"
139
154
),
140
- peak_file = get_pattern_pars_tmp_channel ( config , "dsp" , "peaks" , extension = "lh5" ) ,
141
- database = get_pattern_pars_tmp_channel ( config , "dsp" , "noise_optimization" ) ,
142
- inplots = get_pattern_plts_tmp_channel ( config , "dsp" , "noise_optimization" ) ,
155
+ peak_file = rules . build_pars_evtsel_geds . output . peak_file ,
156
+ database = rules . build_pars_dsp_nopt_geds . output . dsp_pars_nopt ,
157
+ inplots = rules . build_pars_dsp_nopt_geds . output . plots ,
143
158
params :
144
159
timestamp = "{timestamp}" ,
145
160
datatype = "cal" ,
146
161
channel = "{channel}" ,
147
162
raw_table_name = lambda wildcards : get_table_name (
148
- metadata , config , "cal" , wildcards .timestamp , wildcards .channel , "raw"
163
+ channelmap_textdb ,
164
+ config ,
165
+ "cal" ,
166
+ wildcards .timestamp ,
167
+ wildcards .channel ,
168
+ "raw" ,
149
169
),
150
170
output :
151
171
dsp_pars = temp (get_pattern_pars_tmp_channel (config , "dsp" , "dplms" )),
@@ -176,15 +196,20 @@ rule build_pars_dsp_dplms_geds:
176
196
# This rule builds the optimal energy filter parameters for the dsp using calibration dsp files
177
197
rule build_pars_dsp_eopt_geds :
178
198
input :
179
- peak_file = get_pattern_pars_tmp_channel ( config , "dsp" , "peaks" , extension = "lh5" ) ,
180
- decay_const = get_pattern_pars_tmp_channel ( config , "dsp" , "dplms" ) ,
181
- inplots = get_pattern_plts_tmp_channel ( config , "dsp" , "dplms" ) ,
199
+ peak_file = rules . build_pars_evtsel_geds . output . peak_file ,
200
+ decay_const = rules . build_pars_dsp_dplms_geds . output . dsp_pars ,
201
+ inplots = rules . build_pars_dsp_dplms_geds . output . plots ,
182
202
params :
183
203
timestamp = "{timestamp}" ,
184
204
datatype = "cal" ,
185
205
channel = "{channel}" ,
186
206
raw_table_name = lambda wildcards : get_table_name (
187
- metadata , config , "cal" , wildcards .timestamp , wildcards .channel , "raw"
207
+ channelmap_textdb ,
208
+ config ,
209
+ "cal" ,
210
+ wildcards .timestamp ,
211
+ wildcards .channel ,
212
+ "raw" ,
188
213
),
189
214
output :
190
215
dsp_pars = temp (get_pattern_pars_tmp_channel (config , "dsp_eopt" )),
@@ -246,8 +271,8 @@ rule build_svm_dsp_geds:
246
271
247
272
rule build_pars_dsp_svm_geds :
248
273
input :
249
- dsp_pars = get_pattern_pars_tmp_channel ( config , "dsp_eopt" ) ,
250
- svm_file = get_pattern_pars ( config , "dsp" , "svm" , extension = "pkl" ) ,
274
+ dsp_pars = rules . build_pars_dsp_eopt_geds . output . dsp_pars ,
275
+ svm_file = rules . build_svm_dsp_geds . output . dsp_pars ,
251
276
output :
252
277
dsp_pars = temp (get_pattern_pars_tmp_channel (config , "dsp" )),
253
278
log :
0 commit comments