Skip to content
Snippets Groups Projects
Commit f814eda7 authored by Yngve Levinsen's avatar Yngve Levinsen
Browse files

relativistic gamma/beta edit

parent 6a695e7a
No related branches found
No related tags found
No related merge requests found
......@@ -223,6 +223,8 @@ class plt:
Eavg=self.avg['E'][j]
self.gamma.append((self.mc2+Eavg)/self.mc2)
self.beta.append(numpy.sqrt(1.-1./self.gamma[-1]**2))
self.gamma=numpy.array(self.gamma)
self.beta=numpy.array(self.beta)
def calc_avg(self):
'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment