]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSv11GeometrySPD.h
DIPO added
[u/mrichter/AliRoot.git] / ITS / AliITSv11GeometrySPD.h
index 44e6247923c23372937e2964f920e528fd121e7f..97bea9f9f8a0698bee24dbeef73af4aa6827377c 100644 (file)
@@ -4,24 +4,47 @@
  * See cxx source for full Copyright notice                               */
 
 /*
-  $Id$
+  Class which defines the SPD v11 centeral geometry, defines the
+  materials/media used for this geometry and sets the related transport
+  parameters (GEANT3 types for the moment.
  */
+
+
+#include <TGeoManager.h>
+#include <TVirtualMC.h>
 #include <AliITSv11Geometry.h>
+
 class TGeoVolume;
 
 class AliITSv11GeometrySPD : public AliITSv11Geometry {
   public:
-    AliITSv11GeometrySPD(){};
+    // Default constructor
+    AliITSv11GeometrySPD():AliITSv11Geometry(){};
+    // Default constructor with debuging level switch
     AliITSv11GeometrySPD(Bool_t debug):AliITSv11Geometry(debug){};
+    // Destructor
     virtual ~AliITSv11GeometrySPD(){};
+    // Creates SPD Sector geometry
+    virtual void SPDSector(TGeoVolume *moth,TGeoManager *mgr=gGeoManager);
+    // Creates SPD Carbon Fiber Sector only
+    virtual void CarbonFiberSector(TGeoVolume *moth,Double_t &xAAtubeCenter0,
+                                  Double_t &yAAtubeCenter0,
+                                  TGeoManager *mgr=gGeoManager);
+    // creates SPD Half Stave
+    virtual void HalfStave(TGeoVolume *moth,Double_t &thicknessAA,
+                          TGeoManager *mgr=gGeoManager);
     //
-    virtual void CarbonFiberSector(TGeoVolume *Moth);
-    virtual void HalfStave(TGeoVolume *Moth);
-    //
-    // Create figures for the documentation of this class
+    // Creates standard figures for the documentation of this class
     virtual void CreateFigure0(const Char_t *filepath="",
-                               const Char_t *type="gif");
+                               const Char_t *type="gif",
+                              TGeoManager *mgr=gGeoManager);
+    // Defnes/creates SPD Centeral detector materials
+    virtual Int_t CreateSPDCenteralMaterials(Int_t &Medffset,Int_t &matOffset);
+    // Sets SPD Centeral, GEANT3 type, Tracking parameters
+    virtual void InitSPDCenteral(Int_t offset,TVirtualMC *mc=gMC);
+    //
   private:
+    // Computes shape of the SPD Sector given specific inputs Internal use only
     void SPDsectorShape(Int_t n,const Double_t *xc,const Double_t *yc,
           const Double_t *r,const Double_t *ths,const Double_t *the,Int_t npr,
                         Int_t &m,Double_t **xp,Double_t **yp);