+ if(kIsPbPb){
+ taskCl = AddTaskJetCluster("AOD","",kHighPtFilterMask,iPhysicsSelectionFlag,"KT",0.4,0,1, kDeltaAODJetName.Data(),0.15,fTrackEtaWindow,fVertexWindow,0); // this one is for the background and random jets, random cones with no skip
+ taskCl->SetBackgroundCalc(kTRUE);
+ taskCl->SetNRandomCones(1);
+ // taskCl->SetDebugLevel(11);
+ taskCl->SetCentralityCut(fCenLo,fCenUp);
+
+ taskCl->SetJetTypes(1<<0|1<<2|1<<3);
+ kDefaultJetBackgroundBranch = Form("%s_%s",AliAODJetEventBackground::StdBranchName(),taskCl->GetJetOutputBranch());
+ kJetListSpectrum.Add(new TObjString(taskCl->GetJetOutputBranch()));
+ kJetListSpectrum.Add(new TObjString(Form("%sRandomConeSkip%02d",taskCl->GetJetOutputBranch(),0)));
+ kJetListSpectrum.Add(new TObjString(Form("%sRandomCone_random",taskCl->GetJetOutputBranch())));
+
+ kJetSubtractBranches += Form("%s%s ",taskCl->GetJetOutputBranch(),"RandomConeSkip00");
+ kJetSubtractBranches += Form("%s%s ",taskCl->GetJetOutputBranch(),"RandomCone_random");
+
+ taskCl = AddTaskJetCluster("AOD","",kHighPtFilterMask,iPhysicsSelectionFlag,"KT",0.4,0,1, kDeltaAODJetName.Data(),1.0,fTrackEtaWindow,fVertexWindow,0); // this one is for the background and random jets, random cones with no skip
+ taskCl->SetNRandomCones(1);
+ taskCl->SetBackgroundCalc(kTRUE);
+ taskCl->SetCentralityCut(fCenLo,fCenUp);
+ if(iAODanalysis==2)taskCl->SetAODTrackInput(kTRUE);
+
+ taskCl->SetJetTypes(1<<0|1<<2|1<<3);
+ kDefaultJetBackgroundBranchCut1 = Form("%s_%s",AliAODJetEventBackground::StdBranchName(),taskCl->GetJetOutputBranch());
+ kJetSubtractBranchesCut1 += Form("%s%s ",taskCl->GetJetOutputBranch(),"RandomConeSkip00");
+ kJetSubtractBranchesCut1 += Form("%s%s ",taskCl->GetJetOutputBranch(),"RandomCone_random");
+ kJetListSpectrum.Add(new TObjString(taskCl->GetJetOutputBranch()));
+ kJetListSpectrum.Add(new TObjString(Form("%sRandomConeSkip%02d",taskCl->GetJetOutputBranch(),0)));
+ kJetListSpectrum.Add(new TObjString(Form("%sRandomCone_random",taskCl->GetJetOutputBranch())));
+
+ taskCl = AddTaskJetCluster("AOD","",kHighPtFilterMask,iPhysicsSelectionFlag,"KT",0.4,0,1, kDeltaAODJetName.Data(),2.0,fTrackEtaWindow,fVertexWindow,0); // this one is for the background and random jets, random cones with no skip
+ taskCl->SetNRandomCones(1);
+ taskCl->SetBackgroundCalc(kTRUE);
+ taskCl->SetCentralityCut(fCenLo,fCenUp);
+ if(iAODanalysis==2)taskCl->SetAODTrackInput(kTRUE);
+
+ taskCl->SetJetTypes(1<<0|1<<2|1<<3);
+ kDefaultJetBackgroundBranchCut2 = Form("%s_%s",AliAODJetEventBackground::StdBranchName(),taskCl->GetJetOutputBranch());
+ kJetSubtractBranchesCut2 += Form("%s%s ",taskCl->GetJetOutputBranch(),"RandomConeSkip00");
+ kJetSubtractBranchesCut2 += Form("%s%s ",taskCl->GetJetOutputBranch(),"RandomCone_random");
+ kJetListSpectrum.Add(new TObjString(taskCl->GetJetOutputBranch()));
+ kJetListSpectrum.Add(new TObjString(Form("%sRandomConeSkip%02d",taskCl->GetJetOutputBranch(),0)));
+ kJetListSpectrum.Add(new TObjString(Form("%sRandomCone_random",taskCl->GetJetOutputBranch())));
+
+
+ if (iPWG4FastEmbedding) {
+ AliAnalysisTaskJetCluster *taskClEmb = 0;
+ taskClEmb = AddTaskJetCluster("AODextra","",kHighPtFilterMask,iPhysicsSelectionFlag,"KT",0.4,0,1, kDeltaAODJetName.Data(),0.15,fTrackEtaWindow,fVertexWindow); // this one is for the background and random jets
+ taskClEmb->SetBackgroundCalc(kTRUE);
+ taskClEmb->SetCentralityCut(fCenLo,fCenUp);
+ if(iAODanalysis==2)taskClEmb->SetAODTrackInput(kTRUE);
+ kDefaultJetBackgroundBranch_extra = Form("%s_%s",AliAODJetEventBackground::StdBranchName(),taskClEmb->GetJetOutputBranch());
+
+ taskClEmb = AddTaskJetCluster("AODextraonly","",kHighPtFilterMask,iPhysicsSelectionFlag,"KT",0.4,0,1, kDeltaAODJetName.Data(),0.15,fTrackEtaWindow,fVertexWindow); // this one is for the background and random jets
+ taskClEmb->SetBackgroundCalc(kFALSE);
+ taskClEmb->SetCentralityCut(fCenLo,fCenUp);
+ if(iAODanalysis==2)taskClEmb->SetAODTrackInput(kTRUE);
+
+ taskClEmb = AddTaskJetCluster("AODextra","",kHighPtFilterMask,iPhysicsSelectionFlag,"ANTIKT",0.4,0,1,kDeltaAODJetName.Data(),0.15,fTrackEtaWindow,fVertexWindow);
+ taskClEmb->SetCentralityCut(fCenLo,fCenUp);
+ taskClEmb->SetBackgroundBranch(kDefaultJetBackgroundBranch_extra.Data());
+ kJetSubtractBranches_extra += Form("%s ",taskClEmb->GetJetOutputBranch());
+ if(iAODanalysis==2)taskClEmb->SetAODTrackInput(kTRUE);
+
+ taskClEmb = AddTaskJetCluster("AODextraonly","",kHighPtFilterMask,iPhysicsSelectionFlag,"ANTIKT",0.4,0,1,kDeltaAODJetName.Data(),0.15,fTrackEtaWindow,fVertexWindow);
+ taskClEmb->SetCentralityCut(fCenLo,fCenUp);
+ if(iAODanalysis==2)taskClEmb->SetAODTrackInput(kTRUE);
+ }
+
+ taskCl = AddTaskJetCluster("AOD","",kHighPtFilterMask,iPhysicsSelectionFlag,"KT",0.2,0,1, kDeltaAODJetName.Data(),0.15,fTrackEtaWindow,fVertexWindow,0); // this one is for the background and random jets
+ taskCl->SetNRandomCones(1);
+ taskCl->SetBackgroundCalc(kTRUE);
+ taskCl->SetCentralityCut(fCenLo,fCenUp);
+ taskCl->SetJetTypes(1<<0|1<<2|1<<3);
+ kJetListSpectrum.Add(new TObjString(taskCl->GetJetOutputBranch()));
+ kJetListSpectrum.Add(new TObjString(Form("%sRandomConeSkip%02d",taskCl->GetJetOutputBranch(),0)));
+ kJetListSpectrum.Add(new TObjString(Form("%sRandomCone_random",taskCl->GetJetOutputBranch())));
+
+
+
+ if(iAODanalysis==2)taskCl->SetAODTrackInput(kTRUE);