]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixed some null pointers passed to TList::Add.
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Apr 2011 22:26:16 +0000 (22:26 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Apr 2011 22:26:16 +0000 (22:26 +0000)
Fixed centrality axis bins

PWG2/FORWARD/analysis2/AliFMDDensityCalculator.cxx
PWG2/FORWARD/analysis2/AliFMDEventInspector.cxx

index e363ebfe93617766dd34fe49d4c5d13f977902b1..283cb616cd7fd83dda594c2a12077dfa65acdbb8 100644 (file)
@@ -1144,9 +1144,9 @@ AliFMDDensityCalculator::RingHistos::Output(TList* dir)
   d->Add(fDensity);
   d->Add(fELossVsPoisson);
   d->Add(fEmptyVsTotal);
-  d->Add(fTotalStrips);
-  d->Add(fEmptyStrips);
-  d->Add(fBasicHits);
+  // d->Add(fTotalStrips);
+  // d->Add(fEmptyStrips);
+  // d->Add(fBasicHits);
   
   
 }
index 60a780004bb3d2308cb64a0338e71684ba617c48..78960ecb26207c0a3a389ff58c48678dd3c5e5d6 100644 (file)
@@ -215,6 +215,7 @@ AliFMDEventInspector::Init(const TAxis& vtxAxis)
   // ----- 92 number --------- ---- 1 ---
   TArrayD limits(93);
   for (Int_t i = 0; i < 92; i++) limits[i] = -1.5 + i;
+  limits[92] = 100.5;
 
   fVtxAxis.Set(vtxAxis.GetNbins(), vtxAxis.GetXmin(), vtxAxis.GetXmax());
   
@@ -785,7 +786,16 @@ AliFMDEventInspector::Print(Option_t*) const
            << ind << " System:                 " 
            << AliForwardUtil::CollisionSystemString(fCollisionSystem) << '\n'
            << ind << " CMS energy per nucleon: " << sNN << '\n'
-           << ind << " Field:                  " <<  field << std::endl;
+           << ind << " Field:                  " <<  field << '\n';
+  if (!fCentAxis) { std::cout << std::flush; return; }
+  Int_t nBin = fCentAxis->GetNbins();
+  std::cout << ind << " Centrality axis:        " << nBin << " bins"
+           << std::flush;
+  for (Int_t i = 0; i < nBin; i++) { 
+    if ((i % 10) == 0) std::cout << '\n' << ind << "  ";
+    std::cout << std::setw(5) << fCentAxis->GetBinLowEdge(i+1) << '-';
+  }
+  std::cout << std::setw(5) << fCentAxis->GetBinUpEdge(nBin) << std::endl;
 }