]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MONITOR/galice.C
Updated treatment of track labels (Ruben)
[u/mrichter/AliRoot.git] / MONITOR / galice.C
index 0bc996beddec99574172388a3727c0f5e0c2ce9a..c979a7a31885d3046af47f3db4cdd20a211e81d1 100644 (file)
@@ -1,6 +1,15 @@
-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);
@@ -9,8 +18,7 @@ void galice()
     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;
@@ -23,15 +31,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 +122,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 +208,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 +234,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 +271,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 +283,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 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;
 }