Message: Re: how to tag a particle (neutron) that has just been produced Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: how to tag a particle (neutron) that has just been produced 

Forum: Geometry
Re: None how to tag a particle (neutron) that has just been produced (Eduard Friske)
Re: None Re: how to tag a particle (neutron) that has just been produced (John Apostolakis)
Date: 26 Jun, 2015
From: Eduard Friske <Eduard Friske>

Thank you for your advice. :-)

As a quick solution I am saving the vertex position, momentum and kinetic energy of the neutrons via GetVertexKineticEnergy() a.s.o. when the particle has performed one step (step->GetTrack()->GetCurrentStepNumber() == 1). For some reason comparing it to zero fails, but this way I get reasonable data.

In the long run I should probably switch to a track-based approach as I presume my current solution eats up a lot of unnecessary CPU time for particle identification. I'll have to figure out how to implement this properly, though.

In any case, thank you for your effort and help, I'll try and see how I can rework my code. :-)

 Add Message Add Message
to: "Re: how to tag a particle (neutron) that has just been produced"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]