fix: generate DataContainer highmult data only it is needed
authoresicking <esicking@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Oct 2010 15:17:44 +0000 (15:17 +0000)
committeresicking <esicking@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Oct 2010 15:17:44 +0000 (15:17 +0000)
PWG4/macros/AddTaskMinijet.C

index 46f5e4c..e5e3f52 100644 (file)
@@ -64,17 +64,21 @@ AliAnalysisTaskMinijet* AddTaskMinijet(Int_t runNumber, TString format="esd",Boo
   if(runNumber>0){ 
     output1  =  mgr->CreateContainer("MiniJets",TList::Class(),
                                  AliAnalysisManager::kOutputContainer, Form("run%d.root",runNumber));
-    outputHM =  mgr->CreateContainer("MiniJets_HighMult",TList::Class(),
-                                 AliAnalysisManager::kOutputContainer, Form("run%d.root",runNumber));
+    if(!format.CompareTo("esd") && IsHighMult){
+      outputHM =  mgr->CreateContainer("MiniJets_HighMult",TList::Class(),
+                                      AliAnalysisManager::kOutputContainer, Form("run%d.root",runNumber));
+    }
    }
    
    else{
      output1  = mgr->CreateContainer("MiniJets",TList::Class(),
                                 AliAnalysisManager::kOutputContainer, 
                                 Form("%s:PWG4_MiniJets",AliAnalysisManager::GetCommonFileName()));
-     outputHM = mgr->CreateContainer("MiniJets_HighMult",TList::Class(),
-                                    AliAnalysisManager::kOutputContainer, 
-                                    Form("%s:PWG4_MiniJets",AliAnalysisManager::GetCommonFileName()));
+     if(!format.CompareTo("esd") && IsHighMult){
+       outputHM = mgr->CreateContainer("MiniJets_HighMult",TList::Class(),
+                                      AliAnalysisManager::kOutputContainer, 
+                                      Form("%s:PWG4_MiniJets",AliAnalysisManager::GetCommonFileName()));
+     }
      
    }