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 c71d3eab8297f2d20dbec0f563f0d545c8fd4738..40eeac7f6e67e4ad3485536fdcef910a2cc0b007 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->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(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");
   ret->GetXaxis()->SetBinLabel(kBinMCNSD,       "NSD (MC truth)");
   ret->GetXaxis()->SetBinLabel(kBinPileUp,      "w/Pileup");
   ret->GetXaxis()->SetBinLabel(kBinOffline,     "w/Offline");
index f9443ba6e2d4e08803735b8ef088587593b55368..31980684d63f52069fd0c7c74f016b436c4e9a89 100644 (file)
@@ -78,7 +78,7 @@ class TH1I;
  *   }
  * 
  *   // Get acceptance normalisation from underflow bins 
  *   }
  * 
  *   // 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 
  *   // Project onto eta axis - _ignoring_underflow_bins_!
  *   TH1D* dndeta = sum->Projection("dndeta", 1, -1, "e");
  *   // Normalize to the acceptance