You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sbndcode/WireCell/cfg/pgrapher/experiment/sbnd/wcls-nf-sp.jsonnet
+25-31Lines changed: 25 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -23,28 +23,32 @@
23
23
local epoch = std.extVar('epoch'); // eg "dynamic", "after", "before", "perfect"
24
24
local reality = std.extVar('reality');
25
25
local sigoutform = std.extVar('signal_output_form'); // eg "sparse" or "dense"
26
-
27
-
28
-
local wc = import'wirecell.jsonnet';
29
-
local g = import'pgraph.jsonnet';
30
-
31
26
local raw_input_label = std.extVar('raw_input_label'); // eg "daq"
32
27
28
+
local g = import'pgraph.jsonnet';
29
+
local f = import'pgrapher/experiment/sbnd/funcs.jsonnet';
30
+
local wc = import'wirecell.jsonnet';
31
+
local tools_maker = import'pgrapher/common/tools.jsonnet';
33
32
34
33
local data_params = import'params.jsonnet';
35
34
local simu_params = import'simparams.jsonnet';
36
35
local params = if reality == 'data'then data_params else simu_params;
37
36
38
-
39
-
local tools_maker = import'pgrapher/common/tools.jsonnet';
40
37
local tools = tools_maker(params);
38
+
local nanodes = std.length(tools.anodes);
39
+
local anode_iota = std.range(0, nanodes - 1);
40
+
41
+
local mega_anode = {
42
+
type:'MegaAnodePlane',
43
+
name:'meganodes',
44
+
data: {
45
+
anodes_tn: [wc.tn(anode) for anode in tools.anodes],
46
+
},
47
+
};
41
48
42
49
local wcls_maker = import'pgrapher/ui/wcls/nodes.jsonnet';
43
50
local wcls = wcls_maker(params, tools);
44
51
45
-
local sp_maker = import'pgrapher/experiment/sbnd/sp.jsonnet';
46
-
47
-
48
52
// Collect the WC/LS input converters for use below. Make sure the
49
53
// "name" argument matches what is used in the FHiCL that loads this
50
54
// file. In particular if there is no ":" in the inputer then name
@@ -65,13 +69,7 @@ local wcls_input = {
65
69
// Collect all the wc/ls output converters for use below. Note the
66
70
// "name" MUST match what is used in theh "outputers" parameter in the
67
71
// FHiCL that loads this file.
68
-
local mega_anode = {
69
-
type:'MegaAnodePlane',
70
-
name:'meganodes',
71
-
data: {
72
-
anodes_tn: [wc.tn(anode) for anode in tools.anodes],
73
-
},
74
-
};
72
+
75
73
local wcls_output = {
76
74
// The noise filtered "ADC" values. These are truncated for
77
75
// art::Event but left as floats for the WCT SP. Note, the tag
@@ -99,38 +97,28 @@ local wcls_output = {
99
97
type:'wclsFrameSaver',
100
98
name:'spsaver',
101
99
data: {
102
-
// anode: wc.tn(tools.anode),
103
100
anode: wc.tn(mega_anode),
104
101
digitize:false, // true means save as RawDigit, else recob::Wire
105
102
frame_tags: ['gauss', 'wiener'],
106
103
107
104
// this may be needed to convert the decon charge [units:e-] to be consistent with the LArSoft default ?unit? e.g. decon charge * 0.005 --> "charge value" to GaussHitFinder
108
105
frame_scale: [0.02, 0.02],
109
-
nticks: params.daq.nticks,
106
+
nticks: params.daq.nticks,
110
107
chanmaskmaps: [],
111
-
//nticks: ,
112
108
},
113
109
}, nin=1, nout=1, uses=[mega_anode]),
114
110
};
115
111
116
-
117
112
local perfect = import'pgrapher/experiment/sbnd/chndb-perfect.jsonnet';
118
-
//local base = import 'chndb-base_sbnd.jsonnet';
113
+
//local base = import 'pgrapher/experiment/sbnd/chndb-base_sbnd.jsonnet';
0 commit comments