[ALICE3] Adapt input file handling to new ACTS input format - #17370
[ALICE3] Adapt input file handling to new ACTS input format#17370lhusova wants to merge 1 commit into
Conversation
|
O2 linter results: ❌ 27 errors, |
|
Error while checking build/O2Physics/staging for c7268d8 at 2026-08-18 12:49: Full log here. |
|
Error while checking build/O2Physics/code-check for c7268d8 at 2026-08-18 12:51: Full log here. |
| void addMCParticle(int collIndex, ParticleStruct& fileParticles, int iParticle, uint8_t flags, int firstMother, int firstDaughter, int numberOfHits) | ||
| void addMCParticle(int collIndex, ParticleStruct& fileParticles, int iParticle, uint8_t flags, int firstMother, int firstDaughter, int secondDaughter, int numberOfHits) | ||
| { | ||
| int mothers[2] = {firstMother, -1}; |
There was a problem hiding this comment.
The array of mother indices stores the first and last index similar to the daughter one, so what I did for with the decayer for one mother, is that i stored the index both first and last. This is what lets you loop over the mother array like we do in the sameMotherCheck
for (const auto& mcParticleMother : mcParticle.template mothers_as<aod::McParticles>())
It might still be okay to keep it like this but I would change it just in case
| int mothers[2] = {firstMother, -1}; | |
| int mothers[2] = {firstMother, firstMother}; |
|
|
||
| histos.fill(HIST("hV0Building"), 3.0); | ||
|
|
||
| // TODO: not all ACTS tracks have MC association, so this check is not possible for all candidates, fix is needed |
There was a problem hiding this comment.
This is maybe beyond the scope of this PR but would it not be possible to wrap this block into
if (posTrack.has_mcParticle() && negTrack.has_mcParticle()) {
// de-reference mcparticle
}
From what I remember, all ACTS tracks would not necessarily have an associated MC particle, but if that's the case, the index in aod::McTrackLabels could be set to -1 (maybe it is already). Because what has_mcParticle() checks if the index is greater than zero, so we would never enter this block if there is no associated mcParticle
|
Error while checking build/O2Physics/o2 for c7268d8 at 2026-08-18 17:53: Full log here. |
update of the translator to be consistent with the new ACTS output structure