HistSmear¶
Description¶
Applies (energy) smearing matrix to the histogram of events binned in
HistSmear class may be used to implement, for example, Daya Bay IAV smearing. The IAV uncertainty may be implemented by connecting the output of RenormalizeDiag transformation as the input to HistSmear.
Inputs¶
'smear.Ntrue'
— one-dimensional histogram of number of events .'smear.SmearMatrix'
—square smearing matrix of number of events .
Outputs¶
'smear.Nrec'
— one-dimensional smeared histo of number of events
Arguments¶
bool upper
. If true HistSmear will ensure that the matrix is upper diagonal. Useful for the cases of energy leak type smearing.
Tests¶
Use the following commands for the usage example and testing:
./tests/detector/test_esmear.py -s
./tests/detector/test_iavunc.py -s
Implementation¶
The smeared histo
where
The matrix
for most of the histogram bins. Exceptions are bins in the beginning and end of the histogram. Events from these bins leak outside the histogram, so the sum may be less than one.