Update 2-ph sample size to 6; optimize MC logics

This commit is contained in:
2026-06-10 11:28:38 +02:00
parent 09de999c72
commit edaa191490
2 changed files with 5 additions and 6 deletions
+1 -4
View File
@@ -13,7 +13,7 @@ _pedestalAduFrame = None ### global pedestalAduFrame
_noiseEneFrame = None ### global noiseEneFrame
nChunks = 16
clusterSize3Photon = 9
clusterSize2Photon = 7
clusterSize2Photon = 6
clusterSize1Photon = 3
def init(cfg):
@@ -410,9 +410,6 @@ def _processFrames(idxChunk): ### for both single and double photon events, usin
cluster_2Photon += signalEneFrame[int(ref_y):int(ref_y)+clusterSize2Photon, int(ref_x):int(ref_x)+clusterSize2Photon]
_hists['h1_2PhotonClusterEnergy'].Fill(np.sum(cluster_2Photon))
for i in range(clusterSize2Photon):
for j in range(clusterSize2Photon):
_hists['h2_2PhotonSumSample'].Fill(i, j, cluster_2Photon[i, j])
if 'writeClusters' in _cfg and _cfg['writeClusters'] == True:
cluster_2Photon_list.append(cluster_2Photon)
refpoint_2Photon_list.append([int(ref_x)+Roi[0], int(ref_y)+Roi[2]])