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

VGM implementation for Root trap solid. More...

#include <Trap.h>

Inheritance diagram for RootGM::Trap:

Public Member Functions

 Trap (const std::string &name, double hz, double theta, double phi, double dy1, double dx1, double dx2, double alpha1, double dy2, double dx3, double dx4, double alpha2)
 
 Trap (TGeoTrap *trap)
 
virtual ~Trap ()
 
virtual std::string Name () const
 Return the name of this solid.
 
virtual double ZHalfLength () const
 Return the half-length along the z axis in mm.
 
virtual double Theta () const
 Return the polar angle of the line joining the centres of the faces at -hz and +hz in deg.
 
virtual double Phi () const
 Return the azimuthal angle of the line joining the centres of the faces at -hz and +hz in deg.
 
virtual double YHalfLengthMinusZ () const
 Return the half-length along y of the face at -hz in mm.
 
virtual double XHalfLengthMinusZMinusY () const
 Return the half-length along x of the side at -hy of the face at -hz in mm.
 
virtual double XHalfLengthMinusZPlusY () const
 Return the half-length along x of the side at +hy of the face at +hz in mm.
 
virtual double AlphaMinusZ () const
 Return the angle with respect to the y axis from the centre of the side at -hy to the centre at +hy of the face at -hz.
 
virtual double YHalfLengthPlusZ () const
 Return the half-length along y of the face at +hz in m.
 
virtual double XHalfLengthPlusZMinusY () const
 Return the half-length along x of the side at -hy of the face at +hz in m.
 
virtual double XHalfLengthPlusZPlusY () const
 Return the half-length along x of the side at +hy of the face at +hz in m.
 
virtual double AlphaPlusZ () const
 Return the angle with respect to the y axis from the centre of the side at -hy to the centre at +hy of the face at +hz.
 
- Public Member Functions inherited from BaseVGM::VTrap
 VTrap ()
 
virtual ~VTrap ()
 
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::ITrap
virtual ~ITrap ()
 
- Public Member Functions inherited from VGM::ISolid
virtual ~ISolid ()
 

Protected Member Functions

 Trap ()
 
 Trap (const Trap &rhs)
 

Detailed Description

VGM implementation for Root trap solid.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 31 of file Trap.h.

Constructor & Destructor Documentation

◆ Trap() [1/4]

RootGM::Trap::Trap ( const std::string & name,
double hz,
double theta,
double phi,
double dy1,
double dx1,
double dx2,
double alpha1,
double dy2,
double dx3,
double dx4,
double alpha2 )

Standard constructor to define trap from parameters ( Note that of the 11 parameters described below, only 9 are really independent)

Parameters
hzhalf-length along the z axis in mm
thetapolar angle of the line joining the centres of the faces at -hz and +hz in deg
phiazimuthal angle of the line joining the centres of the faces at -hz and +hz in deg
dy1half-length along y of the face at -hz in mm
dx1half-length along x of the side at -hy of the face at -hz in mm
dx2half-length along x of the side at +hy of the face at +hz in mm
alpha1angle with respect to the y axis from the centre of the side at -hy to the centre at +hy of the face at -hz
dy2half-length along y of the face at +hz in mm
dx3half-length along x of the side at -hy of the face at +hz in mm
dx4half-length along x of the side at +hy of the face at +hz in mm
alpha2angle with respect to the y axis from the centre of the side at -hy to the centre at +hy of the face at +hz

Definition at line 26 of file Trap.cxx.

◆ Trap() [2/4]

RootGM::Trap::Trap ( TGeoTrap * trap)

Standard constructor to define trap from Root object

Definition at line 68 of file Trap.cxx.

◆ ~Trap()

RootGM::Trap::~Trap ( )
virtual

Definition at line 90 of file Trap.cxx.

◆ Trap() [3/4]

RootGM::Trap::Trap ( )
protected

Protected default constructor

Definition at line 77 of file Trap.cxx.

◆ Trap() [4/4]

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

Protected copy constructor

Definition at line 83 of file Trap.cxx.

Member Function Documentation

◆ Name()

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

Return the name of this solid.

Implements VGM::ITrap.

Definition at line 96 of file Trap.cxx.

◆ ZHalfLength()

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

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

Implements VGM::ITrap.

Definition at line 99 of file Trap.cxx.

◆ Theta()

double RootGM::Trap::Theta ( ) const
virtual

Return the polar angle of the line joining the centres of the faces at -hz and +hz in deg.

Implements VGM::ITrap.

Definition at line 105 of file Trap.cxx.

◆ Phi()

double RootGM::Trap::Phi ( ) const
virtual

Return the azimuthal angle of the line joining the centres of the faces at -hz and +hz in deg.

Implements VGM::ITrap.

Definition at line 111 of file Trap.cxx.

◆ YHalfLengthMinusZ()

double RootGM::Trap::YHalfLengthMinusZ ( ) const
virtual

Return the half-length along y of the face at -hz in mm.

Implements VGM::ITrap.

Definition at line 117 of file Trap.cxx.

◆ XHalfLengthMinusZMinusY()

double RootGM::Trap::XHalfLengthMinusZMinusY ( ) const
virtual

Return the half-length along x of the side at -hy of the face at -hz in mm.

Implements VGM::ITrap.

Definition at line 123 of file Trap.cxx.

◆ XHalfLengthMinusZPlusY()

double RootGM::Trap::XHalfLengthMinusZPlusY ( ) const
virtual

Return the half-length along x of the side at +hy of the face at +hz in mm.

Implements VGM::ITrap.

Definition at line 129 of file Trap.cxx.

◆ AlphaMinusZ()

double RootGM::Trap::AlphaMinusZ ( ) const
virtual

Return the angle with respect to the y axis from the centre of the side at -hy to the centre at +hy of the face at -hz.

Implements VGM::ITrap.

Definition at line 135 of file Trap.cxx.

◆ YHalfLengthPlusZ()

double RootGM::Trap::YHalfLengthPlusZ ( ) const
virtual

Return the half-length along y of the face at +hz in m.

Implements VGM::ITrap.

Definition at line 141 of file Trap.cxx.

◆ XHalfLengthPlusZMinusY()

double RootGM::Trap::XHalfLengthPlusZMinusY ( ) const
virtual

Return the half-length along x of the side at -hy of the face at +hz in m.

Implements VGM::ITrap.

Definition at line 147 of file Trap.cxx.

◆ XHalfLengthPlusZPlusY()

double RootGM::Trap::XHalfLengthPlusZPlusY ( ) const
virtual

Return the half-length along x of the side at +hy of the face at +hz in m.

Implements VGM::ITrap.

Definition at line 153 of file Trap.cxx.

◆ AlphaPlusZ()

double RootGM::Trap::AlphaPlusZ ( ) const
virtual

Return the angle with respect to the y axis from the centre of the side at -hy to the centre at +hy of the face at +hz.

Implements VGM::ITrap.

Definition at line 159 of file Trap.cxx.


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