]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/FORWARD/analysis2/DrawdNdeta.C
Fix some problems, and clean up code
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis2 / DrawdNdeta.C
index 9246913cf23cc384866d75a9dea000b010e1f7f1..eded880e61ab7b78f60bdde8987320a719898315 100644 (file)
@@ -1234,6 +1234,8 @@ struct dNdetaDrawer
    */
   TH1* Ratio(const TObject* o1, const TObject* o2, Double_t& max) const
   {
+    if (!o1 || !o2) return 0;
+
     TH1* r = 0;
     const TH1* h1 = dynamic_cast<const TH1*>(o1); 
     if (h1) {