Update 2-ph sample size to 6; optimize MC logics
This commit is contained in:
+1
-4
@@ -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]])
|
||||
|
||||
Reference in New Issue
Block a user