46 for (G4int i = 0; i < 4; i++)
47 {xyzt[0] = xyztIn[i] ? -1 : 1;}
49 G4String newName =
"Flip(";
50 for (
const auto& v : xyzt)
51 {newName += std::to_string(v < 0);}
67 virtual void ApplyX(G4int& x)
const {x *= xyzt[0];}
68 virtual void ApplyY(G4int& y)
const {y *= xyzt[1];}
69 virtual void ApplyZ(G4int& z)
const {z *= xyzt[2];}
70 virtual void ApplyT(G4int& t)
const {t *= xyzt[3];}
72 virtual void TransformLimits(G4double& xMin, G4double& xMax,
73 G4double& yMin, G4double& yMax,
74 G4double& zMin, G4double& zMax,
75 G4double& tMin, G4double& tMax)
const
78 {std::swap(xMin, xMax);}
80 {std::swap(yMin, yMax);}
82 {std::swap(zMin, zMax);}
84 {std::swap(tMin, tMax);}
88 std::array<G4int,4> xyzt;