]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/FORWARD/analysis2/DrawdNdeta.C
Added task to make the dN/deta from SPD clusters
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis2 / DrawdNdeta.C
index ba9d8eace6fdb4fa3cf2918ba830ea8c070de0ed..9a2adf7162ff4d90cb8fd9c1cb9021bf008e1fca 100644 (file)
@@ -247,8 +247,14 @@ struct dNdetaDrawer
     fForward   = GetResult(results, "dndetaForward");
     fForwardMC = GetResult(results, "dndetaForwardMC");
     fTruth     = GetResult(results, "dndetaTruth");
-    fCentral   = GetResult(results, "dndetaCentral");
 
+    TList* clusters = static_cast<TList*>(file->Get("CentralResults"));
+    if (!clusters) 
+      Warning("Open", "Couldn't find list CentralResults");
+    else {
+      fCentral   = GetResult(clusters, "dndetaCentral");
+      fCentral->SetMarkerColor(kGreen+1);
+    }
     if (!fTrigString) 
       fTrigString = static_cast<TNamed*>(results->FindObject("trigString"));
     if (!fSNNString)