Garfield++ v1r0
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 (double theta)
 

Public Attributes

double A [4]
 
double C [7]
 
double B
 

Detailed Description

Definition at line 29 of file ElElasticScat.h.

Member Function Documentation

◆ CS()

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

Definition at line 23 of file ElElasticScat.cpp.

23 {
24 if (A[0] == -1.0) return -1.0;
25 double s = 0.0;
26 const double ctheta = cos(theta);
27 for (long n = 0; n < 4; ++n) {
28 s += A[n] / (pow(1.0 - ctheta + 2.0 * B, double(n + 1)));
29 }
30 for (long n = 0; n < 7; ++n) {
31 s += C[n] * polleg(n, ctheta);
32 }
33 return s;
34}
DoubleAc cos(const DoubleAc &f)
Definition: DoubleAc.cpp:431
DoubleAc pow(const DoubleAc &f, double p)
Definition: DoubleAc.cpp:336
double polleg(int l, double x)
Definition: PolLeg.cpp:14

Member Data Documentation

◆ A

double Heed::ElElasticScatDataStruct::A[4]

Definition at line 31 of file ElElasticScat.h.

Referenced by CS().

◆ B

double Heed::ElElasticScatDataStruct::B

Definition at line 33 of file ElElasticScat.h.

Referenced by CS().

◆ C

double Heed::ElElasticScatDataStruct::C[7]

Definition at line 32 of file ElElasticScat.h.

Referenced by CS().


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