Adding eta histos.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Feb 2013 10:38:01 +0000 (10:38 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Feb 2013 10:38:01 +0000 (10:38 +0000)
PWGCF/Correlations/DPhi/MuonHadron/AliAnalysisTaskMuonHadronCorrelations.cxx
PWGCF/Correlations/DPhi/MuonHadron/AliAnalysisTaskMuonHadronCorrelations.h

index 62c2a21..8881b5c 100644 (file)
@@ -52,6 +52,8 @@ AliAnalysisTaskMuonHadronCorrelations::AliAnalysisTaskMuonHadronCorrelations() :
     }
     fHistNTracksCB_vs_NTracksMA[iCent]  = NULL;
     fHistNTracksCB_vs_NTracksMAmixed[iCent]  = NULL;
+    fHistTracksEtaMAvsEtaCB[iCent] = NULL;
+    fHistTracksEtaMAvsEtaCBmixed[iCent] = NULL;
     fHistSingleMuonsPt[iCent]   = NULL;
     fHistSingleMuonsPtmixed[iCent]   = NULL;
     fHistSingleMuonsEtaVsPt[iCent]   = NULL;
@@ -98,6 +100,8 @@ AliAnalysisTaskMuonHadronCorrelations::AliAnalysisTaskMuonHadronCorrelations(con
     }
     fHistNTracksCB_vs_NTracksMA[iCent]  = NULL;
     fHistNTracksCB_vs_NTracksMAmixed[iCent]  = NULL;
+    fHistTracksEtaMAvsEtaCB[iCent] = NULL;
+    fHistTracksEtaMAvsEtaCBmixed[iCent] = NULL;
     fHistSingleMuonsPt[iCent]   = NULL;
     fHistSingleMuonsPtmixed[iCent]   = NULL;
     fHistSingleMuonsEtaVsPt[iCent]   = NULL;
@@ -177,8 +181,17 @@ void AliAnalysisTaskMuonHadronCorrelations::UserCreateOutputObjects() {
     fHistNTracksCB_vs_NTracksMAmixed[iCent] -> SetYTitle("N_{tracks} Muon Arm");
     fHistNTracksCB_vs_NTracksMAmixed[iCent] -> Sumw2();
 
+    fHistTracksEtaMAvsEtaCB[iCent] = new TH2D(Form("fHistTracksEtaMAvsEtaCB_%02d",iCent),
+                                             "#eta muon vs #eta barrel",
+                                             100,-4.5,-2.,100,-1.5,1.5);
+    fHistTracksEtaMAvsEtaCBmixed[iCent] = new TH2D(Form("fHistTracksEtaMAvsEtaCBmixed_%02d",iCent),
+                                                  "#eta muon vs #eta barrel",
+                                                  100,-4.5,-2.,100,-1.5,1.5);
+
     fOutputList -> Add(fHistNTracksCB_vs_NTracksMA[iCent]);
     fOutputList -> Add(fHistNTracksCB_vs_NTracksMAmixed[iCent]);
+    fOutputList -> Add(fHistTracksEtaMAvsEtaCB[iCent]);
+    fOutputList -> Add(fHistTracksEtaMAvsEtaCBmixed[iCent]);
 
     fHistSingleMuonsPt[iCent] = new TH1D(Form("fHistSingleMuonPt_Cent%02d",iCent),
                                         "p_{T} for single muons",
@@ -338,6 +351,8 @@ void AliAnalysisTaskMuonHadronCorrelations::FillHistograms(Int_t centrality, Int
   if (option==kSingleEvent)     fHistDeltaPhi[centrality][ptBinTrackCB-1][ptBinTrackMA-1]    -> Fill(TMath::RadToDeg()*deltaPhi);
   else if (option==kMixedEvent) fHistDeltaPhiMix[centrality][ptBinTrackCB-1][ptBinTrackMA-1] -> Fill(TMath::RadToDeg()*deltaPhi);
 
+  if (option==kSingleEvent)     fHistTracksEtaMAvsEtaCB[centrality]->Fill(fTrackMA->Eta(),fTrackCB->Eta());
+  else if (option==kMixedEvent) fHistTracksEtaMAvsEtaCBmixed[centrality]->Fill(fTrackMA->Eta(),fTrackCB->Eta());
 }
 
 //====================================================================================================================================================
index ac67008..00d9ffd 100644 (file)
@@ -74,6 +74,8 @@ class  AliAnalysisTaskMuonHadronCorrelations : public AliAnalysisTaskSE {
   TH1D *fHistDeltaPhiMix[fNMaxBinsCentrality][fNMaxBinsPt][fNMaxBinsPt]; //!
   TH2D *fHistNTracksCB_vs_NTracksMA[fNMaxBinsCentrality]; //!
   TH2D *fHistNTracksCB_vs_NTracksMAmixed[fNMaxBinsCentrality]; //!
+  TH2D *fHistTracksEtaMAvsEtaCB[fNMaxBinsCentrality]; //!
+  TH2D *fHistTracksEtaMAvsEtaCBmixed[fNMaxBinsCentrality]; //!
   TH1D *fHistSingleMuonsPt[fNMaxBinsCentrality]; //!
   TH1D *fHistSingleMuonsPtmixed[fNMaxBinsCentrality]; //!