]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOF.cxx
Major upgrade of AliRoot code
[u/mrichter/AliRoot.git] / TOF / AliTOF.cxx
index 30833fc9c98947000a8356f23cb3cb6358c8e234..dc0f673a14d3feddda8007081c1a89b68ede1242 100644 (file)
 
 /*
 $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
 
@@ -65,7 +77,11 @@ Introduction of the Copyright and cvs Log
 #include "TNode.h"
 #include "TObject.h"
 #include "TRandom.h"
+#include "TTree.h"
+
 #include "AliRun.h"
+#include "AliMC.h"
+#include "AliMagF.h"
 #include "AliConst.h"
 
  
@@ -93,6 +109,7 @@ AliTOF::AliTOF(const char *name, const char *title)
   // Initialization of hits and digits array
   //
   fHits   = new TClonesArray("AliTOFhit",  405);
+  gAlice->AddHitList(fHits);
   fIshunt  = 0;
   fDigits = new TClonesArray("AliTOFdigit",405);
   //
@@ -543,7 +560,7 @@ void AliTOF::Digits2Raw(Int_t evNumber)
         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();
@@ -554,7 +571,7 @@ void AliTOF::Digits2Raw(Int_t evNumber)
      
      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;
@@ -764,7 +781,7 @@ void AliTOFdigit::AddTrack(Int_t track)
   }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");
   }
 }