Garfield++ v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
|
Cylindrical tube. More...
#include <SolidTube.hh>
Public Member Functions | |
SolidTube (const double cx, const double cy, const double cz, const double rmin, const double rmax, const double lz) | |
Constructor from centre, inner/outer radii, and length. | |
SolidTube (const double cx, const double cy, const double cz, const double rmin, const double rmax, const double lz, const double dx, const double dy, const double dz) | |
Constructor from centre, inner/outer radii, length and orientation. | |
~SolidTube () | |
Destructor. | |
virtual bool | IsInside (const double x, const double y, const double z) const |
Check whether a given point is inside the solid. | |
virtual bool | GetBoundingBox (double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) const |
Return the bounding box of the solid. | |
virtual bool | IsTube () const |
Return true if the solid is a tube. | |
virtual bool | GetCenter (double &x, double &y, double &z) const |
virtual bool | GetDimensions (double &l1, double &l2, double &l3) const |
virtual bool | GetOrientation (double &ctheta, double &stheta, double &cphi, double &sphi) const |
void | SetInnerRadius (const double rmin) |
void | SetOuterRadius (const double rmax) |
void | SetHalfLengthZ (const double lz) |
Public Member Functions inherited from Garfield::Solid | |
Solid () | |
Constructor. | |
virtual | ~Solid () |
Destructor. | |
virtual bool | IsInside (const double x, const double y, const double z) const =0 |
Check whether a given point is inside the solid. | |
virtual bool | GetBoundingBox (double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) const =0 |
Return the bounding box of the solid. | |
virtual bool | IsBox () const |
Return true if the solid is a box. | |
virtual bool | IsTube () const |
Return true if the solid is a tube. | |
virtual bool | IsSphere () const |
Return true if the solid is a sphere. | |
virtual bool | GetCenter (double &x, double &y, double &z) const =0 |
virtual bool | GetDimensions (double &l1, double &l2, double &l3) const =0 |
virtual bool | GetOrientation (double &ctheta, double &stheta, double &cphi, double &shpi) const =0 |
void | EnableDebugging () |
Switch on debugging messages. | |
void | DisableDebugging () |
Additional Inherited Members | |
Protected Attributes inherited from Garfield::Solid | |
bool | m_debug |
Cylindrical tube.
Definition at line 10 of file SolidTube.hh.
Garfield::SolidTube::SolidTube | ( | const double | cx, |
const double | cy, | ||
const double | cz, | ||
const double | rmin, | ||
const double | rmax, | ||
const double | lz | ||
) |
Constructor from centre, inner/outer radii, and length.
Definition at line 10 of file SolidTube.cc.
Garfield::SolidTube::SolidTube | ( | const double | cx, |
const double | cy, | ||
const double | cz, | ||
const double | rmin, | ||
const double | rmax, | ||
const double | lz, | ||
const double | dx, | ||
const double | dy, | ||
const double | dz | ||
) |
Constructor from centre, inner/outer radii, length and orientation.
Definition at line 20 of file SolidTube.cc.
|
inline |
|
virtual |
Return the bounding box of the solid.
Implements Garfield::Solid.
Definition at line 95 of file SolidTube.cc.
|
virtual |
Implements Garfield::Solid.
Definition at line 118 of file SolidTube.cc.
|
virtual |
Implements Garfield::Solid.
Definition at line 126 of file SolidTube.cc.
|
virtual |
Implements Garfield::Solid.
Definition at line 134 of file SolidTube.cc.
|
virtual |
Check whether a given point is inside the solid.
Implements Garfield::Solid.
Definition at line 58 of file SolidTube.cc.
|
inlinevirtual |
Return true if the solid is a tube.
Reimplemented from Garfield::Solid.
Definition at line 26 of file SolidTube.hh.
void Garfield::SolidTube::SetHalfLengthZ | ( | const double | lz | ) |
Definition at line 174 of file SolidTube.cc.
void Garfield::SolidTube::SetInnerRadius | ( | const double | rmin | ) |
Definition at line 144 of file SolidTube.cc.
void Garfield::SolidTube::SetOuterRadius | ( | const double | rmax | ) |
Definition at line 159 of file SolidTube.cc.