COSMOS v7.655  COSMOSv7655
(AirShowerMC)
ctestOnShell.f
Go to the documentation of this file.
1  subroutine ctestonshell(com, p)
2 #include "Zptcl.h"
3  character*(*) com
4  type(ptcl):: p
5  real*8 erg
6 ! write(*, *) '---------',com
7  erg =sqrt(
8  * p%fm%p(1)**2 +
9  * p%fm%p(2)**2 +
10  * p%fm%p(3)**2 +
11  * p%mass**2 )
12 ! write(*, *) ' sqrt(p^2 + m^2)=', erg, ' E=', p.fm.p(4)
13  if(abs(p%fm%p(4)/erg -1.) .gt. 1.d-6) then
14  write(*, *) '---------',com
15  write(*, *) ' sqrt(p^2 + m^2)=', erg, ' E=', p%fm%p(4)
16  write(*, *) ' code, mass =',p%code, p%mass
17  endif
18  end
subroutine ctestonshell(com, p)
Definition: ctestOnShell.f:2
dE dx *! Nuc Int sampling table d
Definition: cblkMuInt.h:130
Definition: Zptcl.h:75