/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Attributes
BetaDecay Class Reference

List of all members.

Public Member Functions

 BetaDecay (int a, int z, double q, double t_endpoint)
double dnde_norm (double T_end)
double dnde (double T)
double dnde_noff (double T)
double GetFF (double T)
double GetFFN (double T_end)

Private Attributes

int A
int Z
double Q
double T_endpoint
double PI
double norm
bool doff
bool onlyff

Detailed Description

Definition at line 29 of file Potassium_40_gammas.cc.


Constructor & Destructor Documentation

BetaDecay::BetaDecay ( int  a,
int  z,
double  q,
double  t_endpoint 
) [inline]

Definition at line 40 of file Potassium_40_gammas.cc.

        : A(a), Z(z), Q(q), T_endpoint(t_endpoint), PI(TMath::Pi()), norm(0)
    {
        doff = true;            // for testing w/out FF
        onlyff = false;         // for testing only FF
        norm = this->dnde_norm(t_endpoint);
    }

Member Function Documentation

double BetaDecay::dnde_norm ( double  T_end) [inline]

Definition at line 49 of file Potassium_40_gammas.cc.

                                   {
        const int nbins = 100;
        const double dT = T_end/nbins;
        double sum = 0.0;
        for (int ind = 1; ind <= nbins; ++ind) {
            double T = double(ind)*dT;
            double dnde = 0.0;
            if (onlyff) dnde = this->GetFF(T);
            else{
                dnde = this->dnde_noff(T);
                if (doff) dnde *= this->GetFF(T);
            }
            sum += dnde;
        }
        return sum/nbins;
    }
double BetaDecay::dnde ( double  T) [inline]

Definition at line 66 of file Potassium_40_gammas.cc.

                          {
        double dnde = 0.0;
        if (onlyff) dnde = this->GetFF(T);
        else {
            dnde = this->dnde_noff(T);
            if (doff) dnde *= this->GetFF(T);
        }
        return  dnde / norm;
    }
double BetaDecay::dnde_noff ( double  T) [inline]

Definition at line 78 of file Potassium_40_gammas.cc.

                               {
        double ee = Q+1;
        //double ee = T_endpoint+1;
        double g = T+1.;
        return std::sqrt(g*g-1)*(ee-g)*(ee-g)*g;
    }
double BetaDecay::GetFF ( double  T) [inline]

Definition at line 88 of file Potassium_40_gammas.cc.

                           {
        double A1, A2;
        double P, U, S, Y;
        double F2;
        double E = T+1.;  
        P=std::sqrt(E*E-1.0) ;
        U=Z/137.0;
        S=std::sqrt(1.0-U*U) - 1.;
        Y = 2*PI*U*E/P;
        A1 = U*U*E*E + P*P/4.;
        A2 = std::fabs(Y/(1-std::exp(-Y)));
        F2 = std::pow(A1,S) * A2; 
        return F2;
    }
double BetaDecay::GetFFN ( double  T_end) [inline]

Definition at line 106 of file Potassium_40_gammas.cc.

                                {
        double A1, A2;
        double P, U, S, Y;
        double F2,E;
        double EE = T_end/100.;
        U=Z/137.0;
        S=std::sqrt(1.0-U*U) - 1.;
        double F1 = 1E-10;
        for (int i = 1; i<=100 ; i++) {
            E = double(i)*EE + 1.;
            P=std::sqrt(E*E-1.0) ;
            Y = 2*PI*U*E/P;
            A1 = U*U*E*E + P*P/4.;
            A2 = std::fabs(Y/(1-std::exp(-Y)));
            F2 = std::pow(A1,S) * A2; 
            if (F2 > F1) F1 = F2;
        }                  
        return F1;
    }

Member Data Documentation

int BetaDecay::A [private]

Definition at line 30 of file Potassium_40_gammas.cc.

int BetaDecay::Z [private]

Definition at line 30 of file Potassium_40_gammas.cc.

double BetaDecay::Q [private]

Definition at line 31 of file Potassium_40_gammas.cc.

double BetaDecay::T_endpoint [private]

Definition at line 31 of file Potassium_40_gammas.cc.

double BetaDecay::PI [private]

Definition at line 31 of file Potassium_40_gammas.cc.

double BetaDecay::norm [private]

Definition at line 33 of file Potassium_40_gammas.cc.

bool BetaDecay::doff [private]

Definition at line 35 of file Potassium_40_gammas.cc.

bool BetaDecay::onlyff [private]

Definition at line 35 of file Potassium_40_gammas.cc.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:52:24 for K40 by doxygen 1.7.4