///////////////////////////////////////////////////////////////////////////////
#include <TClonesArray.h>
-#include <TTree.h>
-#include <TVirtualMC.h>
+#include <TGeoGlobalMagField.h>
#include <TGeoManager.h>
#include <TStopwatch.h>
+#include <TTree.h>
+#include <TVirtualMC.h>
#include "AliACORDE.h"
#include "AliMagF.h"
void AliACORDE::CreateMaterials()
{
// Magnatic field inside the pit
- Int_t isxfld = gAlice->Field()->Integ();
- Float_t sxmgmx = gAlice->Field()->Max();
+ Int_t isxfld = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Integ();
+ Float_t sxmgmx = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max();
//Magnetic field above the Magnet.
Int_t xfield = 0; // no Magnetic field.
// 4. Write raw data
AliACORDERawData rawdata;
- rawdata.WriteACORDERawData(Modules);
+ rawdata.WriteACORDERawData(Modules,(ndig > 1));
}
//_____________________________________________________________________________
}
//_____________________________________________________________________________
-void AliACORDE::AddAlignableVolumes() const
-{
- //
- // Create entries for alignable volumes associating the symbolic volume
- // name with the corresponding volume path. Needs to be syncronized with
- // eventual changes in the geometry.
- //
- TString vpstr1 = "ALIC_1/ACORDE_";
- TString snstr1="ACORDE/Array";
- TString volpath, symname;
-
- for(Int_t cnt=1; cnt<=1; cnt++){
- volpath = vpstr1;
- volpath += cnt;
- symname = snstr1;
- symname += cnt;
- if(!gGeoManager->SetAlignableEntry(symname.Data(),volpath.Data()))
- AliFatal(Form("Alignable entry %s not created. Volume path %s not valid", symname.Data(),volpath.Data()));
- }
-
-}