Root6-enabled version
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Oct 2013 09:45:15 +0000 (09:45 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Oct 2013 09:45:15 +0000 (09:45 +0000)
test/pploadlibs/Config.C
test/pploadlibs/aod.C [new file with mode: 0644]
test/pploadlibs/rec.C
test/pploadlibs/runcheck.C [new file with mode: 0644]
test/pploadlibs/runrec.C [new file with mode: 0644]
test/pploadlibs/runsim.C [new file with mode: 0644]
test/pploadlibs/runtest.sh
test/pploadlibs/sim.C

index 13b3c54..35cc519 100644 (file)
@@ -2,53 +2,6 @@
 // Configuration for the Physics Data Challenge 2006
 //
 
-// One can use the configuration macro in compiled mode by
-// root [0] gSystem->Load("libgeant321");
-// root [0] gSystem->SetIncludePath("-I$ROOTSYS/include -I$ALICE_ROOT/include\
-//                   -I$ALICE_ROOT -I$ALICE/geant3/TGeant3");
-// root [0] .x grun.C(1,"Config_PDC06.C++")
-
-#if !defined(__CINT__) || defined(__MAKECINT__)
-#include <Riostream.h>
-#include <TRandom.h>
-#include <TDatime.h>
-#include <TSystem.h>
-#include <TVirtualMC.h>
-#include <TGeant3TGeo.h>
-#include "EVGEN/AliGenCocktail.h"
-#include "EVGEN/AliGenParam.h"
-#include "EVGEN/AliGenMUONlib.h"
-#include "STEER/AliRunLoader.h"
-#include "STEER/AliRun.h"
-#include "STEER/AliConfig.h"
-#include "PYTHIA6/AliDecayerPythia.h"
-#include "PYTHIA6/AliGenPythia.h"
-#include "STEER/AliMagF.h"
-#include "STRUCT/AliBODY.h"
-#include "STRUCT/AliMAG.h"
-#include "STRUCT/AliABSOv3.h"
-#include "STRUCT/AliDIPOv3.h"
-#include "STRUCT/AliHALLv3.h"
-#include "STRUCT/AliFRAMEv2.h"
-#include "STRUCT/AliSHILv3.h"
-#include "STRUCT/AliPIPEv3.h"
-#include "ITS/AliITSgeom.h"
-#include "ITS/AliITSv11.h"
-#include "TPC/AliTPCv2.h"
-#include "TOF/AliTOFv6T0.h"
-#include "HMPID/AliHMPIDv3.h"
-#include "ZDC/AliZDCv4.h"
-#include "TRD/AliTRDv1.h"
-#include "FMD/AliFMDv1.h"
-#include "MUON/AliMUONv1.h"
-#include "PHOS/AliPHOSv1.h"
-#include "PMD/AliPMDv1.h"
-#include "T0/AliT0v1.h"
-#include "EMCAL/AliEMCALv2.h"
-#include "ACORDE/AliACORDEv1.h"
-#include "VZERO/AliVZEROv7.h"
-#endif
-
 
 enum PDC06Proc_t 
 {
@@ -149,15 +102,6 @@ void Config()
   gRandom->SetSeed(seed);
   cerr<<"Seed for random number generation= "<<seed<<endl; 
 
-  // libraries required by geant321
-#if defined(__CINT__)
-  gSystem->Load("liblhapdf");
-  gSystem->Load("libEGPythia6");
-  gSystem->Load("libpythia6");
-  gSystem->Load("libAliPythia6");
-  gSystem->Load("libgeant321");
-#endif
-
   new TGeant3TGeo("C++ Interface to Geant3");
 
   //=======================================================================
@@ -190,35 +134,35 @@ void Config()
   // --- All positions are in cm, angles in degrees, and P and E in GeV
 
 
-    gMC->SetProcess("DCAY",1);
-    gMC->SetProcess("PAIR",1);
-    gMC->SetProcess("COMP",1);
-    gMC->SetProcess("PHOT",1);
-    gMC->SetProcess("PFIS",0);
-    gMC->SetProcess("DRAY",0);
-    gMC->SetProcess("ANNI",1);
-    gMC->SetProcess("BREM",1);
-    gMC->SetProcess("MUNU",1);
-    gMC->SetProcess("CKOV",1);
-    gMC->SetProcess("HADR",1);
-    gMC->SetProcess("LOSS",2);
-    gMC->SetProcess("MULS",1);
-    gMC->SetProcess("RAYL",1);
+    TVirtualMC::GetMC()->SetProcess("DCAY",1);
+    TVirtualMC::GetMC()->SetProcess("PAIR",1);
+    TVirtualMC::GetMC()->SetProcess("COMP",1);
+    TVirtualMC::GetMC()->SetProcess("PHOT",1);
+    TVirtualMC::GetMC()->SetProcess("PFIS",0);
+    TVirtualMC::GetMC()->SetProcess("DRAY",0);
+    TVirtualMC::GetMC()->SetProcess("ANNI",1);
+    TVirtualMC::GetMC()->SetProcess("BREM",1);
+    TVirtualMC::GetMC()->SetProcess("MUNU",1);
+    TVirtualMC::GetMC()->SetProcess("CKOV",1);
+    TVirtualMC::GetMC()->SetProcess("HADR",1);
+    TVirtualMC::GetMC()->SetProcess("LOSS",2);
+    TVirtualMC::GetMC()->SetProcess("MULS",1);
+    TVirtualMC::GetMC()->SetProcess("RAYL",1);
 
     Float_t cut = 1.e-3;        // 1MeV cut by default
     Float_t tofmax = 1.e10;
 
-    gMC->SetCut("CUTGAM", cut);
-    gMC->SetCut("CUTELE", cut);
-    gMC->SetCut("CUTNEU", cut);
-    gMC->SetCut("CUTHAD", cut);
-    gMC->SetCut("CUTMUO", cut);
-    gMC->SetCut("BCUTE",  cut); 
-    gMC->SetCut("BCUTM",  cut); 
-    gMC->SetCut("DCUTE",  cut); 
-    gMC->SetCut("DCUTM",  cut); 
-    gMC->SetCut("PPCUTM", cut);
-    gMC->SetCut("TOFMAX", tofmax); 
+    TVirtualMC::GetMC()->SetCut("CUTGAM", cut);
+    TVirtualMC::GetMC()->SetCut("CUTELE", cut);
+    TVirtualMC::GetMC()->SetCut("CUTNEU", cut);
+    TVirtualMC::GetMC()->SetCut("CUTHAD", cut);
+    TVirtualMC::GetMC()->SetCut("CUTMUO", cut);
+    TVirtualMC::GetMC()->SetCut("BCUTE",  cut); 
+    TVirtualMC::GetMC()->SetCut("BCUTM",  cut); 
+    TVirtualMC::GetMC()->SetCut("DCUTE",  cut); 
+    TVirtualMC::GetMC()->SetCut("DCUTM",  cut); 
+    TVirtualMC::GetMC()->SetCut("PPCUTM", cut);
+    TVirtualMC::GetMC()->SetCut("TOFMAX", tofmax); 
 
 
 
@@ -243,7 +187,7 @@ void Config()
     break;
   }
   decayer->Init();
-  gMC->SetExternalDecayer(decayer);
+  TVirtualMC::GetMC()->SetExternalDecayer(decayer);
 
   //=========================//
   // Generator Configuration //
diff --git a/test/pploadlibs/aod.C b/test/pploadlibs/aod.C
new file mode 100644 (file)
index 0000000..ed9687f
--- /dev/null
@@ -0,0 +1,12 @@
+void aod(){
+
+  gROOT->Macro("loadlibs.C");
+
+  gSystem->Load("libANALYSIS");
+  gSystem->Load("libANALYSISalice");
+  gSystem->Load("libCORRFW");
+  gSystem->Load("libPWGHFbase");
+  gSystem->Load("libPWGmuon");
+
+  gROOT->Macro("${ALICE_ROOT}/STEER/CreateAODfromESD.C");
+}
index af8ad81..f566662 100644 (file)
@@ -1,9 +1,10 @@
 void rec() {
-  gROOT->Macro("loadlibsrec.C");
   new AliRun("gAlice","The ALICE Off-line Simulation Framework");
 
   AliReconstruction reco;
 
+  reco.SetRunReconstruction("ALL");
+
   reco.SetWriteESDfriend();
   reco.SetWriteAlignmentData();
 
diff --git a/test/pploadlibs/runcheck.C b/test/pploadlibs/runcheck.C
new file mode 100644 (file)
index 0000000..a7f4dbf
--- /dev/null
@@ -0,0 +1,4 @@
+void runcheck(){
+  gROOT->Macro("loadlibsrec.C");
+  gROOT->Macro("${ALICE_ROOT}/STEER/CheckESD.C");
+}
diff --git a/test/pploadlibs/runrec.C b/test/pploadlibs/runrec.C
new file mode 100644 (file)
index 0000000..2b98efa
--- /dev/null
@@ -0,0 +1,4 @@
+void runrec(){
+  gROOT->Macro("loadlibsrec.C");
+  gROOT->Macro("rec.C");
+}
diff --git a/test/pploadlibs/runsim.C b/test/pploadlibs/runsim.C
new file mode 100644 (file)
index 0000000..a569936
--- /dev/null
@@ -0,0 +1,7 @@
+void runsim(){
+  gROOT->Macro("loadlibssim.C");
+
+  gSystem->Load("libgeant321");
+
+  gROOT->Macro("sim.C");
+}
index c8822eb..11681db 100755 (executable)
@@ -7,14 +7,14 @@ else
     REXE=root.exe
 fi
 
-rm -rf *.root *.dat *.log fort* hlt hough raw* *~
+rm -rf *.root *.dat *.log fort* hlt hough raw* *~ GRP
 
-${REXE} -b -q sim.C      2>&1 | tee sim.log
+${REXE} -b -q runsim.C      2>&1 | tee sim.log
 mv syswatch.log simwatch.log
-${REXE} -b -q rec.C      2>&1 | tee rec.log
+${REXE} -b -q runrec.C      2>&1 | tee rec.log
 mv syswatch.log recwatch.log
-${REXE} -b -q ${ALICE_ROOT}/STEER/CreateAODfromESD.C 2>&1 | tee aod.log
-
+${REXE} -b -q aod.C 2>&1 | tee aod.log
+${REXE} -b -q runcheck.C 2>&1 | tee check.log
 
 
 
index a384969..cdc076a 100644 (file)
@@ -1,14 +1,15 @@
 void sim(Int_t nev=20) {
-  gROOT->Macro("loadlibssim.C");
   new AliRun("gAlice","The ALICE Off-line Simulation Framework");
 
   AliSimulation simulator;
   simulator.SetMakeSDigits("TRD TOF PHOS HMPID EMCAL MUON FMD ZDC PMD T0 VZERO");
-  simulator.SetMakeDigitsFromHits("ITS TPC");
+    simulator.SetMakeDigitsFromHits("ITS TPC");
  
   simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
   simulator.SetSpecificStorage("GRP/GRP/Data",
                               Form("local://%s",gSystem->pwd()));
+  simulator.SetRunQA(":");
+
   TStopwatch timer;
   timer.Start();
   simulator.Run(nev);