COVERITY reports many FORWARD_NULL, corrected; AliEMCALv2: initialization of fHits...
[u/mrichter/AliRoot.git] / FMD / AliFMD1.cxx
index 91f3e77..cbe4e2e 100644 (file)
 //                                                                          
 // Concrete implementation of AliFMDDetector 
 //
-// This implements the geometry for FMD1 
+// This implements the geometry for FMD1.  
 // FMD1 has only one ring, of type `inner'.  
 // It is sitting at z=320.
-// It is the FMD ring with highest eta
+// It is the FMD ring with highest eta.  
+// FMD1 currently has no support defined. 
 //
 #include "AliFMD1.h"           // ALIFMD1_H 
+#include <AliLog.h>
 // #include "AliFMDRing.h"             // ALIFMDRING_H 
 
 
@@ -41,9 +43,23 @@ ClassImp(AliFMD1)
 AliFMD1::AliFMD1(AliFMDRing* inner) 
   : AliFMDDetector(1, inner, 0)
 {
-  SetInnerZ(320);
+  // Subtracting 0.25 cm puts the middle plane of the detector at 320
+  // cm
+  Double_t off = 0; // -0.25
+  if (off != 0) 
+    AliWarning(Form("FMD1 is off by %fcm", off));
+  SetInnerZ(321.5 + off);
+      
 }
 
+//____________________________________________________________________
+void
+AliFMD1::Init() 
+{
+  // Initialize 
+  AliFMDDetector::Init();
+  SetInnerHoneyHighR(22.3716);
+}
 
 //____________________________________________________________________
 //