added error messages when task does not post data in UserCreateOutputObjects for...
[u/mrichter/AliRoot.git] / ANALYSIS / AliBackgroundSelection.cxx
index 1257d97..aeafdc1 100644 (file)
@@ -228,13 +228,13 @@ void AliBackgroundSelection::BookClusterVsTrackletsHisto(const char * trigger_na
   Bool_t oldStatus = TH1::AddDirectoryStatus();
   TH1::AddDirectory(kFALSE);
 
-  TH2F * h1 = new TH2F(GetClusterVsTrackletsHistoName(trigger_name),trigger_name, 50, -0.5, 49.5, 1000, -0.5, 999.5);
+  TH2F * h1 = new TH2F(GetClusterVsTrackletsHistoName(trigger_name),trigger_name, 300, -0.5, 2999.5, 1000, -0.5, 9999.5);
   h1->SetXTitle("Tracklets");
   h1->SetYTitle("SPD Clusters");
   AliInfo(Form("Creating histos: %s, all and accepted", GetClusterVsTrackletsHistoName(trigger_name)));
 
   TH2F * h2 = new TH2F(GetClusterVsTrackletsHistoNameAccepted(trigger_name),TString(trigger_name)+ "(accepted)", 
-                      50, -0.5, 49.5, 1000, -0.5, 999.5);
+                      300, -0.5, 2999.5, 1000, -0.5, 9999.5);
   h2->SetXTitle("Tracklets");
   h2->SetYTitle("SPD Clusters");
 
@@ -382,7 +382,7 @@ Long64_t AliBackgroundSelection::Merge(TCollection* const list)
   // the same order. We thus also have to sort the list (sorting is
   // done by name in TList).
 
-  AliInfo("Merging");
+  //AliInfo("Merging");
 
   if (!list)
     return 0;
@@ -442,7 +442,7 @@ Long64_t AliBackgroundSelection::Merge(TCollection* const list)
 
       while ((hist= iterlist->Next())){ 
        if(!otherlist->FindObject(hist->GetName())){
-         AliInfo(Form("Adding object %s",hist->GetName()));
+         //AliInfo(Form("Adding object %s",hist->GetName()));
          foundDiffinThisIterStep = kTRUE;
          TH1 * hclone =  (TH1*) hist->Clone();
          hclone->Reset();
@@ -450,6 +450,7 @@ Long64_t AliBackgroundSelection::Merge(TCollection* const list)
        }
       }
 
+      delete iterlist;
       // re-sort before checking
       hlist->Sort();
       fOutputHist->Sort();