]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDSurveyToAlignObjs.cxx
Protection against div by 0 added.
[u/mrichter/AliRoot.git] / FMD / AliFMDSurveyToAlignObjs.cxx
index 1e7f2eb872f0aad62cdaad53cb99aa43805eda03..cbfb403e71613b51b30541a204c1a856cfcdb916 100644 (file)
@@ -318,6 +318,8 @@ namespace {
   {
     static Double_t off = 0;
     return off;
+
+#if 0
     if (off != 0) return off;
     
     const char* lidN = "FMD1_lid_mat0";
@@ -333,6 +335,7 @@ namespace {
     off                  = lidZ-3.3;
     
     return off;
+#endif
   }
 }
 
@@ -670,8 +673,7 @@ AliFMDSurveyToAlignObjs::FillDefaultAlignObjs()
     const char* side   = sides;
     while (*side) { 
       TString path = TString::Format("FMD/FMD%d_%c", d, *side);
-      AliAlignObjParams* p = FindAlignObj(path);
-      if (!p) p = CreateDefaultAlignObj(path, 0);
+      if (!FindAlignObj(path)) CreateDefaultAlignObj(path, 0);
 
       const char halves[] = { 'I', d == 1 ? '\0' : 'O', 0 };
       const char*  half = halves;