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

VGM implementation for Root polyhedra solid. More...

#include <Polyhedra.h>

Inheritance diagram for RootGM::Polyhedra:

Public Member Functions

 Polyhedra (const std::string &name, double sphi, double dphi, int nofSides, int nofZPlanes, double *z, double *rin, double *rout)
 
 Polyhedra (TGeoPgon *polycone)
 
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 Root polyhedra solid.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 31 of file Polyhedra.h.

Constructor & Destructor Documentation

◆ Polyhedra() [1/4]

RootGM::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 34 of file Polyhedra.cxx.

◆ Polyhedra() [2/4]

RootGM::Polyhedra::Polyhedra ( TGeoPgon * polycone)

Standard constructor to define polyhedra from Root object

Definition at line 74 of file Polyhedra.cxx.

◆ ~Polyhedra()

RootGM::Polyhedra::~Polyhedra ( )
virtual

Definition at line 101 of file Polyhedra.cxx.

◆ Polyhedra() [3/4]

RootGM::Polyhedra::Polyhedra ( )
protected

Protected default constructor

Definition at line 87 of file Polyhedra.cxx.

◆ Polyhedra() [4/4]

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

Protected copy constructor

Definition at line 94 of file Polyhedra.cxx.

Member Function Documentation

◆ Name()

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

Return the name of this solid.

Implements VGM::IPolyhedra.

Definition at line 115 of file Polyhedra.cxx.

◆ StartPhi()

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

Return starting phi angle of the segment in deg.

Implements VGM::IPolyhedra.

Definition at line 118 of file Polyhedra.cxx.

◆ DeltaPhi()

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

Return opening phi angle of the segment in deg.

Implements VGM::IPolyhedra.

Definition at line 124 of file Polyhedra.cxx.

◆ NofSides()

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

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

Implements VGM::IPolyhedra.

Definition at line 130 of file Polyhedra.cxx.

◆ NofZPlanes()

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

Return number of planes perpendicular to the z axis.

Implements VGM::IPolyhedra.

Definition at line 133 of file Polyhedra.cxx.

◆ ZValues()

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

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

Implements VGM::IPolyhedra.

Definition at line 136 of file Polyhedra.cxx.

◆ InnerRadiusValues()

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

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

Implements VGM::IPolyhedra.

Definition at line 154 of file Polyhedra.cxx.

◆ OuterRadiusValues()

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

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

Implements VGM::IPolyhedra.

Definition at line 172 of file Polyhedra.cxx.


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