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

Go to the source code of this file.

Functions/Subroutines

subroutine cdedxinair (aPtcl, rhoin, dedt, dedtF)
 

Function/Subroutine Documentation

◆ cdedxinair()

subroutine cdedxinair ( type(ptcl aPtcl,
real*8  rhoin,
real*8  dedt,
real*8  dedtF 
)

Definition at line 49 of file cdedxInAir.f.

References cdedxe(), cdedxnone(), and kelec.

Referenced by cputenergyloss(), and xbgrun().

49  implicit none
50 
51 #include "Zptcl.h"
52 #include "Zcode.h"
53 #include "Zelemagp.h"
54 
55  type(ptcl):: aptcl ! input paticle
56  real*8 rhoin ! input. density
57  real*8 dedt ! output. restriced energy loss rate
58  real*8 dedtf ! output. full energy loss rate
59 !
60  real*8 erg
61  integer charge
62 
63 ! next is moved to cbeginRun
64 ! if(first) then
65 ! call cdedxEleci(RecoilKineMinE, Knockon)
66 ! first = .false.
67 ! endif
68 
69  erg = aptcl%fm%p(4)
70 !
71  if(aptcl%code .eq. kelec) then
72  charge = aptcl%charge
73  call cdedxe(aptcl, rhoin, dedt, dedtf) ! in GeV/(g/cm2)
74  dedt = dedt / 10. ! to GeV/(kg/m2)
75  dedtf = dedtf/10.
76  else
77  call cdedxnone(aptcl, rhoin, dedt, dedtf) ! in GeV/(g/cm2)
78  dedt = dedt / 10. ! in GeV/(kg/m2)
79  dedtf = dedtf/10.
80  endif
81 
max ptcl codes in the kelec
Definition: Zcode.h:2
subroutine cdedxnone(aPtcl, rhoin, dedt, dedtF)
Definition: cdedxNone.f:9
float erg[maxp]
Definition: Zprivate.h:7
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p charge
Definition: ZavoidUnionMap.h:1
Definition: Zptcl.h:75
subroutine cdedxe(aPtcl, rho, dedt, dedtF)
Definition: cdedxe.f:9
Here is the call graph for this function:
Here is the caller graph for this function: