]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMD2.cxx
Added protection if the OCDB is allready initialized
[u/mrichter/AliRoot.git] / FMD / AliFMD2.cxx
index 37ac44a271b2b7ff45fb5915bbcc295c9b65dec9..8e86894a199a16be8a9d3f54a0354dbab7fff1ef 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
-
+/** @file    AliFMD2.cxx
+    @author  Christian Holm Christensen <cholm@nbi.dk>
+    @date    Sun Mar 26 18:25:51 2006
+    @brief   Concrete implementation of AliFMDDetector for FMD2
+*/
 //____________________________________________________________________
 //                                                                          
 // Concrete implementation of AliFMDDetector 
 //
 // This implements the geometry for FMD2
+// The FMD2 has two ring, one of both types. 
+// FMD2 is mounted on the space-frame via 4 flanges
+// Support is not fleshed ot yet. 
+// Support will be simple compared to FMD3.
 //
 #include "AliFMD2.h"           // ALIFMD2_H 
-#include "AliFMDRing.h"                // ALIFMDRING_H 
+#include "AliLog.h"
+// #include "AliFMDRing.h"             // ALIFMDRING_H 
 
 //====================================================================
 ClassImp(AliFMD2)
@@ -34,8 +42,16 @@ ClassImp(AliFMD2)
 AliFMD2::AliFMD2(AliFMDRing* inner, AliFMDRing* outer) 
   : AliFMDDetector(2, inner, outer)
 {
-  SetInnerZ(83.4);
-  SetOuterZ(75.2);
+  // Constructor 
+  // SetInnerZ(83.4);
+  // SetOuterZ(75.2);
+  // Double_t off = 0.414256-0.1963; // 2.35
+  Double_t off = 0; // 0.414256-0.1963+.27; // 2.35
+  if (off < 0) off = 0;
+  if (off != 0) 
+    AliWarning(Form("Z position of FMD2 rings may be wrong by %fcm!", off));
+  SetInnerZ(83.4+off);
+  SetOuterZ(75.2+off);
 }
 
 
@@ -43,6 +59,7 @@ AliFMD2::AliFMD2(AliFMDRing* inner, AliFMDRing* outer)
 void
 AliFMD2::Init() 
 {
+  // Initialize 
   AliFMDDetector::Init();
   SetInnerHoneyHighR(GetOuterHoneyHighR());
 }