Message: Get ONLY particles which did not interact with their properties Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Get ONLY particles which did not interact with their properties 

Forum: Particles
Date: 19 Jun, 2015
From: dewasseige Gwenhael <dewasseige Gwenhael>

Hello!

I had a look but did not find exactly the answer I need.

I would like to count the number of particles which escape my interaction zone (without any interaction except energy losses - in other words, without particle change). I am already doing a counting (Analysis:AddParticlesPerEvent with a if(part == G4Gamma::Gamma()) { thisEventNumGamma++; }) BUT I would like to be able to access to all information about these particles such as the kinetic energy, the momentum, etc...

I am already saving ProcessQuantities in TrackingAction but then, I get the quantities for ALL the gammas, not only the ones which survived after the interaction zone.

Is there a way to select after the simulation the particles which did not interact ? like a cut I could add while drawing my histograms? Or do I have to define this before running the simulation?

May someone help me to figure out how to do that?

If I was not clear, let me know!!

THANKS A LOT IN ADVANCE! gwen

 Add Message Add Message
to: "Get ONLY particles which did not interact with their properties"

 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 ]