Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ uint32_t updateParticles(const ParticleCursor& cursor,
bool background = false,
uint32_t weightMask = 0xFFFFFFF0,
uint32_t momentumMask = 0xFFFFFFF0,
uint32_t positionMask = 0xFFFFFFF0);
uint32_t positionMask = 0xFFFFFFF0,
bool signalFilter = false);
} // namespace o2::aodmchelpers

#endif /* O2_AODMCPRODUCER_HELPERS */
Expand Down
6 changes: 5 additions & 1 deletion Detectors/AOD/src/AODMcProducerHelpers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ uint32_t updateParticles(const ParticleCursor& cursor,
bool background,
uint32_t weightMask,
uint32_t momentumMask,
uint32_t positionMask)
uint32_t positionMask,
bool signalFilter)
{
using o2::mcutils::MCTrackNavigator;
using namespace o2::aod::mcparticle::enums;
Expand Down Expand Up @@ -354,6 +355,9 @@ uint32_t updateParticles(const ParticleCursor& cursor,
continue;
}
}
if (background && signalFilter) {
continue;
}

// Store this particle. We mark that putting a 1 in the
// `toStore` mapping. This will later on be updated with the
Expand Down
3 changes: 2 additions & 1 deletion Detectors/AOD/src/AODProducerWorkflowSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,8 @@ void AODProducerWorkflowDPL::fillMCParticlesTable(o2::steer::MCKinematicsReader&
source == 0, // background
mMcParticleW,
mMcParticleMom,
mMcParticlePos);
mMcParticlePos,
mUseSigFiltMC);

mcReader.releaseTracksForSourceAndEvent(source, event);
}
Expand Down