COSMOS v7.655  COSMOSv7655
(AirShowerMC)
ce2p.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine ce2p (aTrack)
 

Function/Subroutine Documentation

◆ ce2p()

subroutine ce2p ( type(track aTrack)

Definition at line 5 of file ce2p.f.

Referenced by canihi(), cbrems(), ccohs(), ccompt(), cintedmes(), cintelambdac(), cknockon(), cmbrem(), cmkinc(), cmkinc2(), cmpair(), cmuinte(), cpair(), cphotoee(), cputenergyloss(), and csetknock().

5  implicit none
6 !---- include 'Ztrack.h'
7 #include "Ztrack.h"
8  type(track)::atrack
9 !
10  real*8 p
11  p = atrack%p%fm%p(4)**2 - atrack%p%mass**2
12  if(p .lt. 0.) then
13 ! write(*,*) ' p=',p,' code =',aTrack.p.code
14 ! since |p| is order of 10^-12
15  p = 0.
16  endif
17  p = sqrt(p)
18 ! p = sqrt( aTrack.p.fm.p(4)**2 - aTrack.p.mass**2 )
19  atrack%p%fm%p(1) = p * atrack%vec%w%r(1)
20  atrack%p%fm%p(2) = p * atrack%vec%w%r(2)
21  atrack%p%fm%p(3) = p * atrack%vec%w%r(3)
Definition: Ztrack.h:44
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
Definition: cblkHeavy.h:7
Here is the caller graph for this function: