]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliSimulation.cxx
Temporary fix (till next root version) by A.Gheata. Rebuilding of voxelization after...
[u/mrichter/AliRoot.git] / STEER / AliSimulation.cxx
index 82c32174a8e0d3047293a803010a6ad677ae2909..c9726ee33535137d59215f79be4111cec589330c 100644 (file)
@@ -668,6 +668,21 @@ Bool_t AliSimulation::RunSimulation(Int_t nEvents)
   // Export (mis)aligned geometry 
   if (gGeoManager) gGeoManager->Export("misaligned_geometry.root");
 
+  // Temporary fix by A.Gheata
+  // Could be removed with the next Root version (>5.11)
+  if (gGeoManager) {
+    TIter next(gGeoManager->GetListOfVolumes());
+    TGeoVolume *vol;
+    while ((vol = (TGeoVolume *)next())) {
+      if (vol->GetVoxels()) {
+       if (vol->GetVoxels()->NeedRebuild()) {
+         vol->GetVoxels()->Voxelize();
+         vol->FindOverlaps();
+       }
+      }
+    }
+  }
+
 //   AliRunLoader* runLoader = gAlice->GetRunLoader();
 //   if (!runLoader) {
 //     AliError(Form("gAlice has no run loader object. "