next up previous contents
Next: 4.3.14 SUBROUTINE ZDMPAR(P, ATMNB, Up: 4.3 Patch SGVDETSIM : Previous: 4.3.12 SUBROUTINE ZDLPAR(EGAMMA, ATMNB,   Contents


4.3.13 SUBROUTINE ZDMBRM(P, PMINBR, ATMNB, NEWTRK, ERROR) : Make BReMsstrahlung

This routine generates a brems-strahlung gamma off the electron with momentum P, and returns the momenta of gamma and of the electron after radiation in NEWTRK.

ARGUMENTS:
INPUT :
    P : 3-momentum of the incomming electron (in GeV/c)
    PMINBR : Minimum P of electron to consider brems.
    ATMNB : Atom-number of the material
OUTPUT :
    NEWTRK(1-3,1) : 4-momentum of the out-going photon (in GeV/c)
    NEWTRK(1-3,2) :     "      "   "   "    "   electron (in GeV/c)
    ERROR : Error-flag : 0 -> OK
                         1 -> Below cutoff
                         2 -> Exhausted number of iterations
IMPLICIT INPUTS:
    From  /ZTAUX/ : PMINBR : Minimum electron momentum to generate brems.
IMPLICIT OUTPUTS:
    none.
CALLED BY :
ZDBREM, generate BREMsstrahlung (see 4.3.9).

CALLED ROUTINE(S):
ZURECT (see 4.7.14)

(To get a RECTangular random-number)

ZDROPA (see 4.3.15)

(To Rotate the generated Gamma-Electron Pair.)

SIDE EFFECTS:
none

AUTHORS:
M. Berggren, UFRJ (adopted from DELSIM's SXBMS)

CREATION DATE:
31-mar-1996



Mikael Berggren 2003-03-27