Option to run with TGeo added.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Jan 2004 17:04:28 +0000 (17:04 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Jan 2004 17:04:28 +0000 (17:04 +0000)
TFluka/macro/FlukaConfig.C

index f535ebd..9f420bb 100644 (file)
@@ -9,13 +9,18 @@ void Config()
   
   // libraries required by fluka21
 
-  char * gvmc = gSystem->ExpandPathName("$(G4VMC)/examples/macro/g4libs.C");
-  gROOT->LoadMacro(gvmc);
-  g4libs();
+  if (!gSystem->Getenv("WITH_ROOT")) {
+     cout << "=== RUNNING TFluka with FLUGG ===\n";
+     char * gvmc = gSystem->ExpandPathName("$(G4VMC)/examples/macro/g4libs.C");
+     gROOT->LoadMacro(gvmc);
+     g4libs();
 
-  cout << "\t* Loading Flugg..." << endl;  
-  gSystem->Load("libFlugg");    
-  
+     cout << "\t* Loading Flugg..." << endl;  
+     gSystem->Load("libFlugg");    
+  } else {
+     cout << "=== RUNNING TFluka with TGeo ===\n";
+     gSystem->Load("libGeom");
+  }     
   cout << "\t* Loading TFluka..." << endl;  
   gSystem->Load("libTFluka");