Skip to content

Commit 37c8931

Browse files
committed
change prolog fcl to have standard structure, which is inherited simsp + sp-only configs
1 parent 948921e commit 37c8931

2 files changed

Lines changed: 81 additions & 63 deletions

File tree

sbndcode/WireCell/wcsimsp_sbnd.fcl

Lines changed: 80 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,99 @@
1-
# this fcl configures wirecell to perform **simulation and signal processing**
21
BEGIN_PROLOG
32

4-
sbnd_wcls_simsp: {
3+
sbnd_wcls: {
54
module_type : WireCellToolkit
65
wcls_main: {
6+
tool_type: "WCLS"
77
apps: ["TbbFlow"]
88

99
## Uncomment the following lines for debugging
1010
# loglevels: ["debug", "pgraph:info"]
1111
# logsinks: ["stdout"]
1212

13-
## Libraries in which to look for WCT components
14-
plugins: ["WireCellGen", "WireCellSigProc", "WireCellRoot", "WireCellPgraph", "WireCellLarsoft", "WireCellTbb"]
15-
16-
## The tool marshals the art::Event to these visitors before.
17-
## See notes below in params.
18-
19-
inputers: ["wclsSimDepoSetSource:"]
20-
21-
outputers: [
22-
"wclsDepoFluxWriter:postdrift",
23-
# "wclsFrameSaver:simdigits" , # <- by default, do not save RawDigits. Uncomment this line to save RawDigits and set
24-
"wclsFrameSaver:spsaver"
25-
]
26-
2713
## This sets the "main" Jsonnet file which provides the
2814
## configuration for the Wire-Cell Toolkit components. It is
2915
## take as relative to entries in WIRECELL_PATH.
30-
configs: ["pgrapher/experiment/sbnd/wcls-sim-drift-depoflux-nf-sp.jsonnet"]
31-
32-
33-
## Set the "external variables" required by the Jsonnet.
34-
params : {
35-
## This locates the input SimEnergyDeposits in the art::Event
36-
inputTag: "ionandscint:"
37-
38-
## Set "data" vs. "sim". The epoch below probably should follow suit.
39-
# reality: "data"
40-
reality: "sim"
41-
42-
## if epoch is "dynamic" you MUST add
43-
## "wclsMultiChannelNoiseDB" to "inputers" and must NOT
44-
## add it if not "dynamic"
45-
# epoch: "dynamic"
46-
epoch: "perfect"
47-
# epoch: "after"
16+
configs: []
4817

49-
50-
## Save output signal waveforms (recob::Wire) in "sparse" or "dense" form
51-
signal_output_form: "sparse"
52-
53-
## If save_simdigits="false", comment line with "wclsFrameSaver:simdigits" in outputers
54-
## If save_simdigits="true", uncomment line with "wclsFrameSaver:simdigits" in outputers
55-
## this is whether or not to save raw digits!!!
56-
save_simdigits: "false"
57-
58-
## Set the waveform sample length, eg, 6000, 15000, "auto"
59-
# nsample: 6000
60-
61-
save_track_id: "true"
62-
63-
}
64-
65-
structs: {
66-
## Longitudinal diffusion constant [cm2/s]
67-
DL: 4.0
68-
## Transverse diffusion constant [cm2/s]
69-
DT: 8.8
70-
## Electron lifetime [ms]
71-
lifetime: 10.0
72-
## Electron drift speed, assumes 0.5 kV/cm and 88.4 K. Units: mm/us
73-
driftSpeed: 1.563
74-
}
18+
## Libraries in which to look for WCT components
19+
plugins: ["WireCellGen", "WireCellSigProc", "WireCellRoot", "WireCellPgraph", "WireCellLarsoft", "WireCellTbb"]
20+
inputers: []
21+
outputers: []
7522

76-
tool_type: "WCLS"
77-
23+
## Set the "external variables" required by the Jsonnet.
24+
params: {}
25+
structs: {}
7826
}
7927
}
8028

29+
# ------------------------------------------------------------------------------------ #
30+
31+
## Configuration for 2D Sim + Signal Processing
32+
sbnd_wcls_simsp: @local::sbnd_wcls
33+
sbnd_wcls_simsp.wcls_main.configs: ["pgrapher/experiment/sbnd/wcls-sim-drift-depoflux-nf-sp.jsonnet"]
34+
sbnd_wcls_simsp.wcls_main.inputers: ["wclsSimDepoSetSource:"]
35+
sbnd_wcls_simsp.wcls_main.outputers:["wclsDepoFluxWriter:postdrift",
36+
# "wclsFrameSaver:simdigits" , # <- by default, do not save RawDigits. Uncomment this line to save RawDigits and set
37+
"wclsFrameSaver:spsaver"
38+
]
39+
sbnd_wcls_simsp.wcls_main.params: {
40+
## This locates the input SimEnergyDeposits in the art::Event
41+
inputTag: "ionandscint:"
42+
43+
## Set "data" vs. "sim". The epoch below probably should follow suit.
44+
reality: "sim"
45+
46+
## if epoch is "dynamic" you MUST add
47+
## "wclsMultiChannelNoiseDB" to "inputers" and must NOT
48+
## add it if not "dynamic"
49+
epoch: "perfect"
50+
51+
## Save output signal waveforms (recob::Wire) in "sparse" or "dense" form
52+
signal_output_form: "sparse"
53+
54+
## If save_simdigits="false", comment line with "wclsFrameSaver:simdigits" in outputers
55+
## If save_simdigits="true", uncomment line with "wclsFrameSaver:simdigits" in outputers
56+
## this is whether or not to save raw digits!!!
57+
save_simdigits: "false"
58+
59+
save_track_id: "true"
60+
}
61+
62+
sbnd_wcls_simsp.wcls_main.structs: {
63+
## Longitudinal diffusion constant [cm2/s]
64+
DL: 4.0
65+
## Transverse diffusion constant [cm2/s]
66+
DT: 8.8
67+
## Electron lifetime [ms]
68+
lifetime: 10.0
69+
## Electron drift speed, assumes 0.5 kV/cm and 88.4 K. Units: mm/us
70+
driftSpeed: 1.563
71+
}
72+
73+
# ------------------------------------------------------------------------------------ #
74+
75+
## Configuration for **Signal processing ONLY**
76+
sbnd_wcls_sp: @local::sbnd_wcls
77+
sbnd_wcls_sp.wcls_main.configs: ["pgrapher/experiment/sbnd/wcls-nf-sp.jsonnet"]
78+
sbnd_wcls_sp.wcls_main.inputers: ["wclsRawFrameSource"
79+
# To use wclsMultiChannelNoiseDB you must also put epoch:dynamic below
80+
# and you must have geo::Geometry service in your environment.
81+
# ,"wclsMultiChannelNoiseDB"
82+
]
83+
sbnd_wcls_sp.wcls_main.outputers: ["wclsFrameSaver:spsaver"]
84+
sbnd_wcls_sp.wcls_main.params : {
85+
# This locates the input raw::RawDigit collection in the art::Event
86+
raw_input_label: "daq"
87+
88+
# Set "data" vs. "sim". The epoch below probably should follow suit.
89+
reality: "sim"
90+
91+
# if epoch is "dynamic" you MUST add
92+
# "wclsMultiChannelNoiseDB" to "inputers" and must NOT
93+
# add it if not "dynamic"
94+
epoch: "perfect"
95+
96+
# Save output signal waveforms (recob::Wire) in "sparse" or "dense" form
97+
signal_output_form: "sparse"
98+
}
8199
END_PROLOG

sbndcode/WireCell/wirecell_sp_sbnd.fcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "messages_sbnd.fcl"
33
#include "rootoutput_sbnd.fcl"
44

5-
#include "wcsp_sbnd.fcl"
5+
#include "wcsimsp_sbnd.fcl"
66

77
process_name: WCLS
88

0 commit comments

Comments
 (0)