![]() |
Belle II Software
release-05-02-19
|
Triangular prism. More...
#include <G4TriangularPrism.h>
Public Member Functions | |
G4TriangularPrism (const G4String &name, double r1, double phi1, double r2, double phi2, G4double halfZlen) | |
Constructor. More... | |
G4TriangularPrism (const G4TriangularPrism &)=delete | |
Copy constructor (disabled). | |
G4TriangularPrism & | operator= (const G4TriangularPrism &)=delete |
Operator = (disabled). | |
~G4TriangularPrism () | |
Destructor. More... | |
G4VSolid * | getSolid () |
Get solid. More... | |
Private Attributes | |
G4Box * | m_box |
Box. | |
G4Tubs * | m_tube |
Tube. | |
G4IntersectionSolid * | m_is |
Intersection. | |
Triangular prism.
Definition at line 35 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 23 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 79 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 79 of file G4TriangularPrism.h.