Fixing destructor for CAF usage
authormfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 1 Oct 2010 08:01:22 +0000 (08:01 +0000)
committermfloris <mfloris@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 1 Oct 2010 08:01:22 +0000 (08:01 +0000)
ANALYSIS/AliCollisionNormalizationTask.cxx
ANALYSIS/macros/runProofNormalization.C

index 0eb26eb..bc93c5d 100644 (file)
@@ -69,7 +69,7 @@ AliCollisionNormalizationTask::~AliCollisionNormalizationTask()
   // histograms are in the output list and deleted when the output
   // list is deleted by the TSelector dtor
 
-  if (fOutput) {
+  if (fOutput && !AliAnalysisManager::GetAnalysisManager()->IsProofMode()) {
     delete fOutput;
     fOutput = 0;
   }
index fd0e622..ad1491a 100644 (file)
@@ -2,7 +2,7 @@
 void runProofNormalization(const char * dataset = "LHC09b12_7TeV_0.5T", TString dataSetPath ="/PWG0/jgrosseo/",const char * filename = "LHC09b12_7TeV_0.5T_norm.root", Bool_t isMC = 1,Int_t nev =123456789) {
 
   gEnv->SetValue("XSec.GSI.DelegProxy","2");
-  TProof::Open("alice-caf","workers=20");// limit the number of workers
+  TProof::Open("alice-caf","workers=26");// limit the number of workers
   //  gROOT->ProcessLine(Form(".include %s/include",gSystem->ExpandPathName("$ALICE_ROOT")));
   //  gSystem->AddIncludePath("-I${ALICE_ROOT}/include/ -I${ALICE_ROOT}/PWG0/ -I${ALICE_ROOT}/PWG0/dNdEta/");
   //  gSystem->AddIncludePath("-I${ALICE_ROOT}/include/");