Garfield++ v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
Heed::ElElasticScatDataStruct Class Reference

#include <ElElasticScat.h>

Public Member Functions

double CS (const double theta) const
 Return -1 if not valid.
 

Public Attributes

double A [4]
 If -1.0 then the combination is not valid.
 
double C [7]
 
double B
 

Detailed Description

Fit parameters for a particular element and energy. The fit gives dependence of cross section on angle.

Definition at line 12 of file ElElasticScat.h.

Member Function Documentation

◆ CS()

double Heed::ElElasticScatDataStruct::CS ( const double  theta) const

Return -1 if not valid.

Definition at line 24 of file ElElasticScat.cpp.

24 {
25 if (A[0] == -1.0) return -1.0;
26 double s = 0.0;
27 const double ctheta = cos(theta);
28 for (long n = 0; n < 4; ++n) {
29 s += A[n] / (pow(1.0 - ctheta + 2.0 * B, n + 1));
30 }
31 for (long n = 0; n < 7; ++n) {
32 s += C[n] * polleg(n, ctheta);
33 }
34 return s;
35}
double A[4]
If -1.0 then the combination is not valid.
Definition: ElElasticScat.h:14
DoubleAc cos(const DoubleAc &f)
Definition: DoubleAc.cpp:432
DoubleAc pow(const DoubleAc &f, double p)
Definition: DoubleAc.cpp:337
double polleg(const int l, const double x)
Definition: PolLeg.cpp:17

Member Data Documentation

◆ A

double Heed::ElElasticScatDataStruct::A[4]

If -1.0 then the combination is not valid.

Definition at line 14 of file ElElasticScat.h.

Referenced by CS().

◆ B

double Heed::ElElasticScatDataStruct::B

Definition at line 16 of file ElElasticScat.h.

Referenced by CS().

◆ C

double Heed::ElElasticScatDataStruct::C[7]

Definition at line 15 of file ElElasticScat.h.

Referenced by CS().


The documentation for this class was generated from the following files: