#include <G4tgbPlaceParamCircle.hh>
|
| G4tgbPlaceParamCircle (G4tgrPlaceParameterisation *) |
|
| ~G4tgbPlaceParamCircle () |
|
void | ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const |
|
| G4tgbPlaceParameterisation (G4tgrPlaceParameterisation *tgrParam) |
|
virtual | ~G4tgbPlaceParameterisation () |
|
virtual void | ComputeTransformation (const G4int, G4VPhysicalVolume *) const |
|
void | CheckNExtraData (G4tgrPlaceParameterisation *tgrParam, G4int nWcheck, WLSIZEtype st, const G4String &methodName) |
|
G4int | GetNCopies () const |
|
EAxis | GetAxis () const |
|
| G4VPVParameterisation () |
|
virtual | ~G4VPVParameterisation () |
|
virtual void | ComputeTransformation (const G4int, G4VPhysicalVolume *) const =0 |
|
virtual G4VSolid * | ComputeSolid (const G4int, G4VPhysicalVolume *) |
|
virtual G4Material * | ComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0) |
|
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 (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 52 of file G4tgbPlaceParamCircle.hh.
◆ G4tgbPlaceParamCircle()
Definition at line 51 of file G4tgbPlaceParamCircle.cc.
54{
55
57 {
62
64 if( zaxis.cross(theCircleAxis).mag() > 1.E-6 )
65 {
66 theDirInPlane = zaxis.
cross(theCircleAxis);
67 }
68 else
69 {
71 }
73 }
74 else
75 {
89 }
90 }
91
92 if( theCircleAxis.
mag() == 0. )
93 {
94 G4Exception(
"G4tgbPlaceParamCircle::G4tgbPlaceParamCircle()",
96 }
97 theCircleAxis /= theCircleAxis.
mag();
98
100
105
106#ifdef G4VERBOSE
108 {
109 G4cout <<
" G4tgbPlaceParamCircle::G4tgbPlaceParamCircle():" <<
G4endl
112 <<
" step - " << theStep <<
G4endl
113 <<
" offset - " << theOffset <<
G4endl
114 <<
" radius - " << theRadius <<
G4endl
115 <<
" circle axis - " << theCircleAxis <<
G4endl
116 <<
" dir in plane - " << theDirInPlane <<
G4endl;
117 }
118#endif
119}
CLHEP::Hep3Vector G4ThreeVector
G4DLLIMPORT std::ostream G4cout
Hep3Vector cross(const Hep3Vector &) const
void CheckNExtraData(G4tgrPlaceParameterisation *tgrParam, G4int nWcheck, WLSIZEtype st, const G4String &methodName)
static G4int GetVerboseLevel()
std::vector< G4double > GetExtraData() const
const G4String & GetParamType() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ ~G4tgbPlaceParamCircle()
G4tgbPlaceParamCircle::~G4tgbPlaceParamCircle |
( |
| ) |
|
◆ ComputeTransformation()
Reimplemented from G4tgbPlaceParameterisation.
Definition at line 123 of file G4tgbPlaceParamCircle.cc.
125{
126 G4double posi = theOffset + copyNo*theStep;
128 origin.
rotate( posi, theCircleAxis );
129
130
132 rm.
rotate( -posi, theCircleAxis );
133
134
137 if( pvRm == 0 )
138 {
140 }
144
145#ifdef G4VERBOSE
147 {
148 G4cout <<
" G4tgbPlaceParamCircle::ComputeTransformation():"
151 <<
" centre - " << origin <<
G4endl
152 <<
" rotation-matrix - " << *pvRm <<
G4endl;
153 }
154#endif
155}
CLHEP::HepRotation G4RotationMatrix
Hep3Vector & rotate(double, const Hep3Vector &)
HepRotation & rotate(double delta, const Hep3Vector &axis)
const G4RotationMatrix * GetRotation() const
virtual void SetCopyNo(G4int CopyNo)=0
const G4String & GetName() const
void SetTranslation(const G4ThreeVector &v)
void SetRotation(G4RotationMatrix *)
G4RotationMatrix * theRotationMatrix
The documentation for this class was generated from the following files: