def __init__(self, en, theta, phi): particle.__init__(self, 22) #set the photon given its energy en and angles theta and phi pt = en * sqrt((1. - cos(2. * theta)) / 2.) #for pz negative theta = pi - theta eta = -log(tan(theta / 2.)) #set Lorentz vector self.vec.SetPtEtaPhiE(pt, eta, phi, en) #status for final particle self.stat = 1
def __init__(self, en, pdg, zsign): #energy, pdg, sign of z-momentum particle.__init__(self, pdg) self.pdg = pdg #status code for beam particles self.stat = 201 #set kinematics for beam particle m = TDatabasePDG.Instance().GetParticle(pdg).Mass() pz = zsign * sqrt(en**2 - m**2) self.vec.SetPxPyPzE(0, 0, pz, en)
def __init__(self, en, theta, phi): particle.__init__(self, 11) #transverse momentum m = TDatabasePDG.Instance().GetParticle(11).Mass() pt = sqrt(0.5 * (en**2 - m**2) * (1. - cos(2. * theta))) #pseudorapidity, rotate the theta for pz negative theta = pi - theta eta = -log(tan(theta / 2.)) #set the electron Lorentz vector self.vec.SetPtEtaPhiE(pt, eta, phi, en) #status for the final particle self.stat = 1
def __init__(self, game, x_position, y_position): particle.__init__(self, game, game.fire_particle_image, 5, 10, 100, x_position, y_position, 500, 1500)
def __init__(self, run, event, s, x, y, z, px, py, pz, t, weight): mass = 0.0 pdgCode = 12 particle.__init__(self, run, event, s, x, y, z, px, py, pz, t, weight, mass, pdgCode)
def __init__(self, game, x_position, y_position): particle.__init__(self, game, game.rock_particle_image, 30, 10, 100, x_position, y_position, 2000, 3000)
def __init__(self, game, x_position, y_position): particle.__init__(self, game, game.water_particle_image, 5, 5, 50, x_position, y_position, 300, 800)
def __init__(self, run, event, s, x, y, z, px, py, pz, t, weight): mass = piCnst.mass() / 1000. partType = "pi+" particle.__init__(self, run, event, s, x, y, z, px, py, pz, t, weight, partType)
def __init__(self, run, event, s, x, y, z, px, py, pz, t, weight): partType = "mu-" particle.__init__(self, run, event, s, x, y, z, px, py, pz, t, weight, partType)