2020#include " PWGJE/Core/JetFindingUtilities.h"
2121#include " PWGJE/Core/JetDerivedDataUtilities.h"
2222#include " Common/Core/RecoDecay.h"
23+ #include " PWGLF/DataModel/V0SelectorTables.h"
2324
2425using namespace o2 ;
2526using namespace o2 ::analysis;
@@ -80,6 +81,7 @@ struct JetFinderV0Task {
8081 Configurable<int > jetPtBinWidth{" jetPtBinWidth" , 5 , " used to define the width of the jetPt bins for the THnSparse" };
8182 Configurable<bool > fillTHnSparse{" fillTHnSparse" , true , " switch to fill the THnSparse" };
8283 Configurable<double > jetExtraParam{" jetExtraParam" , -99.0 , " sets the _extra_param in fastjet" };
84+ Configurable<bool > useV0SignalFlags{" useV0SignalFlags" , true , " use V0 signal flags table" };
8385
8486 Service<o2::framework::O2DatabasePDG> pdgDatabase;
8587 int trackSelection = -1 ;
@@ -148,7 +150,6 @@ struct JetFinderV0Task {
148150 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?
149151 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);
150152 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);
151- // Filter candidateCuts = (aod::hfcand::pt >= candPtMin && aod::hfcand::pt < candPtMax && aod::hfcand::y >= candYMin && aod::hfcand::y < candYMax);
152153
153154 // function that generalically processes Data and reco level events
154155 template <typename T, typename U, typename V, typename M, typename N>
@@ -158,7 +159,7 @@ struct JetFinderV0Task {
158159 return ;
159160 }
160161 inputParticles.clear ();
161- if (!jetfindingutilities::analyseV0s (inputParticles, candidates, candPtMin, candPtMax, candYMin, candYMax, candIndex)) {
162+ if (!jetfindingutilities::analyseV0s (inputParticles, candidates, candPtMin, candPtMax, candYMin, candYMax, candIndex, useV0SignalFlags )) {
162163 return ;
163164 }
164165
@@ -179,7 +180,7 @@ struct JetFinderV0Task {
179180 {
180181
181182 inputParticles.clear ();
182- if (!jetfindingutilities::analyseV0s (inputParticles, candidates, candPtMin, candPtMax, candYMin, candYMax, candIndex)) {
183+ if (!jetfindingutilities::analyseV0s (inputParticles, candidates, candPtMin, candPtMax, candYMin, candYMax, candIndex, useV0SignalFlags )) {
183184 return ;
184185 }
185186 jetfindingutilities::analyseParticles<true >(inputParticles, particleSelection, jetTypeParticleLevel, particles, pdgDatabase, std::optional{candidates});
0 commit comments