This routine decides if a brems-strahlung process occurs while the electron with momentum PP goes through the detector, and if so generates the process and updates the contents of LUJETS accordingly.
LAYLIS : List of detector layers hit by particle : LAYLIS(1,i) = number of the i:th hit layer. LAYLIS(2,i) tells if it is a plane or a cylinder, if it measures or not, and if it is the reference layer. LAYLIS(2,i) = 0 : mathematical layer : no material, no measurement. Ignored in all calculations 1 : seen by a cylinder 2 : seen by a plane -1 : particle went through a cylinder, but was not seen by the detector. -2 : particle went through a plane, but was not seen by the detector. 10 : the layer is a reference cylinder 20 : the layer is a reference plane LAYLIS(3,i) = No. of radiation lengths in layer. LAYLIS(1,i) = -1 -> end of list. PP : 3-momentum of the incomming electron (in GeV/c) VERT : Position where PP is given ( in cm). PMINBR : Minimum P of electron to consider brems. PTLOSLIM : Minimal pt(before)/pt(after) of the electron for the brems to be un-noticed by the track- reconstruction. If more pt than this is lost, a new electron will be created IPRP,IPZ : True values of Impact parameters in RPhi and z PHIIP : True phi-angle to perigee. KKK : line-number of the incomming electron in LUJETS IGEO : Index of the detector description to be used.
LAYLIS : List of detector layers hit by particle, updated if there was an interaction DST : Distance travled from VERT to the point of interaction. 0.0 if no interaction. NNEW : number of new particles generated : 0 : no interaction 1 : A interaction took place, but the loss of energy of the electron was so small the the original electron was kept (see PTLOSLIM), and only the gamma inserted into LUJETS 2 : A interaction took place, old electron marked as decayed, new electron and the gamma inserted into LUJETS.
From /ZXEVT/ ANC, ancestor of initial particle;
To /LUJETS/ P, momentum of created particles; V, production-point of created particles; K, id. and decay info of initial and created particles; NLUND, total number of particles.
(To get Track INFo at a layer)
(To get number of X0:s of a plane)
(To get number of X0:s of a cylinder)
(To get Plane Atom number)
(To get Cylinder Atom number)
(To get Lambda for BRemsStrahlung)
(To get TRacK InterSections with Cylinder.)
(To get TRacK InterSections with Plane.)
(To Make a BReMs gamma)
(To DELete LaYers)