ROOT logo
KDetSim » KGeometry

class KGeometry


KGeometry

Class for description of detector geometry
The class defines the geometry of the detector.
It is based upon two TH3S histograms
It contains some functions defined to design the electrodes


Function Members (Methods)

public:
KGeometry()
KGeometry(TH3I* x)
KGeometry(const KGeometry&)
KGeometry(TH3I* x, TH3I* y)
~KGeometry()
static TClass*Class()
voidElCylinder(Float_t* Pos, Float_t R, Float_t L, Int_t O, Int_t Wei, Int_t Mat)
voidElLine(Float_t* r0, Float_t* r1, Float_t* W, Int_t Wei, Int_t Mat)
voidElRectangle(Float_t* Pos, Float_t* Size, Int_t Wei, Int_t Mat)
voidElRectangle(Float_t* Pos, Float_t* Size, TH3F*, Float_t)
TH3F*GetGeom()
voidGetGrid(TH3I*, Short_t = 0)
Float_tGetLowEdge(Int_t)
Double_tGetStepSize(Int_t, Int_t)
Double_tGetStepSize(Int_t, Float_t)
Float_tGetUpEdge(Int_t)
virtual TClass*IsA() const
TH3F*MapToGeometry(Double_t*, Double_t = 1)
KGeometry&operator=(const KGeometry&)
voidReset(Int_t = 0, Int_t = 0)
Int_tSetBoundaryConditions()
intSetElecVolt(int i)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)

Data Members

public:
TH3I*DMdetector material
TH3I*EGelectrode geometry
Int_tnxx-divisions
Int_tnyy-divisions
Int_tnzz-divisions

Class Charts

Inheritance Chart:
KGeometry
KDetector
K3D
KPad
KPixel
KStrip

Function documentation

KGeometry()
~KGeometry()
void GetGrid(TH3I* , Short_t = 0)
 EG grid
bit 1 = 1  -> 1st electrode
bit 2 = 2  -> 2nd electrode
void Reset(Int_t = 0, Int_t = 0)
Int_t SetBoundaryConditions()
TH3F * MapToGeometry(Double_t* , Double_t = 1)
Double_t GetStepSize(Int_t , Int_t )
Double_t GetStepSize(Int_t , Float_t )
Float_t GetUpEdge(Int_t )
Float_t GetLowEdge(Int_t )
void ElLine(Float_t* r0, Float_t* r1, Float_t* W, Int_t Wei, Int_t Mat)
void ElRectangle(Float_t* Pos, Float_t* Size, TH3F* , Float_t )
 Sets Up
void ElRectangle(Float_t* Pos, Float_t* Size, Int_t Wei, Int_t Mat)
 Sets Up
void ElCylinder(Float_t* Pos, Float_t R, Float_t L, Int_t O, Int_t Wei, Int_t Mat)
 Cylindrical electrode
 Float_t *Pos;  - postion of the cone center
TH3F * GetGeom()
 Map the array of values: E, U, W ... to the geometry.

KGeometry()
 Constructors of the class
KGeometry(TH3I* x)
{GetGrid(x,0); }
KGeometry(TH3I* x, TH3I* y)
 Setting up grids
{GetGrid(x,0); GetGrid(x,1);}
int SetElecVolt(int i)
{return ((i<<16)|32768);}