Skip to content
Snippets Groups Projects
Commit 142d35a9 authored by hallc-online's avatar hallc-online Committed by Mark K Jones
Browse files

Modify THcHodoEff

In Process add if statement to be sure that hitcounter is
  greater than zero and less than total number of paddles
  in the plane.
parent 9f98b2c0
No related branches found
No related tags found
No related merge requests found
......@@ -377,6 +377,8 @@ Int_t THcHodoEff::Process( const THaEvData& evdata )
for(Int_t ip=0;ip<fNPlanes;ip++) {
Int_t hitcounter = hitCounter[ip];
if (hitcounter>=fNCounters[ip]) hitcounter=fNCounters[ip]-1;
if (hitcounter<0) hitcounter=0;
Double_t dist = hitDistance[ip];
Int_t nphits=fPlanes[ip]->GetNScinHits();
TClonesArray* hodoHits = fPlanes[ip]->GetHits();
......@@ -387,7 +389,6 @@ Int_t THcHodoEff::Process( const THaEvData& evdata )
Bool_t onTrack, goodScinTime, goodTdcNeg, goodTdcPos;
fHod->GetFlags(trackIndex,ip,ihit,
onTrack, goodScinTime, goodTdcNeg, goodTdcPos);
if(TMath::Abs(dist) <= fStatSlop &&
TMath::Abs(hitcounter-counter) <= checkHit[ip] &&
fHitPlane[ip] == 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