// //
//////////////////////////////////////////////////////////////////////
+#include <TGeoGlobalMagField.h>
+
#include "AliVZEROv6.h"
ClassImp(AliVZEROv6)
// fFibToPhot = 0.3; // Attenuation at fiber-photocathode interface
}
-//_____________________________________________________________________________
-
-void AliVZEROv6::BuildGeometry()
-{
-
-}
-
//_____________________________________________________________________________
void AliVZEROv6::CreateGeometry()
{
// 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
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));
}