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

Go to the source code of this file.

Functions/Subroutines

subroutine ctestonshell (com, p)
 

Function/Subroutine Documentation

◆ ctestonshell()

subroutine ctestonshell ( character*(*)  com,
type(ptcl p 
)

Definition at line 2 of file ctestOnShell.f.

References d.

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
struct @0 com
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
Definition: cblkHeavy.h:7
dE dx *! Nuc Int sampling table d
Definition: cblkMuInt.h:130
float erg[maxp]
Definition: Zprivate.h:7
Definition: Zptcl.h:75