-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdetectors.jsonnet
More file actions
178 lines (161 loc) · 7.26 KB
/
detectors.jsonnet
File metadata and controls
178 lines (161 loc) · 7.26 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
#!/usr/bin/env jsonnet
/**
This file yields a dictionary mapping a canonical detector name to its "detector
data object". A detector data object provides data file names and high-level
information.
WCT configuration code is encouraged to include lines like:
local detectors = import "detectors.jsonnet";
local detdata = detectors.<name>;
Or, better, provide detector-independent configuration with a top-level argument
allowing the user to provide the canonical detector name.
local detectors = import "detectors.jsonnet";
function(detname)
local det = detectors[detname];
// ...
See wirecell.util.detectors for a Python interface and
wcpy util detectors --help
For a CLI.
*/
// Explicitly define a length unit that is consistent with WCT's system of units
// in order not to import wirecell.jsonnet here.
local millimeter = 1.0;
// These are also supplied in the FR files and can be conveniently seen with:
//
// wcpy sigproc response-info <detname>
local hd_response_plane = 100.0*millimeter;
local vd_response_plane = 189.2*millimeter;
// A function to enforce the schema of each detector entry. It transforms it's
// arguments into attributes of a dictionary keeping only non-null values.
local detector(detname, // canonical detector name
// wires file
wires,
// An array of field file(s). Their order is up to
// interpretation by the detector configuration. A nominal
// .field attribute is set to the first in the array if field is
// null.
fields,
// The nominal field. If null, set to fields[0]
field=null,
// incoherent noise spectra
noise=null,
// coherent groups of wires
wiregroups=null,
// coherent noise spectra
noisegroups=null,
// per-channel response (PerChannelResponse component)
chresp=null,
// charge error
qerr=null,
// electronics response (if not analytical CE)
elresp=null,
// per-wire response (FilterResponse component)
wireresp=null,
// where the response plane is relative to the collection plane.
response_plane=hd_response_plane) =
std.prune({
detname:detname,
wires:wires,
field: if std.type(field) == "string"
then field
else self.fields[0],
fields: if std.type(fields) == "array" then fields else [fields],
noise:noise,
chresp:chresp,
qerr:qerr,
elresp:elresp,
wireresp:wireresp,
response_plane:response_plane,
});
// A temporary array - detname->object dict formed below.
local detectors = [
// The "base" detector is idealized. Someday replace these with idealized
// equivalents but for now, copy from PDSP/uboone.
detector("base",
wires="protodune-wires-larsoft-v4.json.bz2",
fields="dune-garfield-1d565.json.bz2",
noise="protodune-noise-spectra-v1.json.bz2",
qerr="microboone-charge-error.json.bz2", // reuse uboone
),
detector("pdsp",
wires="protodune-wires-larsoft-v4.json.bz2",
fields="dune-garfield-1d565.json.bz2",
noise="protodune-noise-spectra-v1.json.bz2",
qerr="microboone-charge-error.json.bz2", // reuse uboone
),
detector("pdhd",
wires="protodunehd-wires-larsoft-v1.json.bz2",
fields=[
"dune-garfield-1d565.json.bz2", // nominal/good
"np04hd-garfield-6paths-mcmc-bestfit.json.bz2", // "bad" APA1 FR
],
// note, a different noise file exists for 7.8 mV/fC gain.
noise="protodunehd-noise-spectra-14mVfC-v1.json.bz2",
qerr="microboone-charge-error.json.bz2", // reuse uboone
wireresp="protodunehd-field-response-filters.json.bz2",
),
detector("uboone",
wires="microboone-celltree-wires-v2.1.json.bz2",
fields=["ub-10-half.json.bz2",
"ub-10-uv-ground-tuned-half.json.bz2",
"ub-10-vy-ground-tuned-half.json.bz2"], // nominal and grounded regions
noise="microboone-noise-spectra-v2.json.bz2",
chresp="microboone-channel-responses-v1.json.bz2",
qerr="microboone-charge-error.json.bz2", // reuse uboone
),
detector("sbnd",
wires="sbnd-wires-geometry-v0200.json.bz2",
fields="garfield-sbnd-v1.json.bz2",
noise="sbnd-noise-spectra-v1.json.bz2",
),
detector("dune-vd",
wires="dunevd10kt-1x6x6-3view30deg-wires-v1.json.bz2",
fields="dunevd-resp-isoc3views-18d92.json.bz2",
noise="dunevd10kt-1x6x6-3view30deg-noise-spectra-v1.json.bz2",
qerr="microboone-charge-error.json.bz2", // reuse uboone
response_plane=vd_response_plane,
),
detector("dune-vd-coldbox",
wires="dunevdcb1-3view-wires-v2-splitanode.json.bz2",
fields="dunevd-resp-isoc3views-18d92.json.bz2",
noise="protodune-noise-spectra-v1.json.bz2", // reuse pdsp
elresp="dunevd-coldbox-elecresp-top-psnorm_400.json.bz2",
response_plane=vd_response_plane,
),
detector("dune10kt-1x2x6",
wires="dune10kt-1x2x6-wires-larsoft-v1.json.bz2",
fields="dune-garfield-1d60563.json.bz2",
noise="protodune-noise-spectra-v1.json.bz2",
),
detector("dunevd-crp2",
wires="dunevdcrp2-wires-larsoft-v1.json.bz2",
fields="dunevd-resp-isoc3views-18d92.json.bz2",
noise="protodune-noise-spectra-v1.json.bz2",
elresp="dunevd-coldbox-elecresp-top-psnorm_400.json.bz2",
response_plane=vd_response_plane,
),
detector("icarus",
wires="icarus-wires-dualanode-v5.json.bz2",
fields="garfield-icarus-fnal-rev1.json.bz2",
chresp="icarus-channel-responses-v1.json.bz2",
wiregroups="icarus_group_to_channel_map.json.bz2",
noisegroups=[ "icarus_noise_model_int_by_board_TPCEE.json.bz2",
"icarus_noise_model_int_by_board_TPCEW.json.bz2",
"icarus_noise_model_int_by_board_TPCWE.json.bz2",
"icarus_noise_model_int_by_board_TPCWW.json.bz2",
"icarus_noise_model_coh_by_board_TPCEE.json.bz2",
"icarus_noise_model_coh_by_board_TPCEW.json.bz2",
"icarus_noise_model_coh_by_board_TPCWE.json.bz2",
"icarus_noise_model_coh_by_board_TPCWW.json.bz2" ],
),
detector("iceberg",
wires="iceberg-wires-larsoft-v2.json.bz2",
fields="dune-garfield-1d565.json.bz2",
noise="protodune-noise-spectra-v1.json.bz2",
),
detector("pcbro",
wires="pcbro-wires.json.bz2",
fields="pcbro-response-avg.json.bz2",
noise="protodune-noise-spectra-v1.json.bz2",
),
];
{[d.detname]:d for d in detectors}