]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
rearrange the x-y input of histograms for CORRFW requierements
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Aug 2009 15:58:55 +0000 (15:58 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Aug 2009 15:58:55 +0000 (15:58 +0000)
PWG4/PartCorrDep/AliAnaPhoton.cxx

index 4ccf74300ebf0732f54ba3353b9bbd9168314f09..9f110a9b9508384b8d16f3eb4c5e2158c57ed412 100755 (executable)
@@ -205,13 +205,13 @@ TList *  AliAnaPhoton::GetCreateOutputObjects()
     outputContainer->Add(fhRatioPt);    
 
     fh2E  = new TH2F ("h2E","E distribution, reconstructed vs generated", nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); 
-    fh2E->SetYTitle("E_{rec} (GeV)");
-    fh2E->SetXTitle("E_{gen} (GeV)");
+    fh2E->SetXTitle("E_{rec} (GeV)");
+    fh2E->SetYTitle("E_{gen} (GeV)");
     outputContainer->Add(fh2E);          
     
     fh2Pt  = new TH2F ("h2Pt","p_T distribution, reconstructed vs generated", nptbins,ptmin,ptmax,nptbins,ptmin,ptmax); 
-    fh2Pt->SetYTitle("p_{T,rec} (GeV/c)");
-    fh2Pt->SetXTitle("p_{T,gen} (GeV/c)");
+    fh2Pt->SetXTitle("p_{T,rec} (GeV/c)");
+    fh2Pt->SetYTitle("p_{T,gen} (GeV/c)");
     outputContainer->Add(fh2Pt);
    
        fhPtMCPhoton  = new TH1F("hPtMCPhoton","Number of #gamma over calorimeter",nptbins,ptmin,ptmax); 
@@ -726,8 +726,8 @@ void  AliAnaPhoton::MakeAnalysisFillHistograms()
                
        }
        
-       fh2E     ->Fill(eprim,ecluster);
-       fh2Pt    ->Fill(ptprim, ptcluster);     
+       fh2E     ->Fill(ecluster, eprim);
+       fh2Pt    ->Fill(ptcluster, ptprim);     
        fhDeltaE ->Fill(eprim-ecluster);
        fhDeltaPt->Fill(ptprim-ptcluster);     
        if(eprim > 0)  fhRatioE  ->Fill(ecluster/eprim);