ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
ParticleGun_EoverP_Config.PEtaSampler Class Reference
Inheritance diagram for ParticleGun_EoverP_Config.PEtaSampler:
Collaboration diagram for ParticleGun_EoverP_Config.PEtaSampler:

Public Member Functions

def __init__ (self, momentum, eta, pid=211, phi=[0, math.pi *2.])
 
def momentum (self)
 
def momentum (self, x)
 
def eta (self)
 
def eta (self, x)
 
def mass (self)
 
def mass (self, x)
 
def phi (self)
 
def phi (self, x)
 
def shoot (self)
 

Public Attributes

 momentum
 
 eta
 
 mass
 
 phi
 

Private Attributes

 _momentum
 
 _eta
 
 _m
 
 _phi
 

Detailed Description

Definition at line 10 of file ParticleGun_EoverP_Config.py.

Constructor & Destructor Documentation

◆ __init__()

def ParticleGun_EoverP_Config.PEtaSampler.__init__ (   self,
  momentum,
  eta,
  pid = 211,
  phi = [0, math.pi*2.] 
)

Definition at line 13 of file ParticleGun_EoverP_Config.py.

13  def __init__(self, momentum, eta, pid=211, phi=[0, math.pi*2.]):
14  self.momentum = momentum
15  self.eta = eta
16  pdg_table = ROOT.TDatabasePDG.Instance() #Gives values in GeV
17  mass = pdg_table.GetParticle(pid).Mass()*1000.
18  self.mass = mass
19  self.phi = phi
20 

Member Function Documentation

◆ eta() [1/2]

def ParticleGun_EoverP_Config.PEtaSampler.eta (   self)

Definition at line 30 of file ParticleGun_EoverP_Config.py.

30  def eta(self):
31  "Pseudorapidity sampler"
32  return self._eta

◆ eta() [2/2]

def ParticleGun_EoverP_Config.PEtaSampler.eta (   self,
  x 
)

Definition at line 34 of file ParticleGun_EoverP_Config.py.

34  def eta(self, x):
35  self._eta = mksampler(x)
36 

◆ mass() [1/2]

def ParticleGun_EoverP_Config.PEtaSampler.mass (   self)

Definition at line 38 of file ParticleGun_EoverP_Config.py.

38  def mass(self):
39  "Mass sampler"
40  return self._m

◆ mass() [2/2]

def ParticleGun_EoverP_Config.PEtaSampler.mass (   self,
  x 
)

Definition at line 42 of file ParticleGun_EoverP_Config.py.

42  def mass(self, x):
43  self._m = mksampler(x)
44 

◆ momentum() [1/2]

def ParticleGun_EoverP_Config.PEtaSampler.momentum (   self)

Definition at line 22 of file ParticleGun_EoverP_Config.py.

22  def momentum(self):
23  "Momentum sampler"
24  return self._momentum

◆ momentum() [2/2]

def ParticleGun_EoverP_Config.PEtaSampler.momentum (   self,
  x 
)

Definition at line 26 of file ParticleGun_EoverP_Config.py.

26  def momentum(self, x):
27  self._momentum = mksampler(x)
28 

◆ phi() [1/2]

def ParticleGun_EoverP_Config.PEtaSampler.phi (   self)

Definition at line 46 of file ParticleGun_EoverP_Config.py.

46  def phi(self):
47  "Azimuthal angle sampler"
48  return self._phi

◆ phi() [2/2]

def ParticleGun_EoverP_Config.PEtaSampler.phi (   self,
  x 
)

Definition at line 50 of file ParticleGun_EoverP_Config.py.

50  def phi(self, x):
51  self._phi = mksampler(x)
52 

◆ shoot()

def ParticleGun_EoverP_Config.PEtaSampler.shoot (   self)

Definition at line 53 of file ParticleGun_EoverP_Config.py.

53  def shoot(self):
54  v4 = ROOT.TLorentzVector()
55  pt = p / math.cosh(self.eta())
56  v4.SetPtEtaPhiM(pt, self.eta(), self.phi(), self.mass())
57  return v4
58 

Member Data Documentation

◆ _eta

ParticleGun_EoverP_Config.PEtaSampler._eta
private

Definition at line 35 of file ParticleGun_EoverP_Config.py.

◆ _m

ParticleGun_EoverP_Config.PEtaSampler._m
private

Definition at line 43 of file ParticleGun_EoverP_Config.py.

◆ _momentum

ParticleGun_EoverP_Config.PEtaSampler._momentum
private

Definition at line 27 of file ParticleGun_EoverP_Config.py.

◆ _phi

ParticleGun_EoverP_Config.PEtaSampler._phi
private

Definition at line 51 of file ParticleGun_EoverP_Config.py.

◆ eta

ParticleGun_EoverP_Config.PEtaSampler.eta

Definition at line 15 of file ParticleGun_EoverP_Config.py.

◆ mass

ParticleGun_EoverP_Config.PEtaSampler.mass

Definition at line 18 of file ParticleGun_EoverP_Config.py.

◆ momentum

ParticleGun_EoverP_Config.PEtaSampler.momentum

Definition at line 14 of file ParticleGun_EoverP_Config.py.

◆ phi

ParticleGun_EoverP_Config.PEtaSampler.phi

Definition at line 19 of file ParticleGun_EoverP_Config.py.


The documentation for this class was generated from the following file:
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
ParticleGun_EoverP_Config.momentum
momentum
Definition: ParticleGun_EoverP_Config.py:63
python.samplers.mksampler
def mksampler(x)
Convenience function for sampler-making from Python literals.
Definition: samplers.py:245
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18