COSMOS v7.655  COSMOSv7655
(AirShowerMC)
ToPrintXS.f
Go to the documentation of this file.
1 !!!!!!!
2 ! include this inside Gencol.f, if you want to check Sibyll
3 ! xs.
4 ! The place is after the next comment line in Gencol.f
5 
6 ! !!!! you may include ToPrintXS.f here to print out E vs XS for Sibyl
7 
8 ! normal Gencol output will not be obtained. After printing the table
9 ! execution stops immediately.
10 ! In the output table, you will find lines starting from "xsxs"
11 !
12 ! Ep Log10(Ep) pO xs pAir xs
13 ! xsxs 80.00 1.903 299.902 272.651
14 ! ...
15 ! pO: p may be pi or K depending on input collision spec.
16 ! O may be N depending on ..
17 ! pAir: p may be pi or K depending on input collision spec.
18 ! Air target case is normmaly ~ 0.78 N target + 0.22 O target
19 !
20 
21  if(activemdl .eq. 'sibyll' ) then
22  pj%fm%p(4)=80.
23  if( pj%code == 6 ) then
24  l = 1
25  elseif(pj%code == 5 ) then
26  l = 3
27  elseif(pj%code == 4 ) then
28  l = 2
29  endif
30 
31  do while( pj%fm%p(4)< 1e11)
32  roots = sqrt(2*masp*pj%fm%p(4) + masp**2 + pj%mass**2)
33  call sib_sigma_hair (l, roots, xsair, sigbdif)
34 
35 
36  pj%fm%p(3)=sqrt(pj%fm%p(4)**2-pj%mass**2)
37  call csibyllxs(pj, tg, xs)
38  if( xs /= xs ) then
39  write(*,*) ' nan by if '
40  endif
41  if( isnan(xs) ) then
42  write(*,*) ' nan by isnan '
43  endif
44  write(*,'(a, 1p, g13.4, 0p, 3f10.3)')
45  * "xsxs ", pj%fm%p(4),log10(pj%fm%p(4)), xs, xsair
46  pj%fm%p(4) = pj%fm%p(4)*10.0d0**0.2
47  enddo
48  stop
49  endif
50 !!!!!!!!!!!!
! constants thru Cosmos real ! if multiplied to deg radian Torad ! light velocity m sec ! infinty ! kg m2 *Togpcm2 g cm2 ! g cm2 *Tokgpm2 kg m2 ! cm *Tom m ! m *Tocm cm ! g cm3 *Tokgpm3 kg m3 ! kg m3 *Togpcm3 g cm3 ! sec *Tonsec nsec ! Tesla m ! Avogadro *A2deninv ! mfp *n * xs
Definition: Zglobalc.h:18
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
masp
Definition: Zmass.h:5