diff --git a/PWGJE/Tasks/phiInJets.cxx b/PWGJE/Tasks/phiInJets.cxx index 35025786b68..16e42aa8fe4 100644 --- a/PWGJE/Tasks/phiInJets.cxx +++ b/PWGJE/Tasks/phiInJets.cxx @@ -32,7 +32,7 @@ #include "Common/DataModel/EventSelection.h" #include "Common/DataModel/TrackSelectionTables.h" #include "Common/DataModel/Multiplicity.h" -//#include "Common/DataModel/Centrality.h" +// #include "Common/DataModel/Centrality.h" #include "Common/DataModel/PIDResponse.h" #include "CommonConstants/PhysicsConstants.h" @@ -70,6 +70,7 @@ struct phiInJets { Configurable cfgnTOFPID{"cfgnTOFPID", 4, "nTOF PID"}; Configurable cfgjetPtMin{"cfgjetPtMin", 5.0, "minimum jet pT cut"}; Configurable cfgjetR{"cfgjetR", 0.4, "jet resolution parameter"}; + Configurable cDebugLevel{"cDebugLevel", 0, "Resolution of Debug"}; // CONFIG DONE ///////////////////////////////////////// //INIT @@ -308,8 +309,13 @@ struct phiInJets { } // MinvReconstruction int nEvents = 0; - void processJetTracks(aod::JCollision const& collision, soa::Filtered const& fulljets, soa::Join const& tracks, TrackCandidates const&) + void processJetTracks(aod::JCollision const& collision, soa::Filtered const& chargedjets, soa::Join const& tracks, TrackCandidates const&) { + if (cDebugLevel > 0) { + nEvents++; + if ((nEvents + 1) % 10000 == 0) + std::cout << nEvents << std::endl; + } JEhistos.fill(HIST("nEvents"), 0.5); if (!JetDerivedDataUtilities::selectCollision(collision, eventSelection)) @@ -318,12 +324,12 @@ struct phiInJets { for (auto& [track1, track2] : combinations(o2::soa::CombinationsFullIndexPolicy(tracks, tracks))) { auto trk1 = track1.track_as>(); auto trk2 = track2.track_as>(); - minvReconstruction(1.0, trk1, trk2, fulljets); + minvReconstruction(1.0, trk1, trk2, chargedjets); } - for (auto fulljet : fulljets) { - JEhistos.fill(HIST("FJetaHistogram"), fulljet.eta()); - JEhistos.fill(HIST("FJphiHistogram"), fulljet.phi()); - JEhistos.fill(HIST("FJptHistogram"), fulljet.phi()); + for (auto chargedjet : chargedjets) { + JEhistos.fill(HIST("FJetaHistogram"), chargedjet.eta()); + JEhistos.fill(HIST("FJphiHistogram"), chargedjet.phi()); + JEhistos.fill(HIST("FJptHistogram"), chargedjet.pt()); } JEhistos.fill(HIST("nEvents"), 1.5);