RE: [fluka-discuss]:

From: Anton Lechner <>
Date: Fri, 9 Dec 2016 09:45:37 +0000

Dear Elif,

For this you need to use the USDRAW entry in the MGDRAW routine. With the ICODE you can identify the process, and then you can access the produced secondaries. E.g. for compton scattering:

        IF (ICODE .EQ. 219) THEN
           DO IP = 1, NP
               IF ( KPART(IP) .EQ. 3) .... count ...
           END DO

        END IF

 100 FORMAT ("PartID=", I5,", E(GeV)=",E20.11,
     & ", Pos(cm)=",E20.11,E20.11,E20.11)

The variable KPART gives you the particle code of a secondary (for electrons it is 3). Then you can simply count the electrons produced (you need to do something equivalent for pair production and photo-electric effect: the ICODEs you can find in the comments of the MGDRAW routine).

Cheers, Anton

From: [] on behalf of []
Sent: 09 December 2016 08:21
Subject: [fluka-discuss]:

Dear FLUKA users,

How can I detect and count electrons which are generated by photons?
Thank you.

Elif Ermis

You can manage unsubscription from this mailing list at

You can manage unsubscription from this mailing list at
Received on Fri Dec 09 2016 - 12:09:56 CET

This archive was generated by hypermail 2.3.0 : Fri Dec 09 2016 - 12:10:01 CET