From: jbarbosa Date: Tue, 13 Feb 2001 20:15:34 +0000 (+0000) Subject: Removed fNsec (number of cathodes - obsolete) related loops and calls. X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=f73582a89a9211c8911bd1358d06c433f70b1688;hp=51642472a521ff89344b53784883df5dda8632d8 Removed fNsec (number of cathodes - obsolete) related loops and calls. --- diff --git a/RICH/AliRICHChamber.cxx b/RICH/AliRICHChamber.cxx index 14d8578973b..3a5686366f3 100644 --- a/RICH/AliRICHChamber.cxx +++ b/RICH/AliRICHChamber.cxx @@ -15,6 +15,9 @@ /* $Log$ + Revision 1.8 2000/12/18 17:45:43 jbarbosa + Cleaned up PadHits object. + Revision 1.7 2000/10/03 21:44:09 morsch Use AliSegmentation and AliHit abstract base classes. @@ -65,7 +68,6 @@ AliRICHChamber::AliRICHChamber() fTresh = 0; frMin = 0.1; frMax = 140; - fnsec = 1; for(Int_t i=0; i<50; ++i) fIndexMap[i] = 0; } @@ -187,30 +189,27 @@ void AliRICHChamber::DisIntegration(Float_t eloss, Float_t xhit, Float_t yhit, Float_t qcheck=0, qp=0; nnew=0; - for (Int_t i=1; i<=fnsec; i++) { - qcheck=0; - for (fSegmentation->FirstPad(xhit, yhit, 0, dx, dy); - fSegmentation->MorePads(); - fSegmentation->NextPad()) - { - qp= fResponse->IntXY(fSegmentation); - qp= TMath::Abs(qp); - - //printf("Qp:%f\n",qp); - - if (qp > 1.e-4) { - qcheck+=qp; - // - // --- store signal information - newclust[0][nnew]=qp*qtot; - newclust[1][nnew]=fSegmentation->Ix(); - newclust[2][nnew]=fSegmentation->Iy(); - newclust[3][nnew]=fSegmentation->ISector(); - nnew++; - //printf("Newcluster:%d\n",i); - } - } // Pad loop - } // Cathode plane loop + for (fSegmentation->FirstPad(xhit, yhit, 0, dx, dy); + fSegmentation->MorePads(); + fSegmentation->NextPad()) + { + qp= fResponse->IntXY(fSegmentation); + qp= TMath::Abs(qp); + + //printf("Qp:%f\n",qp); + + if (qp > 1.e-4) { + qcheck+=qp; + // + // --- store signal information + newclust[0][nnew]=qp*qtot; + newclust[1][nnew]=fSegmentation->Ix(); + newclust[2][nnew]=fSegmentation->Iy(); + newclust[3][nnew]=fSegmentation->ISector(); + nnew++; + //printf("Newcluster:%d\n",i); + } + } // Pad loop //if (fSegmentation->ISector()==2) //printf("Nnew:%d\n\n\n\n",nnew); }