#include <G4tgbPlaceParamCircle.hh>
|
| | G4tgbPlaceParamCircle (G4tgrPlaceParameterisation *) |
| | ~G4tgbPlaceParamCircle () |
| void | ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const |
| | G4tgbPlaceParameterisation (G4tgrPlaceParameterisation *tgrParam) |
| virtual | ~G4tgbPlaceParameterisation () |
| void | CheckNExtraData (G4tgrPlaceParameterisation *tgrParam, G4int nWcheck, WLSIZEtype st, const G4String &methodName) |
| G4int | GetNCopies () const |
| EAxis | GetAxis () const |
| | G4VPVParameterisation ()=default |
| virtual | ~G4VPVParameterisation ()=default |
| virtual G4VSolid * | ComputeSolid (const G4int no, G4VPhysicalVolume *pv) |
| virtual G4Material * | ComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=nullptr) |
| virtual G4bool | IsNested () const |
| virtual G4VVolumeMaterialScanner * | GetMaterialScanner () |
| virtual void | ComputeDimensions (G4Box &, const G4int, const G4VPhysicalVolume *) const |
| virtual void | ComputeDimensions (G4Tubs &, const G4int, const G4VPhysicalVolume *) const |
| virtual void | ComputeDimensions (G4Trd &, const G4int, const G4VPhysicalVolume *) const |
| virtual void | ComputeDimensions (G4Trap &, const G4int, const G4VPhysicalVolume *) const |
| virtual void | ComputeDimensions (G4Cons &, const G4int, const G4VPhysicalVolume *) const |
| virtual void | ComputeDimensions (G4Sphere &, const G4int, const G4VPhysicalVolume *) const |
| virtual void | ComputeDimensions (G4Orb &, const G4int, const G4VPhysicalVolume *) const |
| virtual void | ComputeDimensions (G4Ellipsoid &, const G4int, const G4VPhysicalVolume *) const |
| virtual void | ComputeDimensions (G4Torus &, const G4int, const G4VPhysicalVolume *) const |
| virtual void | ComputeDimensions (G4Para &, const G4int, const G4VPhysicalVolume *) const |
| virtual void | ComputeDimensions (G4Polycone &, const G4int, const G4VPhysicalVolume *) const |
| virtual void | ComputeDimensions (G4Polyhedra &, const G4int, const G4VPhysicalVolume *) const |
| virtual void | ComputeDimensions (G4Hype &, const G4int, const G4VPhysicalVolume *) const |
Definition at line 46 of file G4tgbPlaceParamCircle.hh.
◆ G4tgbPlaceParamCircle()
Definition at line 45 of file G4tgbPlaceParamCircle.cc.
48{
49
51 {
53 theCircleAxis =
56
58 if(zaxis.cross(theCircleAxis).mag() > 1.E-6)
59 {
60 theDirInPlane = zaxis.cross(theCircleAxis);
61 }
62 else
63 {
64 theDirInPlane = theCircleAxis.cross(
G4ThreeVector(0., -1., 0.));
65 }
67 }
68 else
69 {
72 {
76 }
78 {
82 }
84 {
88 }
89 }
90
91 if(theCircleAxis.mag() == 0.)
92 {
93 G4Exception(
"G4tgbPlaceParamCircle::G4tgbPlaceParamCircle()",
95 }
96 theCircleAxis /= theCircleAxis.mag();
97
99
104
105#ifdef G4VERBOSE
107 {
108 G4cout <<
" G4tgbPlaceParamCircle::G4tgbPlaceParamCircle():" <<
G4endl
111 << theStep <<
G4endl <<
" offset - " << theOffset <<
G4endl
112 <<
" radius - " << theRadius <<
G4endl <<
" circle axis - "
113 << theCircleAxis <<
G4endl <<
" dir in plane - " << theDirInPlane
115 }
116#endif
117}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
CLHEP::Hep3Vector G4ThreeVector
G4GLOB_DLL std::ostream G4cout
G4tgbPlaceParameterisation(G4tgrPlaceParameterisation *tgrParam)
void CheckNExtraData(G4tgrPlaceParameterisation *tgrParam, G4int nWcheck, WLSIZEtype st, const G4String &methodName)
static G4int GetVerboseLevel()
std::vector< G4double > GetExtraData() const
const G4String & GetParamType() const
◆ ~G4tgbPlaceParamCircle()
| G4tgbPlaceParamCircle::~G4tgbPlaceParamCircle |
( |
| ) |
|
◆ ComputeTransformation()
Computes the transformation for the 'pv' volume and replica number 'no'. It is a required method, as it is the reason for this class.
- Parameters
-
| [in] | pv | Pointer to the current physical volume. |
| [in] | no | The copy number index. |
Reimplemented from G4tgbPlaceParameterisation.
Definition at line 120 of file G4tgbPlaceParamCircle.cc.
122{
123 G4double posi = theOffset + copyNo * theStep;
125 origin.
rotate(posi, theCircleAxis);
126
127
129 rm.
rotate(-posi, theCircleAxis);
130
131
132 physVol->SetTranslation(origin);
134 if(pvRm == nullptr)
135 {
137 }
139 physVol->SetRotation(pvRm);
140 physVol->SetCopyNo(copyNo);
141
142#ifdef G4VERBOSE
144 {
145 G4cout <<
" G4tgbPlaceParamCircle::ComputeTransformation():"
148 <<
" rotation-matrix - " << *pvRm <<
G4endl;
149 }
150#endif
151}
CLHEP::HepRotation G4RotationMatrix
Hep3Vector & rotate(double, const Hep3Vector &)
HepRotation & rotate(double delta, const Hep3Vector &axis)
G4RotationMatrix * theRotationMatrix
The documentation for this class was generated from the following files: