Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
soft:geant4 [2021/02/05 06:19] – created Ce Zhang | soft:geant4 [2021/02/05 07:39] (current) – Ce Zhang | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Rotation in Geant-4 ====== | ====== Rotation in Geant-4 ====== | ||
+ | |||
+ | Two main ways in the Geant-4 to apply the rotation: G4Rotation matrix and the HepRotation. Here the G4RotationMatrix.hh will be used. | ||
+ | |||
+ | Main reference | ||
+ | |||
+ | - [[http:// | ||
+ | - [[https:// | ||
+ | - [[http:// | ||
+ | |||
In the Geometry.cc, | In the Geometry.cc, | ||
Line 10: | Line 19: | ||
< | < | ||
+ | |||
+ | #include " | ||
+ | |||
Geometry:: | Geometry:: | ||
G4Material* material, G4VPhysicalVolume* mtrVol, | G4Material* material, G4VPhysicalVolume* mtrVol, | ||
const G4ThreeVector& | const G4ThreeVector& | ||
</ | </ |