Added the clusterize function for calculating the 2x2 and 3x3 clusters

This commit is contained in:
2023-05-24 17:34:02 +02:00
parent 74263a7d7a
commit 7bdbd14a14
5 changed files with 178 additions and 8 deletions

10
test.py
View File

@@ -2,13 +2,15 @@ from creader import ClusterFileReader
import numpy as np
maxph=100000000
maxph=100
#maxph=100
from pathlib import Path
fpath = Path('/Users/erik/data/clusters/beam_En700eV_-40deg_300V_10us_d0_f0_100.clust')
# r = ClusterFileReader("/mnt/moench_data/Moench_LGAD_SIM_Nov22/moenchLGAD202211/clustW17new/beam_En800eV_-40deg_300V_10us_d0_f5_0.clust")
fpath = Path("/mnt/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)
# print(a[::100000])
b=r.clusterize(a)
#v=int(maxph/100)
#print(a[::v])