CRXS  1.0
Comic Ray Cross Section Tools
 All Classes Namespaces Functions Variables Pages
xs_definitions.h
1 #ifndef CRXS__XS_DEFINITIONS_H
2 #define CRXS__XS_DEFINITIONS_H
3 
4 #include "xs.h"
5 #include "stdio.h"
6 
7 #include "string"
8 
9 namespace CRXS {
10 
12 
13  public:
14  static double fMass_proton;
15  static double fMass_neutron;
16  static double fMass_deuteron;
17  static double fMass_helion3;
18  static double fMass_helion4;
19 
21 
37  static double inv_pp_pbar_CM__Winkler( double s, double E_pbar_d, double pT_pbar, double* C_array, int len_C_array=-1 );
38 
40 
53  static double inv_pp_pbar_CM__diMauro( double s, double E_pbar, double pT_pbar, double* C_array, int len_C_array=-1 );
54 
56 
65  static double el_pp__diMauro (double s);
66 
68 
77  static double tot_pp__diMauro(double s);
78 
79 
81 
85  static void totXS_TableToArray( std::string file, double array[91][4] );
86 
88  static bool f_totXS_IsRead;
89 
91 
93  static void totXS_Read();
94 
95 
97 
103  static double totXS_get_interpolation_loglin(double x, double array[91][4] );
104 
105 
107  static double fXS__tot_pbarp[91][4];
109  static double fXS__el_pbarp [91][4];
111  static double fXS__tot_pbarD[91][4];
113  static double fXS__nar_pbarD[91][4];
114 
115 
117 
125  static double tot_pbarp (double T_pbar);
127 
135  static double el_pbarp (double T_pbar);
137 
145  static double tot_pbarD (double T_pbar);
147 
160  static double nar_pbarD (double T_pbar);
161 
162 
163 
164 
166 
176  static double inv_pp_p_CM__Anderson( double s, double E_p, double pT_p, double* C_array=Dummy, int len_C_array=-1 );
177 
178 
180 
190  static double pbar_overlap_function_projectile(double x_F);
191 
192 
193 
195 
205  static double pbar_overlap_function_target (double x_F);
206 
207 
209 
230  static double factor__AA( double s, double xF, int A_projectile, int N_projectile, int A_target, int N_target, int parametrization );
231 
232  static double * Get_D_parameters (int parametrization);
233  static double * Get_C_parameters (int parametrization);
234  static double * Get_C_parameters_isospin(int parametrization);
235 
236  static double deltaHyperon( double s, double* C_array, int len_C_array=-1 );
237  static double deltaIsospin( double s, double* C_array, int len_C_array=-1 );
238 
239  // Parameter definitions:
240 
241  static double Korsmeier_I_C1_to_C11 [12];
242  static double diMauro_I_C1_to_C11 [12];
243  static double diMauro_II_C1_to_C11 [12];
244 
245  static double Winkler_C1_to_C16 [17];
246  static double Winkler_II_C1_to_C16 [17];
247  static double Korsmeier_II_C1_to_C16 [17];
248  static double Korsmeier_III_C1_to_C16[17];
249 
250  static double diMauro_I_C1_to_C16 [17];
251  static double diMauro_II_C1_to_C16 [17];
252  static double Anderson_C1_to_C16 [17];
253 
254  static double Korsmeier_I_D1_to_D2 [3];
255  static double Korsmeier_II_D1_to_D2 [3];
256  static double Korsmeier_III_D1_to_D2 [3];
257  static double Winkler_D1_to_D2 [3];
258  static double Winkler_II_D1_to_D2 [3];
259  static double diMauro_I_D1_to_D2 [3];
260  static double diMauro_II_D1_to_D2 [3];
261 
262 
263 
264  static double Winkler_SELF_C1_to_C16 [17];
265  static double diMauro_SELF_C1_to_C11 [12];
266 
267  static double diMauro_SELF_C1_to_C16 [17];
268 
269  static double Winkler_SELF_D1_to_D2 [3];
270  static double diMauro_SELF_D1_to_D2 [3];
271 
272 
273  static double Dummy [1];
274 
275  private:
276 
277  };
278 }
279 
280 
281 
282 #endif
static double el_pp__diMauro(double s)
Parametrization of the total pp cross section.
Definition: xs_definitions.cxx:142
static double nar_pbarD(double T_pbar)
Interpolation of the non-annihilating pbar+D cross section.
Definition: xs_definitions.cxx:499
static double inv_pp_pbar_CM__Winkler(double s, double E_pbar_d, double pT_pbar, double *C_array, int len_C_array=-1)
Parametrization of the invariant antiproton production (pbar) crosssection from pp in CMF...
Definition: xs_definitions.cxx:22
static double el_pbarp(double T_pbar)
Interpolation of the elastic pbar+p cross section.
Definition: xs_definitions.cxx:487
static bool f_totXS_IsRead
Bool to store whether the tables are alread read.
Definition: xs_definitions.h:88
static double pbar_overlap_function_projectile(double x_F)
Parametrization of the target and projectile overlap function in pbar production. ...
Definition: xs_definitions.cxx:159
static double factor__AA(double s, double xF, int A_projectile, int N_projectile, int A_target, int N_target, int parametrization)
Parametrization of the nuclear scaling factor.
Definition: xs_definitions.cxx:280
static double totXS_get_interpolation_loglin(double x, double array[91][4])
Function to interpolate the the XS tables. Interpolation is linear in log-log.
Definition: xs_definitions.cxx:395
static double tot_pbarp(double T_pbar)
Interpolation of the total pbar+p cross section.
Definition: xs_definitions.cxx:491
static double tot_pp__diMauro(double s)
Parametrization of the elastic pp cross section.
Definition: xs_definitions.cxx:125
static double fXS__el_pbarp[91][4]
Array to store the elastic pbar+p XS; column 0: T_pbar in GeV, column 1: XS in mbarn.
Definition: xs_definitions.h:109
static double fXS__tot_pbarD[91][4]
Array to store the total pbar+D XS; column 0: T_pbar in GeV, column 1: XS in mbarn.
Definition: xs_definitions.h:111
static double inv_pp_p_CM__Anderson(double s, double E_p, double pT_p, double *C_array=Dummy, int len_C_array=-1)
Parametrization of the invariant proton scattering crosssection from pp in CMF.
Definition: xs_definitions.cxx:304
static double tot_pbarD(double T_pbar)
Interpolation of the total pbar+D cross section.
Definition: xs_definitions.cxx:495
Definition: xs_definitions.h:11
static double pbar_overlap_function_target(double x_F)
Parametrization of the target and target overlap function in pbar production.
Definition: xs_definitions.cxx:190
static double fXS__tot_pbarp[91][4]
Array to store the total pbar+p XS; column 0: T_pbar in GeV, column 1: XS in mbarn.
Definition: xs_definitions.h:107
static void totXS_TableToArray(std::string file, double array[91][4])
Function to read a simple text table.
Definition: xs_definitions.cxx:412
static double inv_pp_pbar_CM__diMauro(double s, double E_pbar, double pT_pbar, double *C_array, int len_C_array=-1)
Parametrization of the invariant antiproton production (pbar) crosssection from pp in CMF...
Definition: xs_definitions.cxx:88
static void totXS_Read()
Function to read all the total XS tables.
Definition: xs_definitions.cxx:465
static double fXS__nar_pbarD[91][4]
Array to store the non-annihilation pbar+D XS; column 0: T_pbar in GeV, column 1: XS in mbarn...
Definition: xs_definitions.h:113