forked from Stephan/geometryfactor
Compare commits
No commits in common. "448aac06d7075f7bd23679418c65c93a0ec163fd" and "44ee00d988c01b1b6da2556b330462e0544762b5" have entirely different histories.
448aac06d7
...
44ee00d988
5 changed files with 5 additions and 0 deletions
|
|
@ -360,6 +360,7 @@ def run(pls, rys, stop, Ind_S):
|
|||
slc, rys, cp, hit_rec = Scintillator.real_hit(pls, rys, i, hit_rec, tr, sc, path)
|
||||
rys, tr, sc, path = Scintillator.next_ray(pls, rys, i, cp, tr, sc, path, slc, Ind_S)
|
||||
end=time.time()
|
||||
print(end-start)
|
||||
return sc,tr,path,hit_rec
|
||||
|
||||
# dir = np.ones((6,3,1))
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import matplotlib.pyplot as plt
|
|||
def read_csv(file_path):
|
||||
with open(file_path, newline='') as csvfile:
|
||||
reader = csv.reader(csvfile, delimiter=',')
|
||||
next(reader)
|
||||
first_det_to_hit = []
|
||||
for row in reader:
|
||||
if not int(float(row[9])) > 30:
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ def read_csv(file_path, notorious_rays_origin, th, phi):
|
|||
with open(file_path, newline='') as csvfile:
|
||||
reader = csv.reader(csvfile, delimiter=',')
|
||||
num = 0
|
||||
next(reader)
|
||||
for row in reader:
|
||||
num +=1
|
||||
if int(float(row[6])) == 0:
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import matplotlib.pyplot as plt
|
|||
def read_csv(file_path):
|
||||
with open(file_path, newline='') as csvfile:
|
||||
reader = csv.reader(csvfile, delimiter=',')
|
||||
next(reader)
|
||||
path_to_first_hit = []
|
||||
for row in reader:
|
||||
path_to_first_hit.append(int(float(row[10])))
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import matplotlib.pyplot as plt
|
|||
def read_csv(file_path):
|
||||
with open(file_path, newline='') as csvfile:
|
||||
reader = csv.reader(csvfile, delimiter=',')
|
||||
next(reader)
|
||||
scat_to_first_hit = []
|
||||
for row in reader:
|
||||
scat_to_first_hit.append(int(float(row[9])))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue