COVERITY reports many FORWARD_NULL, corrected; AliEMCALv2: initialization of fHits...
[u/mrichter/AliRoot.git] / FMD / AliFMD1.cxx
index 0a5b74d..cbe4e2e 100644 (file)
@@ -29,6 +29,7 @@
 // FMD1 currently has no support defined. 
 //
 #include "AliFMD1.h"           // ALIFMD1_H 
+#include <AliLog.h>
 // #include "AliFMDRing.h"             // ALIFMDRING_H 
 
 
@@ -42,10 +43,23 @@ ClassImp(AliFMD1)
 AliFMD1::AliFMD1(AliFMDRing* inner) 
   : AliFMDDetector(1, inner, 0)
 {
-// Subtracting 0.5 cm puts the middle plane of the detector at 320 cm
-  SetInnerZ(320. - 0.5);
+  // 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);
+}
 
 //____________________________________________________________________
 //