VGM Version 5.3
Loading...
Searching...
No Matches
Geant4GM::Polyhedra Class Reference

VGM implementation for Geant4 polyhedra solid. More...

#include <Polyhedra.h>

Inheritance diagram for Geant4GM::Polyhedra:

Public Member Functions

 Polyhedra (const std::string &name, double sphi, double dphi, int nofSides, int nofZplanes, double *z, double *rin, double *rout)
 
 Polyhedra (G4Polyhedra *polyhedra, G4ReflectedSolid *reflPolyhedra=0)
 
virtual ~Polyhedra ()
 
virtual std::string Name () const
 Return the name of this solid.
 
virtual double StartPhi () const
 Return starting phi angle of the segment in deg.
 
virtual double DeltaPhi () const
 Return opening phi angle of the segment in deg.
 
virtual int NofSides () const
 Return number of sides of the cross section between the given phi limits.
 
virtual int NofZPlanes () const
 Return number of planes perpendicular to the z axis.
 
virtual double * ZValues () const
 Return the array of z positions of the planes in mm.
 
virtual double * InnerRadiusValues () const
 Return the array of innner radius of the planes in mm.
 
virtual double * OuterRadiusValues () const
 Return the array of outer radius of the planes in mm.
 
- Public Member Functions inherited from BaseVGM::VPolyhedra
 VPolyhedra ()
 
virtual ~VPolyhedra ()
 
virtual VGM::SolidType Type () const
 Return the type of this solid.
 
double ConvertRadiusFactor () const
 
virtual std::ostream & Put (std::ostream &out) const
 Put the printing of the solid parameters in the out stream.
 
- Public Member Functions inherited from VGM::IPolyhedra
virtual ~IPolyhedra ()
 
- Public Member Functions inherited from VGM::ISolid
virtual ~ISolid ()
 

Protected Member Functions

 Polyhedra ()
 
 Polyhedra (const Polyhedra &rhs)
 

Detailed Description

VGM implementation for Geant4 polyhedra solid.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 32 of file Polyhedra.h.

Constructor & Destructor Documentation

◆ Polyhedra() [1/4]

Geant4GM::Polyhedra::Polyhedra ( const std::string & name,
double sphi,
double dphi,
int nofSides,
int nofZplanes,
double * z,
double * rin,
double * rout )

Standard constructor to define polyhedra from parameters

Parameters
sphistarting angle of the segment in deg
dphiopening angle of the segment in deg
nofSidesnumber of sides of the cross section between the given phi limits
nofZplanesnumber of planes perpendicular to the z axis (has to be >= 2)
zarray of z positions of the planes in mm
rinarray of inside radius of the planes in mm
routarray of outside radius of the planes in mm

Definition at line 39 of file Polyhedra.cxx.

◆ Polyhedra() [2/4]

Geant4GM::Polyhedra::Polyhedra ( G4Polyhedra * polyhedra,
G4ReflectedSolid * reflPolyhedra = 0 )

Standard constructor to define polyhedra from G4 object

Definition at line 85 of file Polyhedra.cxx.

◆ ~Polyhedra()

Geant4GM::Polyhedra::~Polyhedra ( )
virtual

Definition at line 126 of file Polyhedra.cxx.

◆ Polyhedra() [3/4]

Geant4GM::Polyhedra::Polyhedra ( )
protected

Protected default constructor

Definition at line 112 of file Polyhedra.cxx.

◆ Polyhedra() [4/4]

Geant4GM::Polyhedra::Polyhedra ( const Polyhedra & rhs)
protected

Protected copy constructor

Definition at line 119 of file Polyhedra.cxx.

Member Function Documentation

◆ Name()

std::string Geant4GM::Polyhedra::Name ( ) const
virtual

Return the name of this solid.

Implements VGM::IPolyhedra.

Definition at line 141 of file Polyhedra.cxx.

◆ StartPhi()

double Geant4GM::Polyhedra::StartPhi ( ) const
virtual

Return starting phi angle of the segment in deg.

Implements VGM::IPolyhedra.

Definition at line 144 of file Polyhedra.cxx.

◆ DeltaPhi()

double Geant4GM::Polyhedra::DeltaPhi ( ) const
virtual

Return opening phi angle of the segment in deg.

Implements VGM::IPolyhedra.

Definition at line 150 of file Polyhedra.cxx.

◆ NofSides()

int Geant4GM::Polyhedra::NofSides ( ) const
virtual

Return number of sides of the cross section between the given phi limits.

Implements VGM::IPolyhedra.

Definition at line 158 of file Polyhedra.cxx.

◆ NofZPlanes()

int Geant4GM::Polyhedra::NofZPlanes ( ) const
virtual

Return number of planes perpendicular to the z axis.

Implements VGM::IPolyhedra.

Definition at line 164 of file Polyhedra.cxx.

◆ ZValues()

double * Geant4GM::Polyhedra::ZValues ( ) const
virtual

Return the array of z positions of the planes in mm.

Implements VGM::IPolyhedra.

Definition at line 170 of file Polyhedra.cxx.

◆ InnerRadiusValues()

double * Geant4GM::Polyhedra::InnerRadiusValues ( ) const
virtual

Return the array of innner radius of the planes in mm.

Implements VGM::IPolyhedra.

Definition at line 193 of file Polyhedra.cxx.

◆ OuterRadiusValues()

double * Geant4GM::Polyhedra::OuterRadiusValues ( ) const
virtual

Return the array of outer radius of the planes in mm.

Implements VGM::IPolyhedra.

Definition at line 214 of file Polyhedra.cxx.


The documentation for this class was generated from the following files: