-
Notifications
You must be signed in to change notification settings - Fork 1
/
wct-test-drifter.jsonnet
70 lines (51 loc) · 1.55 KB
/
wct-test-drifter.jsonnet
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
// A slowdown when number of depos gets high is found in
local wc = import "wirecell.jsonnet";
local g = import "pgraph.jsonnet";
local io = import "pgrapher/common/fileio.jsonnet";
local params = import "pgrapher/experiment/uboone/simparams.jsonnet";
// customized override -- moved to simparams.jsonnet
/* local params = default_params{ */
/* files: super.files{ */
/* chresp: null, */
/* } */
/* }; */
local tools_maker = import "pgrapher/common/tools.jsonnet";
local tools = tools_maker(params);
local sim_maker = import "pgrapher/experiment/uboone/sim.jsonnet";
local stubby = {
tail: wc.point(1000, -1000, 5000.0, wc.mm),
head: wc.point(1500, -1000, 6000.0, wc.mm),
};
local tracklist = [
{
time: 0.0*wc.ms,
charge: -5000, // negative means per step
ray: stubby,
//ray: params.det.bounds,
},
// {
// time: 2.0*wc.ms,
// charge: -5000, // negative means per step
// ray: stubby,
// },
];
local anode = tools.anodes[0];
local sim = sim_maker(params, tools);
local depos = sim.tracks(tracklist, step=0.1*wc.mm);
local drifter = sim.drifter;
local sink = g.pnode({type:'DumpDepos'}, nin=1, nout=0);
local graph = g.pipeline([depos, drifter, sink]);
local app = {
type: "Pgrapher",
data: {
edges: g.edges(graph),
},
};
local cmdline = {
type: "wire-cell",
data: {
plugins: ["WireCellGen", "WireCellPgraph", "WireCellSigProc", "WireCellImg"],
apps: ["Pgrapher"]
},
};
[cmdline] + g.uses(graph) + [app]