]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCParam.cxx
Fixing warning (Marek)
[u/mrichter/AliRoot.git] / TPC / AliTPCParam.cxx
index 5f7b55442f53635fc143d795ac63fdb5f2aa4118..7835205c877c843f864c6761051c8806845b5248 100644 (file)
@@ -656,7 +656,10 @@ Bool_t AliTPCParam::ReadGeoMatrices(){
     const char *path = pne->GetTitle();
     if (!gGeoManager->cd(path)) return kFALSE;
     TGeoHMatrix *m = gGeoManager->GetCurrentMatrix();
+    // Since GEANT4 does not allow reflections, in this case the reflection
+    // component if the matrix is embedded by TGeo inside TGeoScaledShape
+    if (gGeoManager->GetCurrentVolume()->GetShape()->IsReflected()) 
+       m->ReflectZ(kFALSE, kTRUE);
     //
     TGeoRotation mchange; 
     mchange.RotateY(90); mchange.RotateX(90);