set ( EXPORT ${HDRS} )
if( ALICE_TARGET STREQUAL "win32gcc")
- set ( ELIBS -L${ALICE_ROOT}/lib/tgt_${ALICE_TARGET} -lPWGflowBase -lPWGmuon -lANALYSISalice -lANALYSIS -lAOD -lESD -lSTEERBase ${ROOTCLIBS} -lEG )
+ set ( ELIBS -L${ALICE_ROOT}/lib/tgt_${ALICE_TARGET} -lPWGflowBase -lPWGJE/EMCALJetTasks/ -lPWGmuon -lANALYSISalice -lANALYSIS -lAOD -lESD -lSTEERBase ${ROOTCLIBS} -lEG )
endif( ALICE_TARGET STREQUAL "win32gcc")
-set ( EINCLUDE PWG/FLOW/Base PWG/FLOW/Tasks STEER/ESD STEER/STEERBase PWG/muon)
+set ( EINCLUDE PWG/FLOW/Base PWG/FLOW/Tasks STEER/ESD STEER/STEERBase PWGJE/EMCALJetTasks/ PWG/muon)
#include <TString.h>
#include <AliAODEvent.h>
#include <AliESDEvent.h>
+#include <AliEmcalJet.h>
#include "AliAnalysisTaskJetFlow.h"
if(!InputEvent() || !fCutsNull || !fCutsRP) return; // coverity (and sanity)
// get the jet array, which is added as an extension to the AliVEvent by the jetfinder
TClonesArray* jets = dynamic_cast<TClonesArray*>(InputEvent()->FindListObject(fJetsName.Data()));
+ Int_t nAcceptedJets(0);
if(jets) {
Int_t iJets = jets->GetEntriesFast();
if(iJets <= 0) {
fFlowEvent->DefineDeadZone(0, 0, 0, 0);
// loop over jets and inject them as POI's
for(Int_t i(0); i < iJets; i++) {
- AliVParticle* jet = static_cast<AliVParticle*>(jets->At(i));
+ AliEmcalJet* jet = static_cast<AliEmcalJet*>(jets->At(i));
if(jet) {
- if(jet->Pt() + fPtBump <= 0) {
+ if(jet->Pt() + fPtBump <= .15) {
fHistAnalysisSummary->SetBinContent(4, 1);
continue;
}
+ nAcceptedJets++;
AliFlowTrack* flowTrack = new AliFlowTrack(jet);
- flowTrack->SetPt(flowTrack->Pt() + fPtBump);
+ flowTrack->SetPt(jet->PtSub() + fPtBump);
flowTrack->SetForPOISelection(kTRUE);
flowTrack->SetForRPSelection(kFALSE);
fFlowEvent->InsertTrack(flowTrack);
- }
+ }
}
}
else if(fDebug > 0 ) printf(" Failed to find TClones Jet array while using name %s \n ", fJetsName.Data());
+ if(nAcceptedJets < 1) {
+ printf(" > No accepted jets in event ! < " );
+ return;
+ }
PostData(1, fOutputList);
PostData(2, fFlowEvent);
if(fDebug>0) {
void AddTaskJetFlow( TString name = "name",
TString jets = "jets",
- Float_t ptbump = 200,
+ Float_t ptbump = 0,
TArrayI* cent = 0x0,
Bool_t debug = kTRUE )
{
}
// check the centrality setup
if(!cent) {
- Int_t c[] = {0, 20, 40, 60, 80, 100};
+ Int_t c[] = {0, 10, 30, 50, 70, 90};
cent = new TArrayI(sizeof(c)/sizeof(c[0]), c);
printf(" > Setup default centrality binning with %i bins \n ", cent->GetSize());
}