]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TGeant4/TG4XMLGeometryGenerator.cxx
new class TG4ListTreeFrame description added
[u/mrichter/AliRoot.git] / TGeant4 / TG4XMLGeometryGenerator.cxx
index a852c43fd7d16dd5a2993054dad0e74ea97b195c..86895dc41b4160dd92f7a8dfc588412aea8d88a9 100644 (file)
@@ -200,15 +200,15 @@ void TG4XMLGeometryGenerator::ProcessLogicalVolume(G4LogicalVolume* lv)
     if (pvd) {
       // placement
       G4ThreeVector  position = vpvd->GetTranslation();
-      const G4RotationMatrix* kMatrix = vpvd->GetObjectRotation();      
 
-      if (!kMatrix) {
+      if (!vpvd->GetRotation()) {
        fConvertor->WritePosition(lvName, position);
         // if volume is not leaf node place its logical volume
         if (nd>0) 
          fConvertor->WritePosition(compName, position);
       }          
       else {  
+        const G4RotationMatrix* kMatrix = vpvd->GetObjectRotation();      
        fConvertor->WritePositionWithRotation(lvName, position, kMatrix);
         if (nd>0) 
           fConvertor->WritePositionWithRotation(compName, position, kMatrix);