library: libGeom
#include "TGeoTrd1.h"

TGeoTrd1


class description - header file - source file - inheritance tree (.pdf)

class TGeoTrd1 : public TGeoBBox

Inheritance Chart:
TObject
<-
TNamed
<-
TGeoShape
<-
TGeoBBox
<-
TGeoTrd1

    public:
TGeoTrd1() TGeoTrd1(Double_t dx1, Double_t dx2, Double_t dy, Double_t dz) TGeoTrd1(const char* name, Double_t dx1, Double_t dx2, Double_t dy, Double_t dz) TGeoTrd1(Double_t* params) TGeoTrd1(const TGeoTrd1&) virtual ~TGeoTrd1() virtual Double_t Capacity() const static TClass* Class() virtual void ComputeBBox() virtual void ComputeNormal(Double_t* point, Double_t* dir, Double_t* norm) virtual Bool_t Contains(Double_t* point) const virtual Double_t DistFromInside(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = TGeoShape::Big(), Double_t* safe = 0) const virtual Double_t DistFromOutside(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = TGeoShape::Big(), Double_t* safe = 0) const virtual TGeoVolume* Divide(TGeoVolume* voldiv, const char* divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step) virtual Double_t GetAxisRange(Int_t iaxis, Double_t& xlo, Double_t& xhi) const virtual void GetBoundingCylinder(Double_t* param) const virtual Int_t GetByteCount() const Double_t GetDx1() const Double_t GetDx2() const Double_t GetDy() const Double_t GetDz() const virtual Int_t GetFittingBox(const TGeoBBox* parambox, TGeoMatrix* mat, Double_t& dx, Double_t& dy, Double_t& dz) const virtual TGeoShape* GetMakeRuntimeShape(TGeoShape* mother, TGeoMatrix* mat) const virtual Int_t GetNmeshVertices() const void GetOppositeCorner(Double_t* point, Int_t inorm, Double_t* vertex, Double_t* normals) const void GetVisibleCorner(Double_t* point, Double_t* vertex, Double_t* normals) const virtual void InspectShape() const virtual TClass* IsA() const virtual Bool_t IsCylType() const TGeoTrd1& operator=(const TGeoTrd1&) virtual Double_t Safety(Double_t* point, Bool_t in = kTRUE) const virtual void SavePrimitive(ostream& out, Option_t* option = "") virtual void SetDimensions(Double_t* param) virtual void SetPoints(Double_t* points) const virtual void SetPoints(Float_t* points) const void SetVertex(Double_t* vertex) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Sizeof3D() const virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Double_t fDx1 half length in X at lower Z surface (-dz) Double_t fDx2 half length in X at higher Z surface (+dz) Double_t fDy half length in Y Double_t fDz half length in Z

Class Description

_____________________________________________________________________________
 TGeoTrd1 - a trapezoid with only x length varying with z. It has 4
   parameters, the half length in x at the low z surface, that at the
   high z surface, the half length in y, and in z

_____________________________________________________________________________
TGeoTrd1()
 dummy ctor
TGeoTrd1(Double_t dx1, Double_t dx2, Double_t dy, Double_t dz)
 constructor.
TGeoTrd1(const char *name, Double_t dx1, Double_t dx2, Double_t dy, Double_t dz)
 constructor.
TGeoTrd1(Double_t *param)
 ctor with an array of parameters
 param[0] = dx1
 param[1] = dx2
 param[2] = dy
 param[3] = dz
~TGeoTrd1()
 destructor
Double_t Capacity()
 Computes capacity of the shape in [length^3]
void ComputeBBox()
 compute bounding box for a trd1
void ComputeNormal(Double_t *point, Double_t *dir, Double_t *norm)
 Compute normal to closest surface from POINT.
Bool_t Contains(Double_t *point)
 test if point is inside this shape
 check Z range
Double_t DistFromInside(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe)
 Compute distance from inside point to surface of the trd1
 Boundary safe algorithm.
void GetVisibleCorner(Double_t *point, Double_t *vertex, Double_t *normals)
 get the most visible corner from outside point and the normals
Double_t DistFromOutside(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe)
 Compute distance from outside point to surface of the trd1
 Boundary safe algorithm
TGeoVolume * Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step)
--- Divide this trd1 shape belonging to volume "voldiv" into ndiv volumes
 called divname, from start position with the given step. Returns pointer
 to created division cell volume in case of Y divisions. For Z divisions just
 return the pointer to the volume to be divided. In case a wrong
 division axis is supplied, returns pointer to volume that was divided.
Double_t GetAxisRange(Int_t iaxis, Double_t &xlo, Double_t &xhi)
 Get range of shape for a given axis.
void GetBoundingCylinder(Double_t *param)
--- Fill vector param[4] with the bounding cylinder parameters. The order
 is the following : Rmin, Rmax, Phi1, Phi2
Int_t GetFittingBox(const TGeoBBox *parambox, TGeoMatrix *mat, Double_t &dx, Double_t &dy, Double_t &dz)
 Fills real parameters of a positioned box inside this. Returns 0 if successfull.
void InspectShape()
 print shape parameters
Double_t Safety(Double_t *point, Bool_t in)
 computes the closest distance from given point to this shape, according
 to option. The matching point on the shape is stored in spoint.
void SavePrimitive(ostream &out, Option_t * /*option*/ /*= ""*/)
 Save a primitive as a C++ statement(s) on output stream "out".
void SetDimensions(Double_t *param)
 set trd1 params in one step :
void SetVertex(Double_t *vertex)
 set vertex of a corner according to visibility flags
void SetPoints(Double_t *points)
 create arb8 mesh points
void SetPoints(Float_t *points)
 create arb8 mesh points
void Sizeof3D()
 fill size of this 3-D object
TGeoTrd1()
 constructors
Int_t GetByteCount()
Double_t GetDx1()
Double_t GetDx2()
Double_t GetDy()
Double_t GetDz()
Int_t GetNmeshVertices()
void GetOppositeCorner(Double_t *point, Int_t inorm, Double_t *vertex, Double_t *normals)
Bool_t IsCylType()

Author: Andrei Gheata 24/10/01
Last update: root/geom:$Name: $:$Id: TGeoTrd1.cxx,v 1.35 2006/07/03 16:10:44 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.