COSMOS v7.655  COSMOSv7655
(AirShowerMC)
cxai.f
Go to the documentation of this file.
1 ! cxai: compute xai
2 !
3 ! compute critical value Xai
4 ! = Eg/m * H/Hcr
5  real*8 function cxai(gam, mag)
6  implicit none
7 #include "Zglobalc.h"
8 #include "Zptcl.h"
9 #include "Zmass.h"
10 #include "Zmagfield.h"
11 
12  type(ptcl):: gam ! gamma ray
13  type(magfield):: mag ! magnetic field.
14  real*8 bsin, cgetBsin
15 
16  bsin = cgetbsin(gam, mag)
17 ! Eg/m * Bsin/Bcr
18  cxai = gam%fm%p(4) /masele * bsin/bcr/ 2.
19  end
real *8 function cxai(gam, mag)
Definition: cxai.f:6
const double masele
Definition: Zmass.h:2
Definition: Zptcl.h:75