ATLAS Offline Software
Classes | Functions | Variables
ParticleGun_egammaET Namespace Reference

Classes

class  egammaETSampler
 

Functions

def dbnFermiDirac (x, mu, kT)
 

Variables

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

Function Documentation

◆ dbnFermiDirac()

def ParticleGun_egammaET.dbnFermiDirac (   x,
  mu,
  kT 
)

Definition at line 6 of file ParticleGun_egammaET.py.

6 def 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__

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

Definition at line 1 of file ParticleGun_egammaET.py.

ParticleGun_egammaET.dbnFermiDirac
def dbnFermiDirac(x, mu, kT)
Definition: ParticleGun_egammaET.py:6