]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDconfig.C
Check PHOS and EMCAL clusters
[u/mrichter/AliRoot.git] / TRD / AliTRDconfig.C
index c84c260019d16d1ce157ba19d9d73c54652c6596..f96219ee89ce11c33472ce0e177182973e14cec6 100644 (file)
@@ -6,7 +6,7 @@ void Config()
   // libraries required by geant321
   gSystem->Load("libgeant321");
 
-  new     TGeant3("C++ Interface to Geant3");
+  new     TGeant3TGeo("C++ Interface to Geant3");
 
   // Create the output file
   TFile *rootfile = new TFile("TRD_test.root","recreate");
@@ -15,10 +15,22 @@ void Config()
   // Define the monte carlo
   TGeant3 *geant3 = (TGeant3*) gMC;
 
+  AliRunLoader* rl=0x0;
+  cout << "AliTRDconfig.C: Creating Run Loader ..." <<endl;
+  rl = AliRunLoader::Open("TRD_test.root"
+                         ,AliConfig::GetDefaultEventFolderName()
+                         ,"recreate");
+  if (rl == 0x0) {
+    gAlice->Fatal("AliTRDconfig.C","Can not instatiate the Run Loader");
+    return;
+  }
+  rl->SetCompressionLevel(2);
+  rl->SetNumberOfEventsPerFile(3);
+  gAlice->SetRunLoader(rl);
+
   // Set external decayer
-  AliDecayer* decayer = new AliDecayerPythia();
+  TVirtualMCDecayer *decayer = new AliDecayerPythia();
   decayer->SetForceDecay(kAll);
-  //decayer->SetForceDecay(kAll);
   decayer->Init();
   gMC->SetExternalDecayer(decayer);
 
@@ -110,8 +122,8 @@ void Config()
   }
 
   Int_t iMAG   = 1;
-  Int_t iITS   = 1;
-  Int_t iTPC   = 1;
+  Int_t iITS   = 0;
+  Int_t iTPC   = 0;
   Int_t iTRD   = 1;
   Int_t iABSO  = 1;
   Int_t iDIPO  = 1;
@@ -120,6 +132,8 @@ void Config()
   Int_t iSHIL  = 1;
   Int_t iPIPE  = 1;
 
+  rl->CdGAFile();
+
   //=================== Alice BODY parameters =============================
   AliBODY *BODY = new AliBODY("BODY","Alice envelop");
 
@@ -147,7 +161,8 @@ void Config()
 
   if (iFRAME) {
     //=================== FRAME parameters ============================
-    AliFRAME *FRAME  = new AliFRAMEv1("FRAME","Space Frame");
+    AliFRAMEv2 *FRAME  = new AliFRAMEv2("FRAME","Space Frame");
+    FRAME->SetHoles(0);
   }
 
   if (iSHIL) {
@@ -163,13 +178,16 @@ void Config()
   if (iITS) {
     //=================== ITS parameters ============================
     //
-    // EUCLID is a flag to output (=1) both geometry and media to two ASCII files 
-    // (called by default ITSgeometry.euc and ITSgeometry.tme) in a format
-    // understandable to the CAD system EUCLID. The default (=0) means that you 
-    // dont want to use this facility.
-    //
 
-    AliITS *ITS  = new AliITSv5asymm("ITS","Updates ITS TDR detailed version with asymmetric services");
+    AliITSvPPRasymmFMD *ITS = new AliITSvPPRasymmFMD("ITS","ITS PPR");
+    ITS->SetMinorVersion(2);
+    ITS->SetReadDet(kTRUE);
+    ITS->SetThicknessDet1(200.);
+    ITS->SetThicknessDet2(200.);
+    ITS->SetThicknessChip1(200.);
+    ITS->SetThicknessChip2(200.);
+    ITS->SetRails(0);
+    ITS->SetCoolingFluid(1);
     ITS->SetEUCLID(0);
 
   }
@@ -193,8 +211,8 @@ void Config()
 
     AliTPC *TPC  = new AliTPCv2("TPC","Default");
     // All sectors included 
-    TPC->SetSecAL(-1);
-    TPC->SetSecAU(-1);
+    //TPC->SetSecAL(-1);
+    //TPC->SetSecAU(-1);
 
   }