]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDGeometryBuilder.h
fixes
[u/mrichter/AliRoot.git] / FMD / AliFMDGeometryBuilder.h
index 2a77662d5f876742add1947dc2291eefa4f7c651..5fa3879d187206e389f45f05996d8b1dcff4f58d 100644 (file)
@@ -7,6 +7,10 @@
  *
  * See cxx source for full Copyright notice                               
  */
+// Builder of FMD geometry. 
+// This class takes care of actually building the geometry using the 
+// TGeo classes.  Various parameters are fecthed from the
+// AliFMDGeometry manager.  
 /** @file    AliFMDGeometryBuilder.h
     @author  Christian Holm Christensen <cholm@nbi.dk>
     @date    Mon Mar 27 12:41:17 2006
@@ -20,6 +24,7 @@
 #endif
 class TGeoVolume;
 class TGeoMedium;
+class TGeoShape;
 class AliFMD;
 class AliFMDRing;
 class AliFMDDetector;
@@ -60,21 +65,91 @@ public:
     /** @return Detector offfset in the volume tree  */
   Int_t GetDetectorOff() const { return fDetectorOff; }
 protected:
-  /** Make a ring volume 
-      @param r Ring geometry 
-      @return  Ring volume */
-  virtual TGeoVolume* RingGeometry(AliFMDRing* r);
-  /** Make a detector volume 
-      @param d Detector geometry 
-      @param motherTop Mother volume (detector volume)
-      @param motherBot Mother volume (detector volume)
-      @param zmother Z position of mother 
-      @param innerTop Inner ring volume 
-      @param innerBot Inner ring volume 
-      @param outerTop Outer ring volume 
-      @param outerBot Outer ring volume 
-      @return  Detector volume */
-  virtual TGeoVolume* DetectorGeometry(AliFMDDetector* d, 
+  /** Copy CTOR */
+  AliFMDGeometryBuilder(const AliFMDGeometryBuilder& o) 
+    : TTask(o),
+      fActiveId(o.fActiveId),
+      fDetailed(o.fDetailed),
+      fUseAssembly(o.fUseAssembly),
+      fSectorOff(o.fSectorOff),
+      fModuleOff(o.fModuleOff),
+      fRingOff(o.fRingOff),
+      fDetectorOff(o.fDetectorOff),
+      fSi(o.fSi),
+      fC(o.fC),
+      fAl(o.fAl),
+      fPCB(o.fPCB),
+      fChip(o.fChip),
+      fAir(o.fAir),
+      fPlastic(o.fPlastic),
+      fCopper(o.fCopper), 
+      fSteel(o.fSteel)
+  {}
+  /** 
+   * Assignment operator 
+   *
+   * @return Reference to this object
+   */  
+  AliFMDGeometryBuilder& operator=(const AliFMDGeometryBuilder&){return *this;}
+
+  /** 
+   * Make a polygonic extrusion shape based on verticies passed in @a
+   * verticies 
+   * 
+   * @param verticies List of verticies
+   * @param thick     Thickness
+   * 
+   * @return newly allocated polygonic extrusion shape
+   */
+  virtual TGeoShape* MakeXTRU(const TObjArray& verticies, Double_t thick) const;
+  
+  /** 
+   * Make a ring volume 
+   * 
+   * @param r Ring geometry 
+   *
+   * @return  Ring volume 
+   */
+  virtual TGeoVolume* RingGeometry(const AliFMDRing* r);
+
+  /** 
+   * Make a honey comb shape from passed parameters.
+   *
+   * @param id       Detector identifier (1,2, or 3)
+   * @param ring     Ring identifier ('I' or 'O')
+   * @param r1       Inner radius
+   * @param r2       Outer radius
+   * @param w        width 
+   * @param t        Thickness of material 
+   * @param c        Clearing from horizontal. 
+   *
+   * @return Pointer to newly allocated composite shape. 
+   */ 
+  virtual TGeoShape* HoneycombShape(Int_t id, Char_t ring,
+                                   double r1, double r2, 
+                                   double w, double t, double c=0.3);
+  /** 
+   * Get the tension box volume
+   * 
+   * 
+   * @return 
+   */
+  virtual TGeoVolume* TensionBox();
+  /** 
+   * Make a detector volume 
+   *
+   * @param d Detector geometry 
+   * @param motherTop Mother volume (detector volume)
+   * @param motherBot Mother volume (detector volume)
+   * @param zmother Z position of mother 
+   * @param innerTop Inner ring volume 
+   * @param innerBot Inner ring volume 
+   * @param outerTop Outer ring volume 
+   * @param outerBot Outer ring volume 
+   *
+   * @return  Detector volume 
+   */
+  virtual TGeoVolume* DetectorGeometry(const AliFMDDetector* d, 
                                       TGeoVolume* motherTop, 
                                       TGeoVolume* motherBot, 
                                       Double_t    zmother, 
@@ -82,34 +157,45 @@ protected:
                                       TGeoVolume* innerBot, 
                                       TGeoVolume* outerTop=0,
                                       TGeoVolume* outerBot=0);
-  /** Make FMD1 volume 
-      @param d Detector geometry 
-      @param innerTop Inner ring volume 
-      @param innerBot Inner ring volume 
-      @return FMD1 volume  */
-  virtual TGeoVolume* FMD1Geometry(AliFMD1* d, 
+  /** 
+   * Make FMD1 volume 
+   *
+   * @param d Detector geometry 
+   * @param innerTop Inner ring volume 
+   * @param innerBot Inner ring volume 
+   * @return FMD1 volume  
+   */
+  virtual TGeoVolume* FMD1Geometry(const AliFMD1* d, 
                                   TGeoVolume* innerTop,
                                   TGeoVolume* innerBot);
-  /** Make FMD2 volume 
-      @param d Detector geometry 
-      @param innerTop Inner ring volume 
-      @param innerBot Inner ring volume 
-      @param outerTop Outer ring volume 
-      @param outerBot Outer ring volume 
-      @return FMD2 volume  */
-  virtual TGeoVolume* FMD2Geometry(AliFMD2* d, 
+  /** 
+   * Make FMD2 volume 
+   *
+   * @param d Detector geometry 
+   * @param innerTop Inner ring volume 
+   * @param innerBot Inner ring volume 
+   * @param outerTop Outer ring volume 
+   * @param outerBot Outer ring volume 
+   *
+   * @return FMD2 volume  
+   */
+  virtual TGeoVolume* FMD2Geometry(const AliFMD2* d, 
                                   TGeoVolume* innerTop, 
                                   TGeoVolume* innerBot, 
                                   TGeoVolume* outerTop,
                                   TGeoVolume* outerBot);
-  /** Make FMD3 volume 
-      @param d Detector geometry 
-      @param innerTop Inner ring volume 
-      @param innerBot Inner ring volume 
-      @param outerTop Outer ring volume 
-      @param outerBot Outer ring volume 
-      @return FMD3 volume  */
-  virtual TGeoVolume* FMD3Geometry(AliFMD3* d, 
+  /**
+   * Make FMD3 volume 
+   *
+   * @param d Detector geometry 
+   * @param innerTop Inner ring volume 
+   * @param innerBot Inner ring volume 
+   * @param outerTop Outer ring volume 
+   * @param outerBot Outer ring volume 
+   *
+   * @return FMD3 volume  
+   */
+  virtual TGeoVolume* FMD3Geometry(const AliFMD3* d, 
                                   TGeoVolume* innerTop, 
                                   TGeoVolume* innerBot, 
                                   TGeoVolume* outerTop,
@@ -132,6 +218,7 @@ protected:
   TGeoMedium* fAir;     //! Air Medium
   TGeoMedium* fPlastic;         //! Plastic Medium
   TGeoMedium* fCopper;  //! Copper Medium
+  TGeoMedium* fSteel;   //! Steel Medium
 
   static const Char_t* fgkActiveName;  // Name of Active volumes
   static const Char_t* fgkSectorName;  // Name of Sector volumes
@@ -150,8 +237,13 @@ protected:
   static const Char_t* fgkIHCName;     // Name of Inner honeycomb volumes
   static const Char_t* fgkNoseName;    // Name of Nose volumes
   static const Char_t* fgkBackName;    // Name of Back volumes
+  static const Char_t* fgkTopName;     // Name of Back volumes
   static const Char_t* fgkBeamName;    // Name of Beam volumes
   static const Char_t* fgkFlangeName;  // Name of Flange volumes
+  static const Char_t* fgkFMDDCuName;   // Name of FMDD copper volumes
+  static const Char_t* fgkFMDDPCBName;  // Name of FMDD PCB volumes 
+  static const Char_t* fgkFMDDChipName; // Name of FMDD chip volumes
+  static const Char_t* fgkFMDDName;    // Name of FMDD volumes
   static const Char_t* fgkFMDName;     // Name of Half FMD volumes
 
   ClassDef(AliFMDGeometryBuilder,1)