Skip to content
Snippets Groups Projects
Commit 2c7cffe7 authored by Stephen A. Wood's avatar Stephen A. Wood
Browse files

Fix bug in EstimateFocalPlaneTimes

parent 12d67ada
No related branches found
No related tags found
No related merge requests found
...@@ -683,15 +683,15 @@ void THcHodoscope::EstimateFocalPlaneTime( void ) ...@@ -683,15 +683,15 @@ void THcHodoscope::EstimateFocalPlaneTime( void )
Plane_fptime_sum=0.0; Plane_fptime_sum=0.0;
for(Int_t i=0;i<nphits;i++) { for(Int_t i=0;i<nphits;i++) {
fNoTrkHitInfo.push_back(NoTrkHitInfo()); fNoTrkHitInfo.push_back(NoTrkHitInfo());
fNoTrkHitInfo[i].goodtwotimes = kFALSE; fNoTrkHitInfo[ihit].goodtwotimes = kFALSE;
fNoTrkHitInfo[i].goodscintime = kFALSE; fNoTrkHitInfo[ihit].goodscintime = kFALSE;
Double_t tmin = 0.5*binmax; Double_t tmin = 0.5*binmax;
Double_t postime=((THcHodoHit*) hodoHits->At(i))->GetPosTOFCorrectedTime(); Double_t postime=((THcHodoHit*) hodoHits->At(i))->GetPosTOFCorrectedTime();
Double_t negtime=((THcHodoHit*) hodoHits->At(i))->GetNegTOFCorrectedTime(); Double_t negtime=((THcHodoHit*) hodoHits->At(i))->GetNegTOFCorrectedTime();
if ((postime>tmin) && (postime<tmin+fTofTolerance) && if ((postime>tmin) && (postime<tmin+fTofTolerance) &&
(negtime>tmin) && (negtime<tmin+fTofTolerance)) { (negtime>tmin) && (negtime<tmin+fTofTolerance)) {
fNoTrkHitInfo[i].goodtwotimes = kTRUE; fNoTrkHitInfo[ihit].goodtwotimes = kTRUE;
fNoTrkHitInfo[i].goodscintime = kTRUE; fNoTrkHitInfo[ihit].goodscintime = kTRUE;
// Both tubes fired // Both tubes fired
Int_t index=((THcHodoHit*)hodoHits->At(i))->GetPaddleNumber()-1; Int_t index=((THcHodoHit*)hodoHits->At(i))->GetPaddleNumber()-1;
Double_t fptime = ((THcHodoHit*)hodoHits->At(i))->GetScinCorrectedTime() Double_t fptime = ((THcHodoHit*)hodoHits->At(i))->GetScinCorrectedTime()
......
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