forked from brettviren/wire-cell-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from WireCell/spdir-metric
Spdir metric
- Loading branch information
Showing
79 changed files
with
3,566 additions
and
1,492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/bash | ||
me="$(realpath "$BASH_SOURCE")" | ||
mydir="$(dirname "$me")" | ||
|
||
cd "$mydir" | ||
|
||
for det in base pdsp uboone | ||
do | ||
wirecell-util wires-volumes $det \ | ||
| jsonnetfmt -n 4 --max-blank-lines 1 - \ | ||
> $mydir/mids/$det/variants/geometry.jsonnet | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
local wc = import "wirecell.jsonnet"; | ||
local pg = import "pgraph.jsonnet"; | ||
local util = import "util.jsonnet"; | ||
|
||
function(params, anode, tags=[], name=null) | ||
pg.pnode({ | ||
type: 'Reframer', | ||
name: if std.type(name) == "null" then util.idents(anode) else name, | ||
data: { | ||
anode: wc.tn(anode), | ||
tags: tags, | ||
fill: 0.0, | ||
toffset: 0, | ||
tbin: params.ductor.tbin, | ||
nticks: params.ductor.binning.nticks - self.tbin, | ||
}, | ||
}, nin=1, nout=1, uses=[anode]) | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// The spdir and other tests make use of "ssss" (simple sim sig smeared splat something something) | ||
// This helps generate the variant configs. | ||
// | ||
// Run wirecell-gen morse-* to find long/tran smearing numbers that match the | ||
// extra spread the sigproc induces. CAVEAT: these results are indirectly tied | ||
// to the field response used in that process. Defaults here are from PDSP. | ||
|
||
function(nominal, | ||
long=[ | ||
2.691862363980221, | ||
2.6750200122535057, | ||
2.7137567141154055 | ||
], | ||
tran=[ | ||
0.7377218875719689, | ||
0.7157764520393882, | ||
0.13980698710556544 | ||
]) | ||
{ | ||
local smeared = nominal + { | ||
splat: super.splat + { | ||
"smear_long": long, | ||
"smear_tran": tran, | ||
} | ||
}, | ||
|
||
// Used for test-morse-pdsp | ||
morse_nominal: nominal, | ||
|
||
// Used for test-ssss-pdsp | ||
ssss_nominal: nominal, | ||
ssss_smeared: smeared, | ||
|
||
// Used for test/scripts/spdir | ||
spdir_lofr: smeared { | ||
detector_data: super.detector_data { | ||
fields: "%s-fields-lo.json.bz2" % nominal.detector_name | ||
}, | ||
}, | ||
spdir_hifr: smeared { | ||
detector: super.detector_data { | ||
fields: "%s-fields-hi.json.bz2" % nominal.detector_name | ||
}, | ||
}, | ||
} |
Oops, something went wrong.