package gen; import mmc.*; /** * This class calculates atmosphere-dependent quantities for a fixed first interaction depth. */ public class CosCorr extends PhysicsModel{ private double R=EarthModel.R0; public double h0=19; public double X0=85; private double st=1; private double sum; public Atmosphere A; private Integral I; //----------------------------------------------------------------------------------------------------// /** * Initialize class with atmospheric model and ground elevation z0 in [km]. * h0 is the average production height in km or in g/cm^2 if negative. */ public CosCorr(int model, double h0, double z0){ A = new Atmosphere(model, z0); I = new Integral(iromb, imaxs, iprec); if(h0<0){ this.X0=-h0; this.h0=A.h(X0); } else{ this.h0=h0; this.X0=A.X(h0); } R+=z0; } //----------------------------------------------------------------------------------------------------// /** * Prints zenith angle profile of production height, cos*, total X, track length. */ public static void main(String[] args){ int m=1; double aux, x, z0=0, h0=15.5; for(int n=0; n