Skip to content
Merged
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
16 changes: 8 additions & 8 deletions PWGLF/TableProducer/lambdakzeromcfinder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ struct lambdakzeromcfinder {
auto const& thisDaughterTracks = daughter.template tracks_as<LabeledTracks>();
bool tpcOnlyFound = false;
for (auto const& track : thisDaughterTracks) {
if (track.detectorMap() == o2::aod::track::TPC){
if(tpcOnlyFound==true && storeSingleTPCOnlyProng)
if (track.detectorMap() == o2::aod::track::TPC) {
if (tpcOnlyFound == true && storeSingleTPCOnlyProng)
continue; // in case a previous TPC-only version of this mcParticle was found + we want to store only one copy, skip
if(skipTPConly)
continue;
if (skipTPConly)
continue;
tpcOnlyFound = true;
}
if (track.sign() > 0 && (track.hasTPC() || !requireTPC)) {
Expand All @@ -228,11 +228,11 @@ struct lambdakzeromcfinder {
auto const& thisDaughterTracks = daughter.template tracks_as<LabeledTracks>();
bool tpcOnlyFound = false;
for (auto const& track : thisDaughterTracks) {
if (track.detectorMap() == o2::aod::track::TPC){
if(tpcOnlyFound==true && storeSingleTPCOnlyProng)
if (track.detectorMap() == o2::aod::track::TPC) {
if (tpcOnlyFound == true && storeSingleTPCOnlyProng)
continue; // in case a previous TPC-only version of this mcParticle was found + we want to store only one copy, skip
if(skipTPConly)
continue;
if (skipTPConly)
continue;
tpcOnlyFound = true;
}
if (track.sign() < 0 && (track.hasTPC() || !requireTPC)) {
Expand Down