]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSJetFinder.cxx
Tom's request for steel stainless skin thickness
[u/mrichter/AliRoot.git] / PHOS / AliPHOSJetFinder.cxx
index a8996ff19577cc0423a83029e8fb1531bf7e3e84..dd14f16514baf79a056786f360ea2fdabc2a87b7 100644 (file)
 //*-- Author : D.Peressounko after UA1 coll. etc
 //////////////////////////////////////////////////////////////////////////////
 
+/* $Id$ */
+
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
 // --- ROOT system ---
 #include "TClonesArray.h"
 //      #include "TIter.h"
@@ -29,6 +36,7 @@
 // --- Standard library ---
 
 // --- AliRoot header files ---
+#include "AliLog.h"
 #include "AliPHOSJet.h"
 #include "AliPHOSGeometry.h"
 #include "AliPHOSDigit.h"
@@ -166,7 +174,7 @@ void  AliPHOSJetFinder::FindJetsFromParticles(const TClonesArray * plist,TObjArr
 void AliPHOSJetFinder::FindJetsFromDigits(const TClonesArray * digits, TObjArray * jets){
   //Find jets in the case witht detector at the level of digits.
   if(digits->GetEntries()==0){
-    Error("JetsFromDigits","No entries in digits list \n") ;
+    AliError(Form("No entries in digits list \n")) ;
     return ;
   }
 
@@ -288,7 +296,7 @@ void AliPHOSJetFinder::FindJetsFromDigits(const TClonesArray * digits, TObjArray
 Double_t AliPHOSJetFinder::Calibrate(const AliPHOSDigit * digit){ 
 //   if(fPedestals || fGains ){  //use calibration data
 //     if(!fPedestals || !fGains ){
-//       Error("Calibrate","Either Pedestals of Gains not set!") ;
+//       AliError(Form("Either Pedestals of Gains not set!")) ;
 //       return 0 ;
 //     }
 //     Float_t en=(digit->GetAmp() - fPedestals->Data(digit->GetId)()))*fGains->Data(digit->GetId()) ;
@@ -301,7 +309,7 @@ Double_t AliPHOSJetFinder::Calibrate(const AliPHOSDigit * digit){
   if(fSimGain==0){ //read simulation parameters
     AliPHOSGetter * gime = AliPHOSGetter::Instance() ;
     if(!gime){
-      Error("Calibrate","Can not read Calibration parameters") ;
+      AliError(Form("Can not read Calibration parameters")) ;
       return 0 ;
     }
     const TTask * task = gime->Digitizer() ;
@@ -327,7 +335,7 @@ void AliPHOSJetFinder::CalculateEEtaPhi(const AliPHOSDigit * d,Double_t &e, Doub
   phi = pos.Phi() ;
 }
 //____________________________________________________________________________ 
-void AliPHOSJetFinder::Print(){        
+void AliPHOSJetFinder::Print(const Option_t *) const { 
   //Print parameters of the found jet
   printf("\n --------------- AliPHOSJetFinder --------------- \n") ;
   printf(" Jets found .........%d \n",fNJets) ;