VGM implementation for Geant4 trap solid.
More...
#include <Trap.h>
|
| | Trap (const std::string &name, double hz, double theta, double phi, double dy1, double dx1, double dx2, double alpha1, double dy2, double dx3, double dx4, double alpha2) |
| |
| | Trap (G4Trap *trap, G4ReflectedSolid *reflTrap=0) |
| |
| virtual | ~Trap () |
| |
| virtual std::string | Name () const |
| | Return the name of this solid.
|
| |
| virtual double | ZHalfLength () const |
| | Return the half-length along the z axis in mm.
|
| |
| virtual double | Theta () const |
| | Return the polar angle of the line joining the centres of the faces at -hz and +hz in deg.
|
| |
| virtual double | Phi () const |
| | Return the azimuthal angle of the line joining the centres of the faces at -hz and +hz in deg.
|
| |
| virtual double | YHalfLengthMinusZ () const |
| | Return the half-length along y of the face at -hz in mm.
|
| |
| virtual double | XHalfLengthMinusZMinusY () const |
| | Return the half-length along x of the side at -hy of the face at -hz in mm.
|
| |
| virtual double | XHalfLengthMinusZPlusY () const |
| | Return the half-length along x of the side at +hy of the face at +hz in mm.
|
| |
| virtual double | AlphaMinusZ () const |
| | Return the angle with respect to the y axis from the centre of the side at -hy to the centre at +hy of the face at -hz.
|
| |
| virtual double | YHalfLengthPlusZ () const |
| | Return the half-length along y of the face at +hz in m.
|
| |
| virtual double | XHalfLengthPlusZMinusY () const |
| | Return the half-length along x of the side at -hy of the face at +hz in m.
|
| |
| virtual double | XHalfLengthPlusZPlusY () const |
| | Return the half-length along x of the side at +hy of the face at +hz in m.
|
| |
| virtual double | AlphaPlusZ () const |
| | Return the angle with respect to the y axis from the centre of the side at -hy to the centre at +hy of the face at +hz.
|
| |
| | VTrap () |
| |
| virtual | ~VTrap () |
| |
| virtual VGM::SolidType | Type () const |
| | Return the type of this solid.
|
| |
| virtual std::ostream & | Put (std::ostream &out) const |
| | Put the printing of the solid parameters in the out stream.
|
| |
| virtual | ~ITrap () |
| |
| virtual | ~ISolid () |
| |
VGM implementation for Geant4 trap solid.
- Author
- Ivana Hrivnacova; IPN Orsay
Definition at line 32 of file Trap.h.
◆ Trap() [1/4]
| Geant4GM::Trap::Trap |
( |
const std::string & | name, |
|
|
double | hz, |
|
|
double | theta, |
|
|
double | phi, |
|
|
double | dy1, |
|
|
double | dx1, |
|
|
double | dx2, |
|
|
double | alpha1, |
|
|
double | dy2, |
|
|
double | dx3, |
|
|
double | dx4, |
|
|
double | alpha2 ) |
Standard constructor to define trap from parameters ( Note that of the 11 parameters described below, only 9 are really independent)
- Parameters
-
| hz | half-length along the z axis in mm |
| theta | polar angle of the line joining the centres of the faces at -hz and +hz in deg |
| phi | azimuthal angle of the line joining the centres of the faces at -hz and +hz in deg |
| dy1 | half-length along y of the face at -hz in mm |
| dx1 | half-length along x of the side at -hy of the face at -hz in mm |
| dx2 | half-length along x of the side at +hy of the face at +hz in mm |
| alpha1 | angle with respect to the y axis from the centre of the side at -hy to the centre at +hy of the face at -hz |
| dy2 | half-length along y of the face at +hz in mm |
| dx3 | half-length along x of the side at -hy of the face at +hz in mm |
| dx4 | half-length along x of the side at +hy of the face at +hz in mm |
| alpha2 | angle with respect to the y axis from the centre of the side at -hy to the centre at +hy of the face at +hz |
Definition at line 36 of file Trap.cxx.
◆ Trap() [2/4]
| Geant4GM::Trap::Trap |
( |
G4Trap * | trap, |
|
|
G4ReflectedSolid * | reflTrap = 0 ) |
Standard constructor to define trap from G4 object
Definition at line 85 of file Trap.cxx.
◆ ~Trap()
| Geant4GM::Trap::~Trap |
( |
| ) |
|
|
virtual |
◆ Trap() [3/4]
Protected default constructor
Definition at line 103 of file Trap.cxx.
◆ Trap() [4/4]
| Geant4GM::Trap::Trap |
( |
const Trap & | rhs | ) |
|
|
protected |
Protected copy constructor
Definition at line 109 of file Trap.cxx.
◆ Name()
| std::string Geant4GM::Trap::Name |
( |
| ) |
const |
|
virtual |
◆ ZHalfLength()
| double Geant4GM::Trap::ZHalfLength |
( |
| ) |
const |
|
virtual |
Return the half-length along the z axis in mm.
Implements VGM::ITrap.
Definition at line 125 of file Trap.cxx.
◆ Theta()
| double Geant4GM::Trap::Theta |
( |
| ) |
const |
|
virtual |
Return the polar angle of the line joining the centres of the faces at -hz and +hz in deg.
Implements VGM::ITrap.
Definition at line 131 of file Trap.cxx.
◆ Phi()
| double Geant4GM::Trap::Phi |
( |
| ) |
const |
|
virtual |
Return the azimuthal angle of the line joining the centres of the faces at -hz and +hz in deg.
Implements VGM::ITrap.
Definition at line 143 of file Trap.cxx.
◆ YHalfLengthMinusZ()
| double Geant4GM::Trap::YHalfLengthMinusZ |
( |
| ) |
const |
|
virtual |
Return the half-length along y of the face at -hz in mm.
Implements VGM::ITrap.
Definition at line 155 of file Trap.cxx.
◆ XHalfLengthMinusZMinusY()
| double Geant4GM::Trap::XHalfLengthMinusZMinusY |
( |
| ) |
const |
|
virtual |
Return the half-length along x of the side at -hy of the face at -hz in mm.
Implements VGM::ITrap.
Definition at line 164 of file Trap.cxx.
◆ XHalfLengthMinusZPlusY()
| double Geant4GM::Trap::XHalfLengthMinusZPlusY |
( |
| ) |
const |
|
virtual |
Return the half-length along x of the side at +hy of the face at +hz in mm.
Implements VGM::ITrap.
Definition at line 173 of file Trap.cxx.
◆ AlphaMinusZ()
| double Geant4GM::Trap::AlphaMinusZ |
( |
| ) |
const |
|
virtual |
Return the angle with respect to the y axis from the centre of the side at -hy to the centre at +hy of the face at -hz.
Implements VGM::ITrap.
Definition at line 182 of file Trap.cxx.
◆ YHalfLengthPlusZ()
| double Geant4GM::Trap::YHalfLengthPlusZ |
( |
| ) |
const |
|
virtual |
Return the half-length along y of the face at +hz in m.
Implements VGM::ITrap.
Definition at line 191 of file Trap.cxx.
◆ XHalfLengthPlusZMinusY()
| double Geant4GM::Trap::XHalfLengthPlusZMinusY |
( |
| ) |
const |
|
virtual |
Return the half-length along x of the side at -hy of the face at +hz in m.
Implements VGM::ITrap.
Definition at line 200 of file Trap.cxx.
◆ XHalfLengthPlusZPlusY()
| double Geant4GM::Trap::XHalfLengthPlusZPlusY |
( |
| ) |
const |
|
virtual |
Return the half-length along x of the side at +hy of the face at +hz in m.
Implements VGM::ITrap.
Definition at line 209 of file Trap.cxx.
◆ AlphaPlusZ()
| double Geant4GM::Trap::AlphaPlusZ |
( |
| ) |
const |
|
virtual |
Return the angle with respect to the y axis from the centre of the side at -hy to the centre at +hy of the face at +hz.
Implements VGM::ITrap.
Definition at line 218 of file Trap.cxx.
The documentation for this class was generated from the following files:
- packages/Geant4GM/include/Geant4GM/solids/Trap.h
- packages/Geant4GM/source/solids/Trap.cxx