* provided "as is" without express or implied warranty. *
**************************************************************************/
-/*
-$Log$
-Revision 1.1 2002/01/21 17:14:21 kowal2
-New track hits using root containers.
+/* $Id$ */
-*/
///////////////////////////////////////////////////////////////////////////////
// //
// Time Projection Chamber track hits object //
#include "TClonesArray.h"
#include "AliTPC.h"
-#include <iostream.h>
+#include <Riostream.h>
{
//
//clear object
+ fSize = 0;
if (fArray){
for (Int_t i=0;i<fArray->GetEntriesFast();i++){
AliTrackHitsParamV2 * par = (AliTrackHitsParamV2 *)fArray->UncheckedAt(i);
ratio = TMath::Sqrt(1.+ dfi2+ ddz2);
}
- Double_t dl = fStep*(Short_t)TMath::Nint(dr*ratio/fStep);
+ // Double_t dl = fStep*(Short_t)TMath::Nint(dr*ratio/fStep); //MI change
+ Double_t dl = dr*ratio/fStep;
+ if (TMath::Abs(dl)>32765) dl =0;
+ dl = fStep * Short_t(TMath::Nint(dl));
+
dr = dl/ratio;
oldr+=dr;
//calculate precission
//
//set Current hit for the first hit
//
+
+ if (fArray->GetSize()<=0) {
+ fCurrentHit->fStatus = kFALSE;
+ return kFALSE;
+ }
+
AliTrackHitsParamV2 *param = (AliTrackHitsParamV2 *)fArray->At(0);
if (!fHit) fHit = new AliTPChit;
if (!(param) ) {