TGeoTrd2
class description - source file - inheritance tree
public:
TGeoTrd2 TGeoTrd2()
TGeoTrd2 TGeoTrd2(Double_t dx1, Double_t dx2, Double_t dy1, Double_t dy2, Double_t dz)
TGeoTrd2 TGeoTrd2(Double_t* params)
TGeoTrd2 TGeoTrd2(const TGeoTrd2&)
virtual void ~TGeoTrd2()
static TClass* Class()
virtual void ComputeBBox()
virtual Bool_t Contains(Double_t* point) const
virtual Double_t DistToIn(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const
virtual Double_t DistToOut(Double_t* point, Double_t* dir, Int_t iact = 1, Double_t step = 0, Double_t* safe = 0) const
virtual Double_t DistToSurf(Double_t* point, Double_t* dir) const
virtual TGeoVolume* Divide(TGeoVolume* voldiv, const char* divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step)
virtual TGeoVolume* Divide(TGeoVolume* voldiv, const char* divname, Int_t iaxis, Double_t step)
virtual Int_t GetByteCount() const
Double_t GetDx1() const
Double_t GetDx2() const
Double_t GetDy1() const
Double_t GetDy2() const
Double_t GetDz() const
virtual TGeoShape* GetMakeRuntimeShape(TGeoShape* mother) 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 void NextCrossing(TGeoParamCurve* c, Double_t* point) const
virtual void Paint(Option_t* option)
virtual Double_t Safety(Double_t* point, Double_t* spoint, Option_t* option) const
virtual void SetDimensions(Double_t* param)
virtual void SetPoints(Double_t* buff) const
virtual void SetPoints(Float_t* buff) 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)
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 fDy1 half length in Y at lower Z surface (-dz)
Double_t fDy2 half length in Y at higher Z surface (+dz)
Double_t fDz half length in Z
TGeoTrd2()
dummy ctor
TGeoTrd2(Double_t dx1, Double_t dx2, Double_t dy1, Double_t dy2, Double_t dz)
:TGeoBBox(0,0,0)
constructor.
TGeoTrd2(Double_t *param)
ctor with an array of parameters
param[0] = dx1
param[1] = dx2
param[2] = dy1
param[3] = dy2
param[4] = dz
~TGeoTrd2()
destructor
void ComputeBBox()
compute bounding box for a trd2
Bool_t Contains(Double_t *point) const
test if point is inside this shape
check Z range
Double_t DistToOut(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe) const
compute distance from inside point to surface of the trd2
Double_t DistToIn(Double_t *point, Double_t *dir, Int_t iact, Double_t step, Double_t *safe) const
compute distance from outside point to surface of the trd2
Double_t DistToSurf(Double_t *point, Double_t *dir) const
computes the distance to next surface of the sphere along a ray
starting from given point to the given direction.
void GetVisibleCorner(Double_t *point, Double_t *vertex, Double_t *normals) const
get the most visible corner from outside point and the normals
void GetOppositeCorner(Double_t *point, Int_t inorm, Double_t *vertex, Double_t *normals) const
get the opposite corner of the intersected face
TGeoVolume* Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Int_t ndiv,
Double_t start, Double_t step)
--- Divide this trd2 shape belonging to volume "voldiv" into ndiv volumes
called divname, from start position with the given step. Only Z divisions
are supported. 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.
TGeoVolume* Divide(TGeoVolume *voldiv, const char *divname, Int_t iaxis, Double_t step)
Divide all range of iaxis in range/step cells
TGeoShape* GetMakeRuntimeShape(TGeoShape *mother) const
in case shape has some negative parameters, these has to be computed
in order to fit the mother
void InspectShape() const
print shape parameters
void Paint(Option_t *option)
paint this shape according to option
void NextCrossing(TGeoParamCurve *c, Double_t *point) const
computes next intersection point of curve c with this shape
Double_t Safety(Double_t *point, Double_t *spoint, Option_t *option) const
computes the closest distance from given point to this shape, according
to option. The matching point on the shape is stored in spoint.
void SetDimensions(Double_t *param)
set arb8 params in one step :
void SetPoints(Double_t *buff) const
create trd2 mesh points
void SetPoints(Float_t *buff) const
create trd2 mesh points
void SetVertex(Double_t *vertex) const
set vertex of a corner according to visibility flags
void Sizeof3D() const
fill size of this 3-D object
Inline Functions
Int_t GetByteCount() const
Double_t GetDx1() const
Double_t GetDx2() const
Double_t GetDy1() const
Double_t GetDy2() const
Double_t GetDz() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGeoTrd2 TGeoTrd2(const TGeoTrd2&)
Author: Andrei Gheata 31/01/02
Last update: root/geom:$Name: $:$Id: TGeoTrd2.cxx,v 1.3 2002/07/15 15:32:25 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - 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.