/* History of cvs commits:
*
* $Log$
+ * Revision 1.59 2007/10/18 15:12:22 kharlov
+ * Moved MakePrimary to EMCRecPoint to rpduce correct order of primaries
+ *
* Revision 1.58 2007/04/16 09:03:37 kharlov
* Incedent angle correction fixed
*
// cpy ctor
fMulDigit = rp.fMulDigit ;
fAmp = rp.fAmp ;
- fEnergyList = new Float_t[rp.fMulDigit] ;
- Int_t index ;
- for(index = 0 ; index < fMulDigit ; index++)
+ if (rp.fMulDigit>0) fEnergyList = new Float_t[rp.fMulDigit] ;
+ for(Int_t index = 0 ; index < fMulDigit ; index++)
fEnergyList[index] = rp.fEnergyList[index] ;
}
}
//____________________________________________________________________________
-void AliPHOSEmcRecPoint::EvalDispersion(Float_t logWeight,TClonesArray * digits, TVector3 &vInc)
+void AliPHOSEmcRecPoint::EvalDispersion(Float_t logWeight,TClonesArray * digits, TVector3 & /* vInc */)
{
// Calculates the dispersion of the shower at the origine of the RecPoint
//DP: should we correct dispersion for non-perpendicular hit????????
}
//____________________________________________________________________________
-void AliPHOSEmcRecPoint::EvalElipsAxis(Float_t logWeight,TClonesArray * digits, TVector3 &vInc)
+void AliPHOSEmcRecPoint::EvalElipsAxis(Float_t logWeight,TClonesArray * digits, TVector3 & /* vInc */)
{
// Calculates the axis of the shower ellipsoid
}
//____________________________________________________________________________
-void AliPHOSEmcRecPoint::EvalMoments(Float_t logWeight,TClonesArray * digits, TVector3 &vInc)
+void AliPHOSEmcRecPoint::EvalMoments(Float_t logWeight,TClonesArray * digits, TVector3 & /* vInc */)
{
// Calculate the shower moments in the eigen reference system
// M2x, M2z, M3x, M4z
Error("EvalPrimaries", "GetNprimaries ERROR > increase fMaxTrack" ) ;
nprimaries = fMaxTrack; //skip the rest
}
- for(fMulTrack=1; fMulTrack<=nprimaries ; fMulTrack++){
- tempo[fMulTrack-1] = digit->GetPrimary(fMulTrack) ;
+ for(fMulTrack=0; fMulTrack<nprimaries ; fMulTrack++){
+ tempo[fMulTrack] = digit->GetPrimary(fMulTrack+1) ;
}
//Now add other digits contributions
}
}
} // all digits
-
if(fMulTrack > 0){
if(fTracksList)delete [] fTracksList;
fTracksList = new Int_t[fMulTrack] ;