]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MONITOR/galice.C
Using AliPHOSLoader instead of AliPHOSGetter
[u/mrichter/AliRoot.git] / MONITOR / galice.C
index 0bc996beddec99574172388a3727c0f5e0c2ce9a..eebd7b42e4fa3f75fa5cbc4859ae0bb3cda2d6de 100644 (file)
@@ -1,6 +1,15 @@
-void galice()
+// In order to create galice.root follow the steps shown below
+//
+//  gAlice->Init("galice.C");
+//  gAlice->GetRunLoader()->Write();
+//  delete gAlice->GetRunLoader();
+//
+
+
+
+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);
@@ -23,15 +32,15 @@ void galice()
     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 =============================
@@ -114,7 +123,7 @@ void galice()
     //
     //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
@@ -200,10 +209,10 @@ void galice()
     }
 
 
-    if (iRICH)
+    if (iHMPID)
     {
-        //=================== RICH parameters ===========================
-        AliRICH *RICH = new AliRICHv3("RICH", "normal RICH");
+        //=================== HMPID parameters ===========================
+        AliHMPID *HMPID = new AliHMPIDv3("HMPID", "normal HMPID");
 
     }
 
@@ -226,8 +235,8 @@ void galice()
        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();
@@ -263,10 +272,10 @@ void galice()
         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)
@@ -275,23 +284,16 @@ void galice()
         AliEMCAL *EMCAL = new AliEMCALv1("EMCAL", "EMCALArch1a");
     }
 
-     if (iCRT)
+     if (iACORDE)
     {
-        //=================== CRT parameters ============================
-        AliCRT *CRT = new AliCRTv0("CRT", "normal ACORDE");
+        //=================== ACORDE parameters ============================
+        AliACORDE *ACORDE = new AliACORDEv0("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;
 }