Distinguish edep generated by different types of transportation and physics processes

Dear @luillo

Thanks for your suggestions! This is more convenient than “two-step” method I am using.
As for my understanding, particles are killed (neither transported nor deposited !!!) if they mismatch the conditions :

IF ( NEWREG .EQ. NREG1 .AND. MREG .NE. NEWREG )
IF ( LTRACK .EQ. 2 .AND. IJ .EQ. 7 )

I have 3 questions for your reply:

  1. Am I right about the understanding of command WEE = ZERZER , Neither transported nor deposited?
  2. Could you please explain more about the variable LTRACK? Dose it mean interaction times? Like the explanation in this post : Mgdraw.f on (n,p) reaction events?
  3. How to distinguish the primary particles and secondaries, which variable or user routine should we consider?

Again, thanks for your reply!

Best regards,
honghu