]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliQADataMaker.cxx
Include cstdlib (gcc 4.3.0)
[u/mrichter/AliRoot.git] / STEER / AliQADataMaker.cxx
index 3b375b4e2e3cf8646976498b384ad7f8ac9b538c..56b715529fbe2d448f0c33a42da1801cbb79e106 100644 (file)
@@ -76,6 +76,11 @@ Int_t AliQADataMaker::Add2List(TH1 * hist, const Int_t index, TObjArray * list)
 { 
        // Set histograms memory resident and add to the list
        // Maximm allowed is 10000
+        TString className(hist->ClassName()) ;
+        if( ! className.BeginsWith("T") ) {
+               AliError(Form("QA data Object must be a generic ROOT object and not %s", className.Data())) ; 
+               return -1 ;
+       }
        if ( index > 10000 ) {
                AliError("Max number of authorized QA objects is 10000") ; 
                return -1 ;