]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding comments; in Config.C added a variable g4libsMacro to make easier to
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Jun 2010 14:35:30 +0000 (14:35 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Jun 2010 14:35:30 +0000 (14:35 +0000)
customize the path to g4libs.C macro

test/vmctest/production/Config.C
test/vmctest/production/rec.C
test/vmctest/production/sim.C
test/vmctest/production/simrun.C

index ee8f079e617df654663edcd0cca3495fed5ab41e..97e336ce83065320f15c04f9385a799b20e64f5b 100644 (file)
@@ -1,13 +1,9 @@
+// $Id$
 //
 //
-// Configuration for the first physics production 2008
+// Configuration for the Geant4 production 2010
+// By E. Sicking, CERN
 //
 
 //
 
-// 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.C++")
-
 #if !defined(__CINT__) || defined(__MAKECINT__)
 #include <Riostream.h>
 #include <TRandom.h>
 #if !defined(__CINT__) || defined(__MAKECINT__)
 #include <Riostream.h>
 #include <TRandom.h>
@@ -388,9 +384,11 @@ void Config()
   // Load Geant4 + Geant4 VMC libraries
   //
   if (gClassTable->GetID("TGeant4") == -1) {
   // Load Geant4 + Geant4 VMC libraries
   //
   if (gClassTable->GetID("TGeant4") == -1) {
+    TString g4libsMacro = "$G4INSTALL/macro/g4libs.C";
+    //TString g4libsMacro = "$ALICE/geant4_vmc/examples/macro/g4libs.C";
     // Load Geant4 libraries 
     // Load Geant4 libraries 
-    if (!gInterpreter->IsLoaded("$G4INSTALL/macro/g4libs.C")) {
-      gROOT->LoadMacro("$G4INSTALL/macro/g4libs.C");
+    if (!gInterpreter->IsLoaded(g4libsMacro.Data())) {
+      gROOT->LoadMacro(g4libsMacro.Data());
       gInterpreter->ProcessLine("g4libs()");
     }
   }    
       gInterpreter->ProcessLine("g4libs()");
     }
   }    
index 3149860af135729ce214a40daec9d27df6c4f10e..8cc101ab470234b1e6a3967e1c9674fc1fba44c8 100644 (file)
@@ -1,3 +1,5 @@
+// $Id$\r
+\r
 void rec() {\r
 \r
   AliReconstruction reco;\r
 void rec() {\r
 \r
   AliReconstruction reco;\r
index a36f8c71f74e6681b2d2e8e3d1ecb2946eae8d9a..83e8f1cde7c0bdbf59d4bdfb65dced705fa46fe7 100644 (file)
@@ -1,3 +1,5 @@
+// $Id$\r
+\r
 void sim(Int_t nev=20) {\r
 \r
   AliSimulation simulator;\r
 void sim(Int_t nev=20) {\r
 \r
   AliSimulation simulator;\r
index 65ada2c883c251e956fbe56f869dcff52c768963..5930f580c43900f611ed7551c56e40dd22478276 100644 (file)
@@ -1,8 +1,12 @@
+// $Id$\r
+//\r
+// Set job and simulation variables as :\r
+// root.exe -b -q simrun.C  --run <x> --event <y> --process <kPythia6/kPhojet/kPythia6ATLAS_Flat/kPythia6D6T> --field <kNoField/k5kG> --energy <900/2360/10000> --physicslist <QGSP_BERT_CHIPS[_OPTICAL]/CHIPS[_OPTICAL]/QGSP_BERT_EMV[_OPTICAL]>\r
+//\r
+// By E. Sicking, CERN\r
+\r
 // #define VERBOSEARGS\r
 // simrun.C\r
 // #define VERBOSEARGS\r
 // simrun.C\r
-{\r
-// set job and simulation variables as :\r
-// root.exe -b -q simrun.C  --run <x> --event <y> --process <kPythia6/kPhojet/kPythia6ATLAS_Flat/kPythia6D6T> --field <kNoField/k5kG> --energy <900/2360/10000> --physicslist <QGSP_BERT_CHIPS/CHIPS/QGSP_BERT_EMV>\r
 \r
   int nrun = 0;\r
   int nevent = 0;\r
 \r
   int nrun = 0;\r
   int nevent = 0;\r