]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/PHOSHistos.cxx
Macro taken from oldmacros and fixed up a bit.
[u/mrichter/AliRoot.git] / PHOS / PHOSHistos.cxx
index 7d5274280ab64e6a29988941467e028aa52018d0..b746f08f472a98e212dcd323e3cd3c7c54b13157 100644 (file)
@@ -60,7 +60,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 guess " << particleidentifier->GetName() << endl ; 
+  cout <<  "AnalyzeOneEvent > using particle identifier " << particleidentifier->GetName() << endl ; 
     
   TH1F * hEmcDigit       = new TH1F("hEmcDigit","hEmcDigit",1000,0.,5.);
   TH1F * hVetoDigit      = new TH1F("hVetoDigit","hVetoDigit",1000,0.,3.e-5);
@@ -127,7 +127,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 +138,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 +155,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) ;