RE: [fluka-discuss]:

From: Anton Lechner <Anton.Lechner_at_cern.ch>
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: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of 91120020413_at_ogrenci.ege.edu.tr [91120020413_at_ogrenci.ege.edu.tr]
Sent: 09 December 2016 08:21
To: fluka-discuss_at_fluka.org
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 https://www.fluka.org/fluka.php?id=acc_info


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?idc_info
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