From cd548b09217c2b9ca8f7477bc306fbe467021e27 Mon Sep 17 00:00:00 2001 From: cholm Date: Wed, 31 Oct 2012 14:48:38 +0000 Subject: [PATCH] Better trigger histogram --- PWGLF/FORWARD/analysis2/AliAODForwardMult.cxx | 11 ++++++----- PWGLF/FORWARD/analysis2/AliAODForwardMult.h | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/PWGLF/FORWARD/analysis2/AliAODForwardMult.cxx b/PWGLF/FORWARD/analysis2/AliAODForwardMult.cxx index c71d3eab829..40eeac7f6e6 100644 --- a/PWGLF/FORWARD/analysis2/AliAODForwardMult.cxx +++ b/PWGLF/FORWARD/analysis2/AliAODForwardMult.cxx @@ -236,14 +236,15 @@ AliAODForwardMult::MakeTriggerHistogram(const char* name, Int_t mask) ret->SetFillColor(kRed+1); ret->SetFillStyle(3001); ret->GetXaxis()->SetBinLabel(kBinAll, "All events"); - ret->GetXaxis()->SetBinLabel(kBinB, Form("B%s", andSel.Data())); + ret->GetXaxis()->SetBinLabel(kBinB, Form("B (Coll.)%s", + andSel.Data())); ret->GetXaxis()->SetBinLabel(kBinA, Form("A%s", andSel.Data())); ret->GetXaxis()->SetBinLabel(kBinC, Form("C%s", andSel.Data())); ret->GetXaxis()->SetBinLabel(kBinE, Form("E%s", andSel.Data())); - ret->GetXaxis()->SetBinLabel(kBinInel, "B & INEL"); - ret->GetXaxis()->SetBinLabel(kBinInelGt0, "B & INEL>0"); - ret->GetXaxis()->SetBinLabel(kBinNSD, "B & NSD"); - ret->GetXaxis()->SetBinLabel(kBinV0AND, "B & V0AND"); + ret->GetXaxis()->SetBinLabel(kBinInel, "Coll. & INEL"); + ret->GetXaxis()->SetBinLabel(kBinInelGt0, "Coll. & INEL>0"); + ret->GetXaxis()->SetBinLabel(kBinNSD, "Coll. & NSD"); + ret->GetXaxis()->SetBinLabel(kBinV0AND, "Coll. & V0AND"); ret->GetXaxis()->SetBinLabel(kBinMCNSD, "NSD (MC truth)"); ret->GetXaxis()->SetBinLabel(kBinPileUp, "w/Pileup"); ret->GetXaxis()->SetBinLabel(kBinOffline, "w/Offline"); diff --git a/PWGLF/FORWARD/analysis2/AliAODForwardMult.h b/PWGLF/FORWARD/analysis2/AliAODForwardMult.h index f9443ba6e2d..31980684d63 100644 --- a/PWGLF/FORWARD/analysis2/AliAODForwardMult.h +++ b/PWGLF/FORWARD/analysis2/AliAODForwardMult.h @@ -78,7 +78,7 @@ class TH1I; * } * * // Get acceptance normalisation from underflow bins - * TH1D* norm = sum->Projection("norm", 0, 1, ""); + * TH1D* norm = sum->ProjectionX("norm", 0, 1, ""); * // Project onto eta axis - _ignoring_underflow_bins_! * TH1D* dndeta = sum->Projection("dndeta", 1, -1, "e"); * // Normalize to the acceptance -- 2.39.3