◆ __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
16 pdg_table = ROOT.TDatabasePDG.Instance()
17 mass = pdg_table.GetParticle(pid).Mass()*1000.
◆ eta() [1/2]
def ParticleGun_EoverP_Config.PEtaSampler.eta |
( |
|
self | ) |
|
◆ eta() [2/2]
def ParticleGun_EoverP_Config.PEtaSampler.eta |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ mass() [1/2]
def ParticleGun_EoverP_Config.PEtaSampler.mass |
( |
|
self | ) |
|
◆ mass() [2/2]
def ParticleGun_EoverP_Config.PEtaSampler.mass |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ momentum() [1/2]
def ParticleGun_EoverP_Config.PEtaSampler.momentum |
( |
|
self | ) |
|
◆ momentum() [2/2]
def ParticleGun_EoverP_Config.PEtaSampler.momentum |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ phi() [1/2]
def ParticleGun_EoverP_Config.PEtaSampler.phi |
( |
|
self | ) |
|
◆ phi() [2/2]
def ParticleGun_EoverP_Config.PEtaSampler.phi |
( |
|
self, |
|
|
|
x |
|
) |
| |
◆ shoot()
def ParticleGun_EoverP_Config.PEtaSampler.shoot |
( |
|
self | ) |
|
Definition at line 53 of file ParticleGun_EoverP_Config.py.
54 v4 = ROOT.TLorentzVector()
55 pt = p / math.cosh(self.eta())
56 v4.SetPtEtaPhiM(pt, self.eta(), self.phi(), self.mass())
◆ _eta
ParticleGun_EoverP_Config.PEtaSampler._eta |
|
private |
◆ _m
ParticleGun_EoverP_Config.PEtaSampler._m |
|
private |
◆ _momentum
ParticleGun_EoverP_Config.PEtaSampler._momentum |
|
private |
◆ _phi
ParticleGun_EoverP_Config.PEtaSampler._phi |
|
private |
◆ eta
ParticleGun_EoverP_Config.PEtaSampler.eta |
◆ mass
ParticleGun_EoverP_Config.PEtaSampler.mass |
◆ momentum
ParticleGun_EoverP_Config.PEtaSampler.momentum |
◆ phi
ParticleGun_EoverP_Config.PEtaSampler.phi |
The documentation for this class was generated from the following file: