Corrected cast
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Dec 2009 16:42:31 +0000 (16:42 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Dec 2009 16:42:31 +0000 (16:42 +0000)
PWG0/dNdPt/AlidNdPtCutAnalysis.cxx

index 756c696e5f17a778a2080549ad97842dba5c62f5..5c549fcf68051e58c161e240102d83a81149a113 100644 (file)
@@ -410,7 +410,7 @@ void AlidNdPtCutAnalysis::Analyse()
   aFolderObj->Add(h2D);\r
 \r
   fEventCount->GetAxis(0)->SetRange(1,1); // triggered\r
-  h1D = (TH2D*)fEventCount->Projection(1);\r
+  h1D = (TH1D*)fEventCount->Projection(1);\r
   h1D->SetTitle("rec. vertex for triggered events");\r
   h1D->SetName("trigANDvertex");\r
   aFolderObj->Add(h1D);\r