Skip to content

Commit

Permalink
[PWGLF] LightNucleiTask - Fix bug in secondary selection
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannimalfattore committed Jan 23, 2024
1 parent ef75b65 commit d0c42b9
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 155 deletions.
2 changes: 2 additions & 0 deletions PWGLF/DataModel/LFNucleiTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ DECLARE_SOA_COLUMN(ITSChi2NCl, itsChi2NCl, float);
// For MC
DECLARE_SOA_COLUMN(IsPhysicalPrimary, isPhysicalPrimary, bool);
DECLARE_SOA_COLUMN(ProducedByGenerator, producedByGenerator, bool);
DECLARE_SOA_COLUMN(GetProcess, getProcess, int);

} // namespace full
namespace dummy
Expand Down Expand Up @@ -230,6 +231,7 @@ DECLARE_SOA_TABLE(LfCandNucleusMC, "AOD", "LFNUCLMC",
mcparticle::PdgCode,
full::IsPhysicalPrimary,
full::ProducedByGenerator,
full::GetProcess,
mcparticle::Px,
mcparticle::Py,
mcparticle::Pz);
Expand Down
3 changes: 2 additions & 1 deletion PWGLF/TableProducer/LFTreeCreatorNuclei.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,14 @@ struct LfTreeCreatorNuclei {
tableCandidateMC(particle.pdgCode(),
particle.isPhysicalPrimary(),
particle.producedByGenerator(),
particle.getProcess(),
particle.px(),
particle.py(),
particle.pz());
// if(particle.pdgCode() == 1000010020) LOG(info)<<"[TC]Deuteron PDGcode ===="<<particle.pdgCode();
continue;
}
tableCandidateMC(0, -1, -1, 0, 0, 0);
tableCandidateMC(0, -1, -1, 0, 0, 0, 0);
}
}
}
Expand Down
Loading

0 comments on commit d0c42b9

Please sign in to comment.