Skip to content
Snippets Groups Projects
Commit c2bf6839 authored by WmHenryTemple's avatar WmHenryTemple Committed by Mark K Jones
Browse files

change to prevent the first good pulse from being overwritten

parent d47bd72b
No related branches found
No related tags found
No related merge requests found
......@@ -894,7 +894,7 @@ void THcShowerArray::FillADC_DynamicPedestal()
fTotNumAdcHits++;
fGoodAdcPulseIntRaw.at(npad) = pulseIntRaw;
if(fGoodAdcPulseIntRaw.at(npad) > fThresh[npad]) {
if(fGoodAdcPulseIntRaw.at(npad) > fThresh[npad] && fGoodAdcPulseInt.at(npad)==0) {
fTotNumGoodAdcHits++;
fGoodAdcPulseInt.at(npad) = pulseInt;
fE.at(npad) = fGoodAdcPulseInt.at(npad)*fGain[npad];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment