/*
$Log$
+Revision 1.16 2000/10/02 21:28:17 fca
+Removal of useless dependecies via forward declarations
+
+Revision 1.15 2000/05/18 14:33:01 vicinanz
+Modified to be full HP compliant
+
+Revision 1.14 2000/05/15 19:32:36 fca
+Add AddHitList !!
+
+Revision 1.13 2000/05/10 16:52:18 vicinanz
+New TOF version with holes for PHOS/RICH
+
Revision 1.11.2.1 2000/05/10 09:37:15 vicinanz
New version with Holes for PHOS/RICH
#include "TNode.h"
#include "TObject.h"
#include "TRandom.h"
+#include "TTree.h"
+
#include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
#include "AliConst.h"
// Initialization of hits and digits array
//
fHits = new TClonesArray("AliTOFhit", 405);
+ gAlice->AddHitList(fHits);
fIshunt = 0;
fDigits = new TClonesArray("AliTOFdigit",405);
//
AliTOFRoc* currentRoc = (AliTOFRoc*)RocData->UncheckedAt(iRoc);
RocSize = currentRoc->Items*2+1;
TotSize += RocSize*4;
- if (RocSize>=pow(2,16)) RocSize=0;
+ if (RocSize>=TMath::Power(2,16)) RocSize=0;
RocHead[iRoc] = iRoc<<28;
RocHead[iRoc] += RocSize;
RocChek[iRoc] = currentRoc->GetCheckSum();
AliTOFRoc* DummyRoc = new AliTOFRoc();
TotSize *= 4;
- if (TotSize>=pow(2,24)) TotSize=0;
+ if (TotSize>=TMath::Power(2,24)) TotSize=0;
UInt_t Header = TotSize;
UInt_t SectId = ((UInt_t)isect)<<24;
Header += SectId;
}else if (fTracks[2]==0){
fTracks[2] = track;
}else{
- printf("AliTOFdigit::AddTrack ERROR: Too many Tracks (>3) \n");
+ // printf("AliTOFdigit::AddTrack ERROR: Too many Tracks (>3) \n");
}
}