Skip to content
Snippets Groups Projects
Commit 5abda424 authored by Mark K Jones's avatar Mark K Jones Committed by GitHub
Browse files

Merge pull request #180 from MarkKJones/aero-fix

Fix problem in THcAerogel::CoarseProcess with fNpeSum
parents 354fd669 f64afe8c
No related branches found
No related tags found
No related merge requests found
......@@ -645,9 +645,8 @@ Int_t THcAerogel::CoarseProcess( TClonesArray& ) //tracks
fGoodPosAdcPulseTime.at(npmt) = pulseTime;
fPosNpe.at(npmt) = fPosGain[npmt]*fGoodPosAdcPulseInt.at(npmt);
fPosNpeSum += fPosNpe.at(npmt);
fNpeSum += fPosNpeSum;
fPosNpeSum += fPosNpe.at(npmt);
fTotNumGoodAdcHits++;
fTotNumGoodPosAdcHits++;
fNumGoodPosAdcHits.at(npmt) = npmt + 1;
......@@ -675,15 +674,16 @@ Int_t THcAerogel::CoarseProcess( TClonesArray& ) //tracks
fGoodNegAdcPulseTime.at(npmt) = pulseTime;
fNegNpe.at(npmt) = fNegGain[npmt]*fGoodNegAdcPulseInt.at(npmt);
fNegNpeSum += fNegNpe.at(npmt);
fNpeSum += fNegNpeSum;
fNegNpeSum += fNegNpe.at(npmt);
fTotNumGoodAdcHits++;
fTotNumGoodNegAdcHits++;
fNumGoodNegAdcHits.at(npmt) = npmt + 1;
}
}
fNpeSum = fNegNpeSum + fPosNpeSum;
for(Int_t ihit=0; ihit < fNhits; ihit++) {
Int_t nPosTDCHits = 0;
......
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