-void galice()
+// In order to create galice.root follow the steps shown below
+//
+// gAlice->Init("galice.C");
+// AliRunLoader::Instance()->Write();
+// delete AliRunLoader::Instance();
+//
+
+
+
+void Config()
{
- AliRunLoader* runLoader = AliRunLoader::Open("galice.root", AliConfig::fgkDefaultEventFolderName, "recreate");
+ AliRunLoader* runLoader = AliRunLoader::Open("galice.root", AliConfig::GetDefaultEventFolderName(), "recreate");
runLoader->SetCompressionLevel(2);
runLoader->SetNumberOfEventsPerFile(1);
gAlice->SetRunLoader(runLoader);
new TGeant3("C++ Interface to Geant3");
// Field (L3 0.4 T)
- AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., AliMagFMaps::k4kG);
- gAlice->SetField(field);
+ TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", 1., 1., AliMagF::k5kG));
Int_t iABSO = 0;
Int_t iDIPO = 0;
Int_t iPHOS = 0;
Int_t iPIPE = 0;
Int_t iPMD = 0;
- Int_t iRICH = 0;
+ Int_t iHMPID = 0;
Int_t iSHIL = 0;
- Int_t iSTART = 0;
+ Int_t iT0 = 0;
Int_t iTOF = 0;
Int_t iTPC = 1;
Int_t iTRD = 0;
Int_t iZDC = 0;
Int_t iEMCAL = 0;
- Int_t iCRT = 0;
+ Int_t iACORDE = 0;
Int_t iVZERO = 0;
runLoader->CdGAFile();
//=================== Alice BODY parameters =============================
//
//AliITS *ITS = new AliITSv5asymm("ITS","Updates ITS TDR detailed version with asymmetric services");
//
- AliITSvPPRasymm *ITS = new AliITSvPPRasymm("ITS","New ITS PPR detailed version with asymmetric services");
+ AliITSvPPRasymmFMD *ITS = new AliITSvPPRasymmFMD("ITS","New ITS PPR detailed version with asymmetric services");
ITS->SetMinorVersion(2); // don't touch this parameter if you're not an ITS developer
ITS->SetReadDet(kFALSE); // don't touch this parameter if you're not an ITS developer
// ITS->SetWriteDet("$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm2.det"); // don't touch this parameter if you're not an ITS developer
}
- if (iRICH)
+ if (iHMPID)
{
- //=================== RICH parameters ===========================
- AliRICH *RICH = new AliRICHv3("RICH", "normal RICH");
+ //=================== HMPID parameters ===========================
+ AliHMPID *HMPID = new AliHMPIDv3("HMPID", "normal HMPID");
}
if (geo == kHoles) {
// With hole in front of PHOS
TRD->SetPHOShole();
- // With hole in front of RICH
- TRD->SetRICHhole();
+ // With hole in front of HMPID
+ TRD->SetHMPIDhole();
}
// Switch on TR
AliTRDsim *TRDsim = TRD->CreateTR();
AliPMD *PMD = new AliPMDv1("PMD", "normal PMD");
}
- if (iSTART)
+ if (iT0)
{
- //=================== START parameters ============================
- AliSTART *START = new AliSTARTv1("START", "START Detector");
+ //=================== T0 parameters ============================
+ AliT0 *T0 = new AliT0v1("T0", "T0 Detector");
}
if (iEMCAL)
AliEMCAL *EMCAL = new AliEMCALv1("EMCAL", "EMCALArch1a");
}
- if (iCRT)
+ if (iACORDE)
{
- //=================== CRT parameters ============================
- AliCRT *CRT = new AliCRTv0("CRT", "normal ACORDE");
+ //=================== ACORDE parameters ============================
+ AliACORDE *ACORDE = new AliACORDEv1("ACORDE", "normal ACORDE");
}
if (iVZERO)
{
- //=================== CRT parameters ============================
+ //=================== ACORDE parameters ============================
AliVZERO *VZERO = new AliVZEROv2("VZERO", "normal VZERO");
}
- AliConfig::Instance()->Add(gMC);
- gMC->Init();
- gAlice->InitLoaders();
- gAlice->Write();
- runLoader->MakeTree("E");
- runLoader->Write();
- delete runLoader;
}