ATLAS Offline Software
Loading...
Searching...
No Matches
ParticleGun_egammaET Namespace Reference

Classes

class  egammaETSampler

Functions

 dbnFermiDirac (x, mu, kT)

Variables

str __doc__ = "Holds a 4-momentum sampler according to the egamma Et spectrum"

Function Documentation

◆ dbnFermiDirac()

ParticleGun_egammaET.dbnFermiDirac ( x,
mu,
kT )

Definition at line 6 of file ParticleGun_egammaET.py.

6def dbnFermiDirac(x,mu,kT):
7 import math
8 arg = (x-mu)/kT
9 if arg < -20 : # avoid numerical underflows
10 result = 1
11 elif arg > 20 : # avoid numerical overflows
12 result = 0
13 else :
14 div = math.exp(arg)+1
15 result = 1/div
16 return result
17

Variable Documentation

◆ __doc__

str ParticleGun_egammaET.__doc__ = "Holds a 4-momentum sampler according to the egamma Et spectrum"
private

Definition at line 1 of file ParticleGun_egammaET.py.