Skip to content

Commit 60c4320

Browse files
committed
minor formatting.
1 parent 189921d commit 60c4320

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/PeakFit.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4624,7 +4624,14 @@ pair< PeakShrdVec, PeakShrdVec > searchForPeakFromUser( const double x,
46244624
// uncommon for LaBr systems to have 4096 channels. We should probably define some resolution
46254625
// function that is the worst possible possible for high-resolution detectors, and threshold off
46264626
// of this
4627-
const bool highres = (nchannels > 5000); //any system above 4096 channels has to be HPGe, right?
4627+
const float keV_per_channel = (dataH->gamma_energy_max() - dataH->gamma_energy_min()) / dataH->num_gamma_channels();
4628+
// Plan: if we have
4629+
//inpeaks
4630+
4631+
const bool highres = (nchannels > HIGH_RES_NUM_CHANNELS); //any system above 4096 channels has to be HPGe, right?
4632+
4633+
4634+
46284635

46294636

46304637
if( initialfitpeaks.size() > 1 )

0 commit comments

Comments
 (0)