Draw spd mult histogram in viewer
authorslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 7 Nov 2010 00:13:04 +0000 (00:13 +0000)
committerslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 7 Nov 2010 00:13:04 +0000 (00:13 +0000)
HLT/EVE/AliHLTEveMultCorr.cxx

index ade51eb..118c75d 100644 (file)
@@ -100,13 +100,17 @@ void AliHLTEveMultCorr::ProcessBlock(AliHLTHOMERBlockDesc* block)
             if (!fTpcMultCanvas) 
            {
              fTpcMultCanvas = CreateCanvas("TPC Mult", "TPC Multiplicities");
-             fTpcMultCanvas->Divide(2);
+             fTpcMultCanvas->Divide(2, 2);
            }
             oneDf = dynamic_cast<TH1F*>(hlist->FindObject("fTpcNch2"));
             AddHistogramToCanvas(oneDf, fTpcMultCanvas, cd);
            cd++;
             oneDf = dynamic_cast<TH1F*>(hlist->FindObject("fTpcNch3"));
             AddHistogramToCanvas(oneDf, fTpcMultCanvas, cd);
+           cd++;
+           oneDf = dynamic_cast<TH1F*>(hlist->FindObject("fSpdNClusters"));
+           
+            AddHistogramToCanvas(oneDf, fTpcMultCanvas, cd);
 
            cd = 1;
             // Correlations
@@ -208,6 +212,8 @@ void AliHLTEveMultCorr::AddHistogramToCanvas(TH1* hist, TCanvas* canvas, Int_t&
         if (!strcmp(hist->ClassName(), "TH1F"))
         {
            canvas->cd(cdCount);
+           TPad * pad = dynamic_cast<TPad*>(canvas->cd(cdCount));
+           pad->SetLogy();
             dynamic_cast<TH1F*>(hist)->Draw();
         }
         else if (!strcmp(hist->ClassName(), "TH2F"))