Belle II Software  release-05-02-19
SVDClustersDebug Class Reference
Inheritance diagram for SVDClustersDebug:
Collaboration diagram for SVDClustersDebug:

Public Member Functions

def initialize (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 fb2u
 

Detailed Description

class to debug clusterizer

Definition at line 40 of file SVDClustersDebug.py.

Member Function Documentation

◆ event()

def event (   self)
event

Definition at line 51 of file SVDClustersDebug.py.

51  def event(self):
52  '''event'''
53 
54  evt = Belle2.PyStoreObj("EventMetaData")
55 
56  clustersZS3 = Belle2.PyStoreArray(cluster3)
57  clustersZS5 = Belle2.PyStoreArray(cluster5)
58 
59  nCl3 = 0
60  nCl5 = 0
61 
62  for d in clustersZS5:
63  if(str(d.getSensorID()) == "4.5.2"):
64  if(d.isUCluster()):
65  nCl5 = nCl5 + 1
66 
67  for d in clustersZS3:
68  if(str(d.getSensorID()) == "4.5.2"):
69  if(d.isUCluster()):
70  nCl3 = nCl3 + 1
71 
72  self.fb2u.Fill(nCl3, nCl5)
73 
74  noisePayload = Belle2.SVDNoiseCalibrations()
75 # print(type(noisePayload))
76 
77  if nCl3 != nCl5:
78  print("different number of clusters in event " + str(evt.getEvent()) +
79  "! ZS3 = " + str(nCl3) + ", ZS5 = " + str(nCl5) + " ")
80 
81  # for d in clustersZS5:
82  # if(str(d.getSensorID()) == "4.5.2") :
83  # if(d.isUCluster()):
84  # print(" ZS5: seed charge = "+str(d.getSeedCharge())+",\
85  # size = "+str(d.getSize())+", position = "+str(d.getPosition())+", charge = "+str(d.getCharge())+" ")
86 
87  # for d in clustersZS3:
88  # if(str(d.getSensorID()) == "4.5.2") :
89  # if(d.isUCluster()):
90  # print(" ZS3: seed charge = "+str(d.getSeedCharge())+",\
91  # size = "+str(d.getSize())+", position = "+str(d.getPosition())+", charge = "+str(d.getCharge())+" ")
92 
93  for d3 in clustersZS3:
94  if(str(d3.getSensorID()) == "4.5.2"):
95  if(d3.isUCluster()):
96  found = False
97  for d5 in clustersZS5:
98  if(str(d5.getSensorID()) == "4.5.2"):
99  if(d5.isUCluster()):
100  if(d5.getSeedCharge() == d3.getSeedCharge()):
101  found = True
102  if not found:
103  print(" ONLY ZS3: seed charge = " + str(d3.getSeedCharge()) + ", size = " + str(d3.getSize()) +
104  ", position = " + str(d3.getPosition()) + ", charge = " + str(d3.getCharge()) + " ")
105  reco = d3.getRelationsTo(reco3)
106 # print("test size cluster: "+str(reco.size()))
107  for r in reco:
108  charge = r.getCharge()
109  noise = noisePayload.getNoiseInElectrons(r.getSensorID(), True, r.getCellID())
110  print(" SNR = " + str(charge / noise) + ", charge = " + str(charge) + ", noise = " + str(noise))
111 

◆ initialize()

def initialize (   self)
initialize

Definition at line 43 of file SVDClustersDebug.py.

◆ terminate()

def terminate (   self)
terminate

Definition at line 112 of file SVDClustersDebug.py.


The documentation for this class was generated from the following file:
Belle2::PyStoreObj
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:69
ClusterEfficiency.ClusterEfficiency.event
def event(self)
Definition: ClusterEfficiency.py:146
Belle2::SVDNoiseCalibrations
This class defines the dbobject and the method to access SVD calibrations from the noise local runs.
Definition: SVDNoiseCalibrations.h:46
Belle2::PyStoreArray
a (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:58