-
Notifications
You must be signed in to change notification settings - Fork 1
/
CTlArray.h
59 lines (49 loc) · 1.21 KB
/
CTlArray.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef tlArray_
#define tlArray_
#include <string>
#include <iostream>
#include <fstream>
#include <cmath>
#include <cstdlib>
using namespace std;
/**
*!\brief IWBC fit parameters
*
* This structure contains the parameters with were obtained from a fit
* to the IWBC transmission coefficients
*/
struct SAngTl
{
float coef[7]; //!< fit parameters
};
/**
*!\brief IWBC fit parameters
*
* Stores transmission coef. fit parameters for each daughter proton number
*/
struct SZcoef
{
SAngTl Tl[121]; //!< array of fit paramters for each daughter Z
};
/**
*!\brief IWBC transmission coefficients
*
* Provides transmission coefficients and inverse cross sections
* for light-partice evaporation
*/
class CTlArray
{
protected:
SZcoef zcoef; //!< structure to store coefficients parametrizating Tl's
string sName; //!< name of file containg Tl parameters
float shift; //!< energy shift used in the parametrization
SAngTl *trans; //!<pointer to coefficents for a select iZ
public:
CTlArray(string);
float getTermInExp(int iL,float fEk);
void prepare(int iZ);
float getTl(int iL ,float fEk);
float getInverseXsec(float fEk);
int iZMin; //!< the minimum Z-value for coefficinets are stored
};
#endif