Open spradlin opened 2 years ago
Also check that the histogram is being populated correctly. It looks like there is an off-by-one problem in the bin indexing. The input file data/MuonFlux-HyperK-ThetaPhi.dat
uses 0-based indexing rather than Root's 1-based convention.
Warnings in WCSimPrimaryGeneratorAction
Warning text
These warnings may indicate a real issue. These unused variables are part of the parsing input file to populate the histograms for simulating the cosmic muon flux. In the input files, like
data/MuonFlux-HyperK-ThetaPhi.dat
, the values that are parsed into these unused variables appear to define the bin centers and boundaries. The cosimic histos are two-dimensional in polar angles theta and phi.This looks like an incomplete implementation to me. Instead of using the parsed values to establish the bin boundaries of the generator histograms, the
WCSimPrimaryGeneratorAction
constructor uses its own hard-coded bin partition without even checking for consistency. This is an issue waiting to happen.Inconclusive
I have created an issue stub to follow-up on this.
Originally posted by @spradlin in https://github.com/spradlin/WCSim/issues/9#issuecomment-1002219110