]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - CRT/AliCRT.cxx
Transition to NewIO
[u/mrichter/AliRoot.git] / CRT / AliCRT.cxx
index 9e754e81a17c9ad3302b31f9e4cc78381fc7bfe4..c1e4ffa98e6117078f5c68d7887bbe758007dd23 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.4  2002/07/12 12:56:18  gamez
-Material numbers, correction
-
-Revision 1.3.2.1  2002/07/12 12:31:30  gamez
-Material numbers, correction
-
-Revision 1.3  2002/07/10 15:53:10  gamez
-Molasse redefinition
-
-Revision 1.2  2002/07/09 08:45:35  hristov
-Old style include files needed on HP (aCC)
-
-Revision 1.1  2002/06/16 17:08:19  hristov
-First version of CRT
-
-
-*/
+/* $Id$ */
 
 ///////////////////////////////////////////////////////////////////////////////
 //                                                                           //
@@ -56,15 +38,14 @@ First version of CRT
 ///////////////////////////////////////////////////////////////////////////////
 
 #include <TTree.h>
-
-#include "AliMC.h"
-#include "AliRun.h"
-#include "AliMagF.h"
+#include <TVirtualMC.h>
 
 #include "AliCRT.h"
 #include "AliCRTConstants.h"
 #include "AliCRThit.h"
-
+#include "AliLoader.h"
+#include "AliMagF.h"
+#include "AliRun.h"
  
 ClassImp(AliCRT)
 
@@ -341,7 +322,7 @@ void AliCRT::SetTreeAddress()
   sprintf(branchname,"%s",GetName());
   
   // Branch address for hit tree
-  TTree *treeH = gAlice->TreeH();
+  TTree *treeH = fLoader->TreeH();
   if (treeH && fHits) {
     branch = treeH->GetBranch(branchname);
     if (branch) branch->SetAddress(&fHits);