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

VGM implementation for cut tubs solid in Geant4. More...

#include <Ctubs.h>

Inheritance diagram for Geant4GM::Ctubs:

Public Member Functions

 Ctubs (const std::string &name, double rin, double rout, double hz, double sphi, double dphi, double nxlow, double nylow, double nzlow, double nxhigh, double nyhigh, double nzhigh)
 
 Ctubs (G4CutTubs *ctubs, G4ReflectedSolid *reflCtubs=0)
 
virtual ~Ctubs ()
 
virtual std::string Name () const
 Return the name of this solid.
 
virtual double InnerRadius () const
 Return the inside radius in mm.
 
virtual double OuterRadius () const
 Return the outside radius in mm.
 
virtual double ZHalfLength () const
 Return the half-length along the z axis in m.
 
virtual double StartPhi () const
 Return the starting angle of the segment in deg.
 
virtual double DeltaPhi () const
 Return the opening angle of the segment in deg.
 
virtual double NxLow () const
 X-component of the normal unit vector to the cut plane in -z.
 
virtual double NyLow () const
 Y-component of the normal unit vector to the cut plane in -z.
 
virtual double NzLow () const
 Z-component of the normal unit vector to the cut plane in -z.
 
virtual double NxHigh () const
 X-component of the normal unit vector to the cut plane in +z.
 
virtual double NyHigh () const
 Y-component of the normal unit vector to the cut plane in +z.
 
virtual double NzHigh () const
 Z-component of the normal unit vector to the cut plane in +z.
 
- Public Member Functions inherited from BaseVGM::VCtubs
 VCtubs ()
 
virtual ~VCtubs ()
 
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::ICtubs
virtual ~ICtubs ()
 
- Public Member Functions inherited from VGM::ISolid
virtual ~ISolid ()
 

Protected Member Functions

 Ctubs ()
 
 Ctubs (const Ctubs &rhs)
 

Detailed Description

VGM implementation for cut tubs solid in Geant4.

The solid is realized as boolean subtraction of tube and two boxes.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 37 of file Ctubs.h.

Constructor & Destructor Documentation

◆ Ctubs() [1/4]

Geant4GM::Ctubs::Ctubs ( const std::string & name,
double rin,
double rout,
double hz,
double sphi,
double dphi,
double nxlow,
double nylow,
double nzlow,
double nxhigh,
double nyhigh,
double nzhigh )

Standard constructor to define tubs from parameters

Parameters
rininside radius in mm
routoutside radius in mm
hzhalf-length along the z axis in mm
sphistarting angle of the segment in deg
dphiopening angle of the segment in deg
nxlowX-component of the normal unit vector to the cut plane in -z
nylowY-component of the normal unit vector to the cut plane in -z
nzlowZ-component of the normal unit vector to the cut plane in -z
nxhighX-component of the normal unit vector to the cut plane in +z
nyhighY-component of the normal unit vector to the cut plane in +z
nzhighZ-component of the normal unit vector to the cut plane in +z

Create Geabt4 cut tube

Definition at line 35 of file Ctubs.cxx.

◆ Ctubs() [2/4]

Geant4GM::Ctubs::Ctubs ( G4CutTubs * ctubs,
G4ReflectedSolid * reflCtubs = 0 )

Standard constructor to define ctubs from G4 object

Definition at line 70 of file Ctubs.cxx.

◆ ~Ctubs()

Geant4GM::Ctubs::~Ctubs ( )
virtual

Definition at line 101 of file Ctubs.cxx.

◆ Ctubs() [3/4]

Geant4GM::Ctubs::Ctubs ( )
protected

Protected default constructor

Definition at line 88 of file Ctubs.cxx.

◆ Ctubs() [4/4]

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

Protected copy constructor

Definition at line 94 of file Ctubs.cxx.

Member Function Documentation

◆ Name()

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

Return the name of this solid.

Implements VGM::ICtubs.

Definition at line 107 of file Ctubs.cxx.

◆ InnerRadius()

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

Return the inside radius in mm.

Implements VGM::ICtubs.

Definition at line 110 of file Ctubs.cxx.

◆ OuterRadius()

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

Return the outside radius in mm.

Implements VGM::ICtubs.

Definition at line 116 of file Ctubs.cxx.

◆ ZHalfLength()

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

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

Implements VGM::ICtubs.

Definition at line 122 of file Ctubs.cxx.

◆ StartPhi()

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

Return the starting angle of the segment in deg.

Implements VGM::ICtubs.

Definition at line 128 of file Ctubs.cxx.

◆ DeltaPhi()

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

Return the opening angle of the segment in deg.

Implements VGM::ICtubs.

Definition at line 134 of file Ctubs.cxx.

◆ NxLow()

double Geant4GM::Ctubs::NxLow ( ) const
virtual

X-component of the normal unit vector to the cut plane in -z.

Implements VGM::ICtubs.

Definition at line 139 of file Ctubs.cxx.

◆ NyLow()

double Geant4GM::Ctubs::NyLow ( ) const
virtual

Y-component of the normal unit vector to the cut plane in -z.

Implements VGM::ICtubs.

Definition at line 148 of file Ctubs.cxx.

◆ NzLow()

double Geant4GM::Ctubs::NzLow ( ) const
virtual

Z-component of the normal unit vector to the cut plane in -z.

Implements VGM::ICtubs.

Definition at line 157 of file Ctubs.cxx.

◆ NxHigh()

double Geant4GM::Ctubs::NxHigh ( ) const
virtual

X-component of the normal unit vector to the cut plane in +z.

Implements VGM::ICtubs.

Definition at line 166 of file Ctubs.cxx.

◆ NyHigh()

double Geant4GM::Ctubs::NyHigh ( ) const
virtual

Y-component of the normal unit vector to the cut plane in +z.

Implements VGM::ICtubs.

Definition at line 175 of file Ctubs.cxx.

◆ NzHigh()

double Geant4GM::Ctubs::NzHigh ( ) const
virtual

Z-component of the normal unit vector to the cut plane in +z.

Implements VGM::ICtubs.

Definition at line 184 of file Ctubs.cxx.


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