Now the non standard branch is correctly set when using single jet finder from AOD
authordperrino <dperrino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 May 2010 11:36:57 +0000 (11:36 +0000)
committerdperrino <dperrino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 May 2010 11:36:57 +0000 (11:36 +0000)
PWG4/macros/AddTaskJets.C

index 405670b..1ae7a23 100644 (file)
@@ -52,8 +52,6 @@ Int_t AddTaskJetsDelta(char *nonStdFile,UInt_t filterMask,Bool_t kUseAODMC,UInt_
 \r
   TString outFile(nonStdFile);\r
 \r
-  TString type = mgr->GetInputEventHandler()->GetDataType();\r
-\r
   AliAnalysisTaskJets *jetana = 0;\r
   Int_t iCount = 0;\r
 \r
@@ -135,8 +133,7 @@ AliAnalysisTaskJets *AddTaskJets(Char_t *jr, Char_t *jf, Float_t radius,UInt_t f
    if(radius>0)cRadius = Form("%02d",(int)((radius+0.01)*10.));\r
 \r
    jetana = new AliAnalysisTaskJets(Form("JetAnalysis%s_%s%s",jr,jf,cRadius));\r
-   TString type = mgr->GetInputEventHandler()->GetDataType();\r
-   if (type == "AOD") jetana->SetNonStdBranch(Form("jets%s",jf));\r
+   if (jr == "AOD") jetana->SetNonStdBranch(Form("jets%s_%s%s",jr,jf,cRadius));\r
    \r
    TString c_jr(jr);\r
    c_jr.ToLower();\r