]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSGeant3Geometry.h
Code for simulation, sdigitization and digitization moved from macros to compiled...
[u/mrichter/AliRoot.git] / ITS / AliITSGeant3Geometry.h
1 #ifndef ALIITSGEANT3GEOMETRY_H
2 #define ALIITSGEANT3GEOMETRY_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id: */
7
8 #include "TObject.h"
9 #include "TGeant3.h"
10
11 class AliITSGeant3Geometry : public TObject {
12  public:
13     AliITSGeant3Geometry();
14     virtual ~AliITSGeant3Geometry(){}
15     AliITSGeant3Geometry(const AliITSGeant3Geometry &s) : TObject(s) {}
16     AliITSGeant3Geometry & operator=(const AliITSGeant3Geometry &s) 
17     {if(&s==this) return *this; return *this;}
18     
19     // Return number of children for volume idvol
20     Int_t NChildren(Int_t idvol);
21     // Return child number idc of volume idvol
22     Int_t Child(Int_t idvol, Int_t idc);
23     // Return medium number for given volume idvol
24     Int_t Medium(Int_t idvol);
25     // Return material number for given volume idvol
26     Int_t Material(Int_t idvol);
27     // Reads the zebra geometry tree and put it into the ListTree
28 //    void  ReadGeometryTree();
29     // Read material and media information and put it into ComboBox 
30 //    void  ReadMaterials();
31 //    Float_t Cut(Int_t idmed, Int_t icut);
32     Int_t GetShape(Int_t idvol,Int_t &npar,Int_t &natt,Float_t *par,
33                    Float_t *att);
34     void GetGeometry(Int_t nlevels,Int_t *lnam,Int_t *lnum,Double_t *xt,
35                      Double_t *r,Int_t &idshape,Int_t &npar,Int_t &natt,
36                      Float_t *par,Float_t *att,Int_t &imat,Int_t &imed);
37     Int_t StringToInt(char *name);
38
39  private:
40 // Zebra bank related information       
41     Int_t    *fZlq;              // pointer to Zebra bank lq
42     Float_t  *fZq;               // pointer to Zebra bank q
43     Int_t    *fZiq;              // pointer to Zebra bank iq
44     Gclink_t *fGclink;           // pointer to Geant common block 
45     Gcnum_t  *fGcnum;            // pointer to Geant common block
46     Gcvolu_t *fGcvolu;           // pointer to Geant common block
47
48     ClassDef(AliITSGeant3Geometry,0)  // ITS Geant3 geometry functions
49 };
50 #endif