added examples, moved implementation to new file

This commit is contained in:
Erik Frojdh
2023-05-30 16:08:32 +02:00
parent 6aa6673696
commit ae6aa5b58d
7 changed files with 416 additions and 179 deletions

10
test.py
View File

@@ -1,16 +1,16 @@
from creader import ClusterFileReader
import numpy as np
maxph=100000000
#maxph=100
# maxph=100000000
maxph=100
from pathlib import Path
fpath = Path("/mnt/moench_data/Moench_LGAD_SIM_Nov22/moenchLGAD202211/clustW17new/beam_En800eV_-40deg_300V_10us_d0_f5_0.clust")
fpath = Path("/mnt/sls_det_storage/moench_data/Moench_LGAD_SIM_Nov22/moenchLGAD202211/clustW17new/beam_En800eV_-40deg_300V_10us_d0_f5_0.clust")
# r = ClusterFileReader()
r = ClusterFileReader(fpath.as_posix())
a=r.read(maxph)
b=r.clusterize(a)
# a=r.read(maxph)
# b=r.clusterize(a)
#v=int(maxph/100)
#print(a[::v])