]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZEROv6.cxx
ITS stand-alone tracks added to AOD (A. Dainese)
[u/mrichter/AliRoot.git] / VZERO / AliVZEROv6.cxx
index ea3f7c7056690825fb3b63d41d50bac45a51ee43..a9f4a1638b421d9b494d48ddeeb6a42bd1b57c7f 100644 (file)
@@ -27,6 +27,8 @@
 //                                                                  //
 //////////////////////////////////////////////////////////////////////
 
+#include <TGeoGlobalMagField.h>
+
 #include "AliVZEROv6.h"
  
 ClassImp(AliVZEROv6)
@@ -400,8 +402,8 @@ void AliVZEROv6::CreateMaterials()
 
 //   Int_t  *idtmed = fIdtmed->GetArray()-2999;
       
-   Int_t     fieldType       = gAlice->Field()->Integ();     // Field type 
-   Double_t  maxField        = gAlice->Field()->Max();       // Field max.
+   Int_t     fieldType       = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Integ();     // Field type 
+   Double_t  maxField        = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max();       // Field max.
    Double_t  maxBending      = 0;     // Max Angle
    Double_t  maxStepSize     = 0.001; // Max step size 
    Double_t  maxEnergyLoss   = 1;     // Max Delta E
@@ -687,8 +689,8 @@ void AliVZEROv6::MakeBranch(Option_t *option)
   
   const char *cH = strstr(option,"H");
   
-  if (fHits   && TreeH() && cH) {
-    TreeH()->Branch(branchname,&fHits, fBufferSize);
+  if (fHits   && fLoader->TreeH() && cH) {
+    fLoader->TreeH()->Branch(branchname,&fHits, fBufferSize);
     AliDebug(2,Form("Making Branch %s for hits",branchname));
   }