]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/PHOSHistos.cxx
coding conventions corrections
[u/mrichter/AliRoot.git] / PHOS / PHOSHistos.cxx
index e12d287c9d948512a9656c19635cdfef673ab6f3..01e665e522581b0d1b787d22f5f76c0f90d83b07 100644 (file)
@@ -26,7 +26,6 @@
 
 // --- Standard library ---
 
-#include <iostream>
 #include <cstdio>
 
 
@@ -60,7 +59,7 @@ void PHOSHistos (Text_t* infile, Int_t nevent, Int_t Module)
   AliPHOSTrackSegmentMakerv1 * tracksegmentmaker = new AliPHOSTrackSegmentMakerv1() ;
   //========== Creates the particle identifier
   AliPHOSPIDv1 * particleidentifier = new AliPHOSPIDv1 ;
-  cout <<  "AnalyzeOneEvent > using particle identifier " << particleidentifier->GetName() << endl ; 
+  Info("PHOSHistos", "AnalyzeOneEvent > using particle identifier %s\n", particleidentifier->GetName() ) ; 
     
   TH1F * hEmcDigit       = new TH1F("hEmcDigit","hEmcDigit",1000,0.,5.);
   TH1F * hVetoDigit      = new TH1F("hVetoDigit","hVetoDigit",1000,0.,3.e-5);
@@ -88,7 +87,7 @@ void PHOSHistos (Text_t* infile, Int_t nevent, Int_t Module)
   //========== Creates the Reconstructioner  
     AliPHOSReconstructioner * Reconstructioner = new AliPHOSReconstructioner(clusterizer, tracksegmentmaker, particleidentifier) ;
      
-    cout << "Event " << ievent <<endl;
+    Info("PHOSHistos", "Event %d\n", ievent);
 
     Int_t RelId[4] ;
     //=========== Connects the various Tree's for evt
@@ -127,7 +126,7 @@ void PHOSHistos (Text_t* infile, Int_t nevent, Int_t Module)
      {
        if ( emc->GetPHOSMod() == Module )
        {  
-         Energy = emc->GetTotalEnergy() ;
+         Energy = emc->GetEnergy() ;
         hEmcCluster->Fill(Energy); 
          printf("Energy of the EMC cluster is %f \n",Energy);
         TClonesArray * PpsdRP = PHOS->PpsdClusters() ;
@@ -138,7 +137,7 @@ void PHOSHistos (Text_t* infile, Int_t nevent, Int_t Module)
           {
             if ( Ppsd->GetPHOSMod() == Module )
               { 
-                Energy2 = Ppsd->GetTotalEnergy() ;
+                Energy2 = Ppsd->GetEnergy() ;
                 
                 if (!Ppsd->GetUp()) hConvertorEmc->Fill(Energy,Energy2) ;
               }
@@ -155,7 +154,7 @@ void PHOSHistos (Text_t* infile, Int_t nevent, Int_t Module)
      {
        if ( Ppsd->GetPHOSMod() == Module )
        { 
-         Energy = Ppsd->GetTotalEnergy() ;
+         Energy = Ppsd->GetEnergy() ;
 
         if (!Ppsd->GetUp()) hConvertorCluster->Fill(Energy) ;
         if (Ppsd->GetUp()) hVetoCluster->Fill(Energy) ;