]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecPoint.cxx
Corrected bug in MakeBranch (was using a different version of STEER)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecPoint.cxx
index ce8f7126d8059439e85b888f616eead41055ab95..e2a9ccf8219df5e61e3ed36a2288c5928e0c3ab7 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
-
 //_________________________________________________________________________
 //  Base Class for PHOS Reconstructed Points  
-//                  
+//  Why should I put meaningless comments
+//  just to satisfy
+//  the code checker                
 //*-- Author: Gines Martinez (SUBATECH)
 
 // --- ROOT system ---
@@ -152,19 +152,20 @@ break;
     
   }
 }
+//____________________________________________________________________________
+void AliPHOSRecPoint::EvalAll() {
+  //evaluates (if necessary) all RecPoint data members 
 
+  EvalPHOSMod() ;
+}
 //____________________________________________________________________________
-Int_t AliPHOSRecPoint::GetPHOSMod()
+void AliPHOSRecPoint::EvalPHOSMod() 
 {
   // Returns the PHOS module in which the RecPoint is found
  
-  if(fPHOSMod > 0) 
-    return fPHOSMod ;
-
   AliPHOSIndexToObject * please =  AliPHOSIndexToObject::GetInstance() ; 
 
-  Int_t relid[4] ;
-  
+  Int_t relid[4] ; 
   
   AliPHOSDigit * digit   ;
   digit = (AliPHOSDigit *) ( please->GimeDigit(fDigitsList[0]) ) ;
@@ -172,11 +173,10 @@ Int_t AliPHOSRecPoint::GetPHOSMod()
 
   phosgeom->AbsToRelNumbering(digit->GetId(), relid) ;
   fPHOSMod = relid[0];
-  return fPHOSMod ;
 }
 
 //______________________________________________________________________________
-Int_t * AliPHOSRecPoint::GetPrimaries(Int_t & number)
+Int_t * AliPHOSRecPoint::GetPrimaries(Int_t & number) const
 {
   // Constructs the list of primary particles which have contributed to this RecPoint