Skip to content

Wrong separation of subevents in RadioactiveDecay #149

Description

@AlvaroEzq

I tried to do a simulation of Rn222 decay chain (stopped at Pb210) and I notice an issue with which tracks are assigned to which subevent after each decay.

For instance, when an alpha decay occurs, the daughter nuclear recoil and the alpha emitted tracks are not inside the same subevent. The nuclear recoil is in the subevent of its decay instead of the decay where it is generated.

See for example:
Image
the difference in time between the trackID 2 (3.12 ks) and trackID 751 (3.14ks) is afterwards problematic when passing to raw signal stages where it triggers the first and the former ends up outside the signal time window (thus is lost).

I have tried several approaches to fix this in

if (particle->GetParticleType() == "nucleus" && !particle->GetPDGStable()) {
// unstable nucleus
if (particle->GetPDGLifeTime() > fMaxAllowedLifetime) {
G4String energy = G4BestUnit(track->GetKineticEnergy(), "Energy");
G4String lifeTime = G4BestUnit(particle->GetPDGLifeTime(), "Time");
return decayClassification;
}
}

but they didnt fully worked as I intended...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions