]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDRing.cxx
AliEveEventManager
[u/mrichter/AliRoot.git] / FMD / AliFMDRing.cxx
index b887b4b6f8f4ffddfc5440d84c22ede2e293edda..b53588f997092b582d2fbc225a1a93f04895ccfc 100644 (file)
@@ -21,8 +21,7 @@
 //__________________________________________________________________
 //
 // Utility class to help implement collection of FMD modules into
-// rings.  This is used by AliFMDDetector and AliFMDGeometry.  
-//
+// rings.  This is used by AliFMDDetector and AliFMDGeometry.
 // The AliFMDGeometry object owns the AliFMDRing objects, and the
 // AliFMDDetector objects reference these.  That is, the AliFMDRing
 // objects are share amoung the AliFMDDetector objects.
 // Latest changes by Christian Holm Christensen
 //
 
-#include <AliLog.h>            // ALILOG_H
-#include "AliFMDRing.h"                // ALIFMDRING_H
 #include <TMath.h>             // ROOT_TMath
 #include <TVector2.h>          // ROOT_TVector2
 
+// #include <AliLog.h>         // ALILOG_H
+#include "AliFMDRing.h"                // ALIFMDRING_H
+
 //====================================================================
 ClassImp(AliFMDRing)
 #if 0
@@ -45,6 +45,26 @@ ClassImp(AliFMDRing)
 AliFMDRing::AliFMDRing(Char_t id) 
   : TNamed(Form("FMD%c", id), "Forward multiplicity ring"), 
     fId(id), 
+    fBondingWidth(0),
+    fWaferRadius(0),
+    fSiThickness(0),
+    fLowR(0),
+    fHighR(0),
+    fMinR(0),
+    fMaxR(0),
+    fTheta(0),
+    fNStrips(0),
+    fRingDepth(0),
+    fLegRadius(0),
+    fLegLength(0),
+    fLegOffset(0),
+    fModuleSpacing(0),
+    fPrintboardThickness(0),
+    fCopperThickness(0),
+    fChipThickness(0),
+    fSpacing(0),
+    fHoneycombThickness(0.),
+    fAlThickness(0.),
     fVerticies(0)
 {
   // CTOR
@@ -59,6 +79,8 @@ AliFMDRing::AliFMDRing(Char_t id)
   SetCopperThickness();
   SetChipThickness();
   SetSpacing();
+  SetHoneycombThickness();
+  SetAlThickness();
   
   if (fId == 'I' || fId == 'i') {
     SetLowR(4.3);
@@ -132,6 +154,24 @@ AliFMDRing::GetStripRadius(UShort_t strip) const
   return (strip + .5) * dstrip + stripoff; // fLowR
 }
  
+//____________________________________________________________________
+Double_t
+AliFMDRing::GetFullDepth() const
+{
+  return (GetSiThickness() + 
+         GetSpacing() + 
+         GetPrintboardThickness() + 
+         GetCopperThickness() + 
+         GetChipThickness() + 
+         GetModuleSpacing() +
+         GetLegLength() + 
+         GetHoneycombThickness() + 
+         GetFMDDPrintboardThickness() + 
+         GetFMDDCopperThickness() + 
+         GetFMDDChipThickness() 
+         + 0.5);
+}
+
 //____________________________________________________________________
 void
 AliFMDRing::Detector2XYZ(UShort_t sector,