Better trigger histogram
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Oct 2012 14:48:38 +0000 (14:48 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Oct 2012 14:48:38 +0000 (14:48 +0000)
PWGLF/FORWARD/analysis2/AliAODForwardMult.cxx
PWGLF/FORWARD/analysis2/AliAODForwardMult.h

index c71d3ea..40eeac7 100644 (file)
@@ -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");
index f9443ba..3198068 100644 (file)
@@ -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