Message: Inverse of G4RotationMatrix in ComputeTransformation? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Inverse of G4RotationMatrix in ComputeTransformation? 

Forum: Geometry
Date: 04 Oct, 2016
From: Batom <Batom>

Hi All,

Which is wrong in following declaration on "ComputeTransformation" :
.......................................
   //attention : clhep Euler constructor build inverse matrix !
   G4RotationMatrix rotm1Inv = G4RotationMatrix(phi_euler,theta_euler,psi_euler);
   G4RotationMatrix rotm1 = rotm1Inv.inverse();

   physVol->SetRotation(rotm1); 
........................................

When compile example, an error printed:

MyParameterisation.cc:179: error: no matching function for call to G4VPhysicalVolume::SetRotation(G4RotationMatrix&)

Thank you for your help!

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Inverse of G4RotationMatrix in ComputeTransformation?   (John Apostolakis - 05 Oct, 2016)
 Add Message Add Message
to: "Inverse of G4RotationMatrix in ComputeTransformation?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]