Geant4 Version:
Operating System:
Compiler/Version:
CMake Version:
Hi, I write the following code:
G4double phi = 45* deg;
G4ThreeVector u = G4ThreeVector(1, 0, 0);
G4ThreeVector v=G4ThreeVector(0, 1, 0).rotateX(phi);
G4ThreeVector w=G4ThreeVector(0, 0, 1).rotateX(phi);
G4RotationMatrix *rotm1 = new G4RotationMatrix(u, v, w);///////old
G4ThreeVector position1 = 50 * w;
G4Box* det_box
= new G4Box("det_box",det_xx/2.,det_yy/2.,0.001*mm);
G4LogicalVolume* det_log= new G4LogicalVolume(det_box,
Vaccum,"det_log",0,0,0);
new G4PVPlacement(rotm1, position1,
det_log, // logical volume
"det_phys", // name
experimentalHall_log, // mother volume
false, // no boolean operation
0); // copy number