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

VGM implementation for Geant4 box solid. More...

#include <Box.h>

Inheritance diagram for Geant4GM::Box:

Public Member Functions

 Box (const std::string &name, double hx, double hy, double hz)
 
 Box (G4Box *box, G4ReflectedSolid *reflBox=0)
 
virtual ~Box ()
 
virtual std::string Name () const
 Return the name of this solid.
 
virtual double XHalfLength () const
 Return the half-length along the x axis in mm.
 
virtual double YHalfLength () const
 Return the half-length along the y axis in mm.
 
virtual double ZHalfLength () const
 Return the half-length along the z axis in mm.
 
- Public Member Functions inherited from BaseVGM::VBox
 VBox ()
 
virtual ~VBox ()
 
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::IBox
virtual ~IBox ()
 
- Public Member Functions inherited from VGM::ISolid
virtual ~ISolid ()
 

Protected Member Functions

 Box ()
 
 Box (const Box &rhs)
 

Detailed Description

VGM implementation for Geant4 box solid.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 32 of file Box.h.

Constructor & Destructor Documentation

◆ Box() [1/4]

Geant4GM::Box::Box ( const std::string & name,
double hx,
double hy,
double hz )

Standard constructor to define box from parameters

Parameters
hxhalf-length along the x axis in mm
hyhalf-length along the y axis in mm
hzhalf-length along the z axis in mm

Definition at line 28 of file Box.cxx.

◆ Box() [2/4]

Geant4GM::Box::Box ( G4Box * box,
G4ReflectedSolid * reflBox = 0 )

Standard constructor to define box from G4 object

Definition at line 44 of file Box.cxx.

◆ ~Box()

Geant4GM::Box::~Box ( )
virtual

Definition at line 69 of file Box.cxx.

◆ Box() [3/4]

Geant4GM::Box::Box ( )
protected

Protected default constructor

Definition at line 56 of file Box.cxx.

◆ Box() [4/4]

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

Protected copy constructor

Definition at line 62 of file Box.cxx.

Member Function Documentation

◆ Name()

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

Return the name of this solid.

Implements VGM::IBox.

Definition at line 75 of file Box.cxx.

◆ XHalfLength()

double Geant4GM::Box::XHalfLength ( ) const
virtual

Return the half-length along the x axis in mm.

Implements VGM::IBox.

Definition at line 78 of file Box.cxx.

◆ YHalfLength()

double Geant4GM::Box::YHalfLength ( ) const
virtual

Return the half-length along the y axis in mm.

Implements VGM::IBox.

Definition at line 84 of file Box.cxx.

◆ ZHalfLength()

double Geant4GM::Box::ZHalfLength ( ) const
virtual

Return the half-length along the z axis in mm.

Implements VGM::IBox.

Definition at line 90 of file Box.cxx.


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