From 06f9b5260db8e1e9d19c5f6f4d1b2a6084a7fa76 Mon Sep 17 00:00:00 2001 From: snelling Date: Mon, 14 Dec 2009 14:02:17 +0000 Subject: [PATCH] if statement around mc eventplane --- PWG2/FLOW/macros/runFlowTask.C | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/PWG2/FLOW/macros/runFlowTask.C b/PWG2/FLOW/macros/runFlowTask.C index 0266f5b7007..77993329f8f 100644 --- a/PWG2/FLOW/macros/runFlowTask.C +++ b/PWG2/FLOW/macros/runFlowTask.C @@ -15,7 +15,7 @@ Bool_t LYZEP = kFALSE; Bool_t GFC = kTRUE; Bool_t QC = kTRUE; Bool_t FQD = kTRUE; -Bool_t MCEP = kTRUE; //not for pp +Bool_t MCEP = kFALSE; //not for pp Bool_t METHODS[] = {SP,LYZ1SUM,LYZ1PROD,LYZ2SUM,LYZ2PROD,LYZEP,GFC,QC,FQD,MCEP}; @@ -57,17 +57,19 @@ void runFlowTask(Int_t mode=mPROOF, Int_t nRuns = 1000000, if (type == "ESD"){ AliVEventHandler* esdH = new AliESDInputHandler; mgr->SetInputEventHandler(esdH); - - AliMCEventHandler *mc = new AliMCEventHandler(); - mgr->SetMCtruthEventHandler(mc); + if (MCEP) { + AliMCEventHandler *mc = new AliMCEventHandler(); + mgr->SetMCtruthEventHandler(mc); + } } if (type == "AOD"){ AliVEventHandler* aodH = new AliAODInputHandler; mgr->SetInputEventHandler(aodH); - - AliMCEventHandler *mc = new AliMCEventHandler(); - mgr->SetMCtruthEventHandler(mc); + if (MCEP) { + AliMCEventHandler *mc = new AliMCEventHandler(); + mgr->SetMCtruthEventHandler(mc); + } } if (type == "MC" || type == "ESDMC0" || type == "ESDMC1"){ -- 2.39.3