-
Notifications
You must be signed in to change notification settings - Fork 10
/
kamae.cc
35 lines (29 loc) · 916 Bytes
/
kamae.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* @file kamae.cc
* @brief Implementation file for cparamlib
*
* It implements Kamae et al model for secondary electron/positron production in pp interactions. Obtained from ... It will not be documented.
*/
#include "kamae.h"
#include "errorcode.h"
#include <iostream>
#include <stdlib.h>
using namespace std;
PARAMSET parameters;
double KamaeYields::GetSigma(double Eg, double Ekinbullet, PARTICLE_IDS par) {
switch (par) {
case ID_GAMMA :
gamma_param(Ekinbullet, ¶meters);
break;
case ID_ELECTRON :
elec_param(Ekinbullet, ¶meters);
break;
case ID_POSITRON :
posi_param(Ekinbullet, ¶meters);
break;
default:
cerr << "Wrong particle ID in KamaeYields" << endl;
exit(WRONGID);
}
return 1.e-3*sigma_incl_tot(par,Eg, Ekinbullet, ¶meters)/Eg;
}