Belle II Software development
|
Triangular prism. More...
#include <G4TriangularPrism.h>
Public Member Functions | |
G4TriangularPrism (const G4String &name, double r1, double phi1, double r2, double phi2, G4double halfZlen) | |
Constructor. | |
G4TriangularPrism (const G4TriangularPrism &)=delete | |
Copy constructor (disabled). | |
G4TriangularPrism & | operator= (const G4TriangularPrism &)=delete |
Operator = (disabled). | |
~G4TriangularPrism () | |
Destructor. | |
G4VSolid * | getSolid () |
Get solid. | |
Private Attributes | |
G4Box * | m_box |
Box. | |
G4Tubs * | m_tube |
Tube. | |
G4IntersectionSolid * | m_is |
Intersection. | |
Triangular prism.
Definition at line 25 of file G4TriangularPrism.h.
G4TriangularPrism | ( | const G4String & | name, |
double | r1, | ||
double | phi1, | ||
double | r2, | ||
double | phi2, | ||
G4double | halfZlen | ||
) |
Constructor.
[in] | name | Name of the volume. |
[in] | r1 | First point radius. |
[in] | phi1 | First point angle. |
[in] | r2 | Second point radius. |
[in] | phi2 | Second point angle. |
[in] | halfZlen | Half of Z length. |
Coordinates of the third point are (0, 0)
Definition at line 21 of file G4TriangularPrism.cc.
~G4TriangularPrism | ( | ) |
Destructor.
The resulting solid m_is (access by getSolid()) is not deleted here. It is meant to be deleted by Geant.
Definition at line 77 of file G4TriangularPrism.cc.
|
inline |
Get solid.
The resulting G4VSolid* is allocated via operator new and must be deleted when is is not necessary. If it is used in Geant geometry, do not delete it.
Definition at line 69 of file G4TriangularPrism.h.
|
private |
Box.
Definition at line 79 of file G4TriangularPrism.h.
|
private |
Definition at line 89 of file G4TriangularPrism.h.
|
private |
Tube.
Definition at line 84 of file G4TriangularPrism.h.