Open SmithJK opened 8 years ago
One thing that might be nice here depending on the background situation may be to make a linear fit the the background gated area, incase there are other peaks there. As long as the peak isn't on some Compton edge or crazy it could be a reasonable first order fix, then if the fit isn't great have if shift the gates up or have it draw the fit so you can suggest new gates or something of the sort. This way if we have a peak/scatter peak it would let us know. Just a thought.
Ideally, this would be done by subtracting off some background from a nearby energy slice. Unfortunately, the background-under-peak to background-in-nearby-slice ratio changes for the different angular bins.
Maybe a function that fits each slice with a TPeak, then cuts, scales, and subtracts the background slice appropriately?