Skip to content

Commit f02870a

Browse files
committed
declare front porch variable in common params, set default value in exp params, remove from simparams
1 parent e34607f commit f02870a

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

sbndcode/WireCell/cfg/pgrapher/common/params.jsonnet

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ local wc = import "wirecell.jsonnet";
156156
// Parameters related to simulation, not given elsewhere.
157157
sim : {
158158

159+
// The "absolute" time (ie, relative to trigger time?) that the lower edge
160+
// of final readout tick #0 should correspond to. This is a
161+
// "fixed" notion.
162+
tick0_time: 0,
163+
159164
// The number of impact bins per wire region gives the
160165
// granularity of the simulation convolution in the transverse
161166
// dimension. Typically should match what the granularity at

sbndcode/WireCell/cfg/pgrapher/experiment/sbnd/params.jsonnet

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ base {
120120
// For running in LArSoft, the simulation must be in fixed time mode.
121121
fixed: true,
122122

123+
// The "absolute" time (ie, relative to trigger time?) that the lower edge
124+
// of final readout tick #0 should correspond to.
125+
// this is the default value unless overridden with extVar in main
126+
tick0_time: -200 * wc.us,
127+
123128
// Open the ductor's gate a bit early.
124129
local response_time_offset = $.det.response_plane / $.lar.drift_speed,
125130
local response_nticks = wc.roundToInt(response_time_offset / $.daq.tick),

sbndcode/WireCell/cfg/pgrapher/experiment/sbnd/simparams.jsonnet

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,6 @@ base {
7676
continuous: false,
7777
fluctuate: false,
7878

79-
// The "absolute" time (ie, relative to trigger time?) that the lower edge
80-
// of final readout tick #0 should correspond to. This is a
81-
// "fixed" notion.
82-
// note: should be overriden by extVar in main jsonnet to maintain consistency
83-
// with the larsoft clock service
84-
local tick0_time = -200*wc.us,
85-
8679
//ductor : super.ductor {
8780
// start_time: $.daq.start_time - $.elec.fields.drift_dt + $.trigger.time,
8881
//},

0 commit comments

Comments
 (0)