Skip to content

Commit 6be8d6e

Browse files
nburmasosawenzel
authored andcommitted
Fill MC particle status codes and fix typo in flags
1 parent a8504a4 commit 6be8d6e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Detectors/AOD/src/AODProducerWorkflowSpec.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,11 @@ void AODProducerWorkflowDPL::fillMCParticlesTable(o2::steer::MCKinematicsReader&
658658
}
659659
int statusCode = 0;
660660
uint8_t flags = 0;
661-
if (!mcParticles[particle].isTransported()) {
661+
if (!mcParticles[particle].isPrimary()) {
662662
flags |= 1 << 0; // mark as transported
663+
statusCode = mcParticles[particle].getProcess();
664+
} else {
665+
statusCode = mcParticles[particle].getStatusCode();
663666
}
664667
if (source == 0) {
665668
flags |= 1 << 1; // mark as particle from background event

0 commit comments

Comments
 (0)