forked from WireCell/wire-cell-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-common-sim-multi-ductor-graph.jsonnet
More file actions
30 lines (27 loc) · 1.03 KB
/
test-common-sim-multi-ductor-graph.jsonnet
File metadata and controls
30 lines (27 loc) · 1.03 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
local params = import "../experiment/uboone/simparams.jsonnet";
local tools_maker = import "../common/tools.jsonnet";
local tools = tools_maker(params);
local sim_maker = import "../experiment/uboone/sim.jsonnet";
local sim = sim_maker(params, tools);
local wires_modes = [
{ name:"shorteduv",
wires: sim.shorted_channels.uv,
mode: "accept", },
{ name:"shortedvy",
wires: sim.shorted_channels.vy,
mode: "accept", },
{ name:"nominal",
wires: sim.shorted_channels.uv + sim.shorted_channels.vy,
mode: "reject", } ];
local wbdepos = [sim.make_wbdepo(tools.anode, wm.wires, wm.mode, name=wm.name) for wm in wires_modes];
local ductors = sim.make_anode_ductors(tools.anode);
local nductors = std.length(ductors);
local sanity = std.assertEqual(nductors, 3);
local tags = ['frame'+std.toString(n) for n in std.range(1,nductors)];
local pipes = [{
wbdepos: wbdepos[n],
ductor: ductors[n],
tag: tags[n],
} for n in std.range(0, nductors-1)];
//pipes
sim.multi_ductor_graph(tools.anode, pipes).graph