]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZEROv6.cxx
Debug printout removed.
[u/mrichter/AliRoot.git] / VZERO / AliVZEROv6.cxx
index 171e1c134fae81bc2e9d2a8b90fa44795e51e33c..a9f4a1638b421d9b494d48ddeeb6a42bd1b57c7f 100644 (file)
@@ -27,6 +27,8 @@
 //                                                                  //
 //////////////////////////////////////////////////////////////////////
 
+#include <TGeoGlobalMagField.h>
+
 #include "AliVZEROv6.h"
  
 ClassImp(AliVZEROv6)
@@ -127,13 +129,6 @@ AliVZEROv6::AliVZEROv6(const char *name, const char *title):
 //   fFibToPhot          =    0.3; // Attenuation at fiber-photocathode interface
 }
      
-//_____________________________________________________________________________
-
-void AliVZEROv6::BuildGeometry()
-{ 
-          
-}
-            
 //_____________________________________________________________________________
 void AliVZEROv6::CreateGeometry()
 {
@@ -407,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
@@ -694,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));
   }