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

VGM implementation for Root box solid. More...

#include <Box.h>

Inheritance diagram for RootGM::Box:

Public Member Functions

 Box (const std::string &name, double hx, double hy, double hz)
 
 Box (TGeoBBox *box, bool addInMap=true)
 
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 Root box solid.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 31 of file Box.h.

Constructor & Destructor Documentation

◆ Box() [1/4]

RootGM::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 26 of file Box.cxx.

◆ Box() [2/4]

RootGM::Box::Box ( TGeoBBox * box,
bool addInMap = true )

Standard constructor to define box from Root object

Definition at line 42 of file Box.cxx.

◆ ~Box()

RootGM::Box::~Box ( )
virtual

Definition at line 64 of file Box.cxx.

◆ Box() [3/4]

RootGM::Box::Box ( )
protected

Protected default constructor

Definition at line 51 of file Box.cxx.

◆ Box() [4/4]

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

Protected copy constructor

Definition at line 57 of file Box.cxx.

Member Function Documentation

◆ Name()

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

Return the name of this solid.

Implements VGM::IBox.

Definition at line 74 of file Box.cxx.

◆ XHalfLength()

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

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

Implements VGM::IBox.

Definition at line 77 of file Box.cxx.

◆ YHalfLength()

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

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

Implements VGM::IBox.

Definition at line 83 of file Box.cxx.

◆ ZHalfLength()

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

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

Implements VGM::IBox.

Definition at line 89 of file Box.cxx.


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