]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSEvalRecPoint.cxx
Protection for noCPV geometry
[u/mrichter/AliRoot.git] / PHOS / AliPHOSEvalRecPoint.cxx
index 4477d8cc78c30f70598b963f2aab7087a1d5db31..ee688a386c32465ee8cbf32cbd85791c6c3c49de 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-/* $Id:  */
 
-/* $Log:
- */
+/* $Id$ */
+
 //*-- Author: Boris Polichtchouk, IHEP
 //////////////////////////////////////////////////////////////////////////////
 // Reconstructed point operations for the Clusterization class for IHEP reconstruction.
 // It differs from AliPHOSClusterizerv1 in neighbour definition only
 
 // ---- ROOT system ---
-#include "TDirectory.h"
-#include "TBranch.h"
-#include "TTree.h"
-#include "TROOT.h"
-#include "TFolder.h"
+#include <TMath.h>
+#include <TDirectory.h>
+#include <TBranch.h>
+#include <TTree.h>
+#include <TROOT.h>
+#include <TFolder.h>
 
 // --- AliRoot header files ---
 #include "AliLog.h"
@@ -91,12 +91,14 @@ AliPHOSEvalRecPoint::AliPHOSEvalRecPoint(Bool_t cpv, AliPHOSEvalRecPoint* parent
   
 }
 
-AliPHOSEvalRecPoint::AliPHOSEvalRecPoint(Int_t i, Bool_t cpv) : fEventFolderName(AliConfig::GetDefaultEventFolderName())
+AliPHOSEvalRecPoint::AliPHOSEvalRecPoint(Int_t i, Bool_t cpv) : 
+  fIsEmc(kFALSE),
+  fIsCpv(kFALSE),
+  fParent(-333),
+  fChi2Dof(-111),
+  fEventFolderName(AliConfig::GetDefaultEventFolderName())
 {
   // ctor
-  fChi2Dof=-111;
-  fParent=-333;
-
   AliPHOSEmcRecPoint* rp=0;
 
   AliPHOSLoader* fLoader = AliPHOSLoader::GetPHOSLoader(fEventFolderName);
@@ -242,7 +244,8 @@ void AliPHOSEvalRecPoint::Init()
     logWeight = clusterizer->GetCpvLogWeight();
   }
   
-  EvalLocalPosition(logWeight,digits); // evaluate initial position
+  TVector3 vtx(0.,0.,0.) ;
+  EvalLocalPosition(logWeight,vtx,digits); // evaluate initial position
 }
 
 
@@ -1020,7 +1023,8 @@ Int_t AliPHOSEvalRecPoint::UnfoldLocalMaxima()
            }
        }
 
-      newRP->EvalLocalPosition(logWeight,digits);
+      TVector3 vtx(0.,0.,0.) ;
+      newRP->EvalLocalPosition(logWeight,vtx,digits);
       AliInfo(Form("======= Unfold: daughter rec point %d =================", 
                   iMax)) ;
       newRP->Print();