Bug fix
authorrbailhac <rbailhac@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Dec 2012 11:53:31 +0000 (11:53 +0000)
committerrbailhac <rbailhac@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Dec 2012 11:53:31 +0000 (11:53 +0000)
PWGHF/hfe/AliAnalysisTaskHFEFlow.cxx
PWGHF/hfe/macros/AddTaskHFEtpctofv2.C

index 32c58f36abeeec24bac62c7a33548f930f221a2f..acc9e0c62dace43befb2dfd37937264cd4158e6e 100644 (file)
@@ -1284,7 +1284,7 @@ void AliAnalysisTaskHFEFlow::UserExec(Option_t */*option*/)
   Bool_t mcthere = kTRUE;\r
   if(fAODAnalysis) {\r
     AliAODEvent *aodE = dynamic_cast<AliAODEvent *>(fInputEvent);\r
-    if(aodE){\r
+    if(!aodE){\r
       //        printf("testd\n");\r
       AliError("No AOD Event");\r
       return;\r
index af6f089b850f9ab0c7a52da22a19e62651a5045f..9a8ef5fb6460a6e48f3fd0dd2c586665906559fe 100644 (file)
@@ -1,4 +1,4 @@
-AliAnalysisTask *AddTaskHFEtpctofv2(UInt_t trigger=131073,Int_t aodfilter=16,Int_t tpcCls=110, Double_t tpcClsr=50, Int_t tpcClspid=60, Double_t tpcsharedfraction=10, Bool_t rejectkinkmother, Int_t itsCls=4, Double_t chi2peritscl=36, Int_t pixellayer=2, Double_t dcaxy=100,Double_t dcaz=200, Double_t tofsig=30., Double_t tpceff=50., Int_t vzero=1,Int_t debuglevel=5,Double_t etarange=80,Double_t ITSclustersback=0,Double_t minTPCback=-2.0,Double_t maxTPCback=5.0){
+AliAnalysisTask *AddTaskHFEtpctofv2(UInt_t trigger=131073,Int_t aodfilter=16,Int_t tpcCls=110, Double_t tpcClsr=60, Int_t tpcClspid=80, Double_t tpcsharedfraction=11, Bool_t rejectkinkmother=kFALSE, Int_t itsCls=4, Double_t chi2peritscl=36, Int_t pixellayer=2, Double_t dcaxy=100,Double_t dcaz=200, Double_t tofsig=30., Double_t tpceff=50., Int_t vzero=1,Int_t debuglevel=0,Double_t etarange=80,Double_t ITSclustersback=0,Double_t minTPCback=-2.0,Double_t maxTPCback=5.0){
 
   //
   // Define TPC cut for 2011 data
@@ -68,7 +68,7 @@ AliAnalysisTask *AddTaskHFEtpctofv2(UInt_t trigger=131073,Int_t aodfilter=16,Int
 
   //set config file name
   TString configFile("$ALICE_ROOT/PWGHF/hfe/macros/configs/PbPb/ConfigHFE_FLOW_TOFTPC.C");
-  //TString configFile("/d/alice12/bailhache/AliRootInstallations/07_10_2012/AliRoot/PWGHF/hfe/macros/configs/PbPb/ConfigHFE_FLOW_TOFTPC.C");
+  //TString configFile("/d/alice12/bailhache/AliRootInstallations/29_11_2012/AliRoot/PWGHF/hfe/macros/configs/PbPb/ConfigHFE_FLOW_TOFTPC.C");
   TString checkconfig="ConfigHFE_FLOW_TOFTPC";
   if (!gROOT->GetListOfGlobalFunctions()->FindObject(checkconfig.Data()))
     gROOT->LoadMacro(configFile.Data());