Geometry initialisation outside loop.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 4 Jul 2004 11:58:49 +0000 (11:58 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 4 Jul 2004 11:58:49 +0000 (11:58 +0000)
TFluka/TFlukaGeo.cxx

index 26f286c..64adb00 100644 (file)
@@ -248,10 +248,11 @@ void   TFluka::ProcessRun(Int_t nevent) {
     cout << "\t* Calling flukam again..." << endl;
   }
 
-  Int_t todo = TMath::Abs(nevent);
 
+  fApplication->InitGeometry();
+
+  Int_t todo = TMath::Abs(nevent);
   for (Int_t ev = 0; ev < todo; ev++) {
-      fApplication->InitGeometry();
       fApplication->BeginEvent();
       ProcessEvent();
   }