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

VGM implementation for Geant4 torus solid. More...

#include <Torus.h>

Inheritance diagram for Geant4GM::Torus:

Public Member Functions

 Torus (const std::string &name, double rin, double rout, double rax, double sphi, double dphi)
 
 Torus (G4Torus *torus, G4ReflectedSolid *reflTorus=0)
 
virtual ~Torus ()
 
virtual std::string Name () const
 Return the name of this solid.
 
virtual double InnerRadius () const
 Return the inside radius of the torus in mm.
 
virtual double OuterRadius () const
 Return the outside radius of the torus in mm.
 
virtual double AxialRadius () const
 Return the axial (swept) radius of the torus in mm.
 
virtual double StartPhi () const
 Return the starting phi angle of the segment in deg (with 0 being the +x axis)
 
virtual double DeltaPhi () const
 Return the opening phi angle of the segment in deg.
 
- Public Member Functions inherited from BaseVGM::VTorus
 VTorus ()
 
virtual ~VTorus ()
 
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.
 
- Public Member Functions inherited from VGM::ITorus
virtual ~ITorus ()
 
- Public Member Functions inherited from VGM::ISolid
virtual ~ISolid ()
 

Protected Member Functions

 Torus ()
 
 Torus (const Torus &rhs)
 

Detailed Description

VGM implementation for Geant4 torus solid.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 32 of file Torus.h.

Constructor & Destructor Documentation

◆ Torus() [1/4]

Geant4GM::Torus::Torus ( const std::string & name,
double rin,
double rout,
double rax,
double sphi,
double dphi )

Standard constructor to define torus from parameters

Parameters
rininside radius of the torus in mm
routoutside radius of the torus in mm
raxaxial (swept) radius of the torus in mm
sphistarting angle of the segment in deg (with 0 being the +x axis)
dphiopening angle of the segment in deg

Definition at line 28 of file Torus.cxx.

◆ Torus() [2/4]

Geant4GM::Torus::Torus ( G4Torus * torus,
G4ReflectedSolid * reflTorus = 0 )

Standard constructor to define torus from G4 object

Definition at line 49 of file Torus.cxx.

◆ ~Torus()

Geant4GM::Torus::~Torus ( )
virtual

Definition at line 74 of file Torus.cxx.

◆ Torus() [3/4]

Geant4GM::Torus::Torus ( )
protected

Protected default constructor

Definition at line 61 of file Torus.cxx.

◆ Torus() [4/4]

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

Protected copy constructor

Definition at line 67 of file Torus.cxx.

Member Function Documentation

◆ Name()

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

Return the name of this solid.

Implements VGM::ITorus.

Definition at line 80 of file Torus.cxx.

◆ InnerRadius()

double Geant4GM::Torus::InnerRadius ( ) const
virtual

Return the inside radius of the torus in mm.

Implements VGM::ITorus.

Definition at line 83 of file Torus.cxx.

◆ OuterRadius()

double Geant4GM::Torus::OuterRadius ( ) const
virtual

Return the outside radius of the torus in mm.

Implements VGM::ITorus.

Definition at line 89 of file Torus.cxx.

◆ AxialRadius()

double Geant4GM::Torus::AxialRadius ( ) const
virtual

Return the axial (swept) radius of the torus in mm.

Implements VGM::ITorus.

Definition at line 95 of file Torus.cxx.

◆ StartPhi()

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

Return the starting phi angle of the segment in deg (with 0 being the +x axis)

Implements VGM::ITorus.

Definition at line 101 of file Torus.cxx.

◆ DeltaPhi()

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

Return the opening phi angle of the segment in deg.

Implements VGM::ITorus.

Definition at line 107 of file Torus.cxx.


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