fClusterMatrix = new TGeoHMatrix*[fNSector];
if (fGlobalMatrix) delete [] fGlobalMatrix;
fGlobalMatrix = new TGeoHMatrix*[fNSector];
+ for (Int_t isec=0; isec<fNSector; isec++) {
+ fGlobalMatrix[isec] = 0;
+ fClusterMatrix[isec]= 0;
+ fTrackingMatrix[isec]=0;
+ }
//
for (Int_t isec=0; isec<fNSector; isec++) {
fGlobalMatrix[isec] = 0;
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);