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.
This revert the use of round() in Digitizer but adds a configuration option of the same name to allow the user to reenable, if they desire. See #202 for examples of the implications of either choice. The bug that orginally launched #202 is still fixed but, for now, AddNoise gains a configuration parameter to allow the user to activate this bug and at any desired level of damage. Of course, default is no bug. This is added for testing purposes and may be removed in the near future. Change the "roundtrip" test to utilize all 10 levels of noise, each level across a contigous group of 256 channels. The bats test is greatly expanded. It currently requires the "bug202" option and an updated "wirecell-plot comp1d" which is to be committed shortly.
- Loading branch information
1 parent
53003b3
commit 56aae07
Showing
10 changed files
with
337 additions
and
84 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
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 |
---|---|---|
@@ -1,25 +1,24 @@ | ||
// Make an incoherent GroupNoiseModel "map file". | ||
// | ||
// Here we assume the test-noise-spectra.jsonnet with 10 groups and | ||
// PDSP APA0 channel numbering. | ||
// Here we assume the test-noise-spectra.jsonnet with 10 groups | ||
// (numbered 1 to 10) and PDSP APA0 channel numbering. The particualr | ||
// noise grouping is totally bogus for the real PDSP detector. | ||
// | ||
// We make each plane channel range use a different spectra. | ||
// We make each "plane" channel range use a different spectra. | ||
// | ||
// Note at the lowest noise, quantization error dominates and the | ||
// modeled noise adding a relatively large component. In this test, | ||
// starting at about group 3, the modeled spectra are comparable to | ||
// the input spectra in the peak but the modeled noise spectra will | ||
// still have a fatter tail. | ||
local step=256; | ||
[ | ||
// Note the "plane" attribute is not standard and shoud/must be | ||
// ignored. | ||
{ | ||
plane: "u", | ||
groupID: 9, // noisiest | ||
channels: std.range(0, 800-1), | ||
}, | ||
{ | ||
plane: "v", | ||
groupID: 5, | ||
channels: std.range(800, 800 + 800-1), | ||
}, | ||
{ | ||
plane: "w", | ||
groupID: 1, // quietest | ||
channels: std.range(800 + 800, 800 + 800 + 960-1), | ||
plane: "p%d"%n, | ||
groupID: n, | ||
channels: std.range(step*(n-1), (step*n)-1), | ||
}, | ||
] | ||
for n in std.range(1,10) | ||
] |
Oops, something went wrong.