3737#include " PWGJE/Core/JetFindingUtilities.h"
3838#include " PWGJE/DataModel/Jet.h"
3939#include " PWGJE/DataModel/JetReducedData.h"
40+ #include " PWGLF/DataModel/V0SelectorTables.h"
4041
4142using namespace o2 ;
4243using namespace o2 ::framework;
@@ -93,6 +94,7 @@ struct JetFinderV0Task {
9394 Configurable<int > jetPtBinWidth{" jetPtBinWidth" , 5 , " used to define the width of the jetPt bins for the THnSparse" };
9495 Configurable<bool > fillTHnSparse{" fillTHnSparse" , true , " switch to fill the THnSparse" };
9596 Configurable<double > jetExtraParam{" jetExtraParam" , -99.0 , " sets the _extra_param in fastjet" };
97+ Configurable<bool > useV0SignalFlags{" useV0SignalFlags" , true , " use V0 signal flags table" };
9698
9799 Service<o2::framework::O2DatabasePDG> pdgDatabase;
98100 int trackSelection = -1 ;
@@ -161,7 +163,6 @@ struct JetFinderV0Task {
161163 Filter mcCollisionFilter = ((skipMBGapEvents.node() == false ) || (aod::jmccollision::subGeneratorId != static_cast <int >(jetderiveddatautilities::JCollisionSubGeneratorId::mbGap))); // should we add a posZ vtx cut here or leave it to analysers?
162164 Filter trackCuts = (aod::jtrack::pt >= trackPtMin && aod::jtrack::pt < trackPtMax && aod::jtrack::eta >= trackEtaMin && aod::jtrack::eta <= trackEtaMax && aod::jtrack::phi >= trackPhiMin && aod::jtrack::phi <= trackPhiMax);
163165 Filter partCuts = (aod::jmcparticle::pt >= trackPtMin && aod::jmcparticle::pt < trackPtMax && aod::jmcparticle::eta >= trackEtaMin && aod::jmcparticle::eta <= trackEtaMax && aod::jmcparticle::phi >= trackPhiMin && aod::jmcparticle::phi <= trackPhiMax);
164- // Filter candidateCuts = (aod::hfcand::pt >= candPtMin && aod::hfcand::pt < candPtMax && aod::hfcand::y >= candYMin && aod::hfcand::y < candYMax);
165166
166167 // function that generalically processes Data and reco level events
167168 template <typename T, typename U, typename V, typename M, typename N>
@@ -171,7 +172,7 @@ struct JetFinderV0Task {
171172 return ;
172173 }
173174 inputParticles.clear ();
174- if (!jetfindingutilities::analyseV0s (inputParticles, candidates, candPtMin, candPtMax, candYMin, candYMax, candIndex)) {
175+ if (!jetfindingutilities::analyseV0s (inputParticles, candidates, candPtMin, candPtMax, candYMin, candYMax, candIndex, useV0SignalFlags )) {
175176 return ;
176177 }
177178
@@ -192,7 +193,7 @@ struct JetFinderV0Task {
192193 {
193194
194195 inputParticles.clear ();
195- if (!jetfindingutilities::analyseV0s (inputParticles, candidates, candPtMin, candPtMax, candYMin, candYMax, candIndex)) {
196+ if (!jetfindingutilities::analyseV0s (inputParticles, candidates, candPtMin, candPtMax, candYMin, candYMax, candIndex, useV0SignalFlags )) {
196197 return ;
197198 }
198199 jetfindingutilities::analyseParticles<true >(inputParticles, particleSelection, jetTypeParticleLevel, particles, pdgDatabase, &candidates);
0 commit comments