Belle II Software  release-08-01-10
SVDClustersQuickCheck Class Reference
Inheritance diagram for SVDClustersQuickCheck:
Collaboration diagram for SVDClustersQuickCheck:

Public Member Functions

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

Detailed Description

 quick check of cluster reconstruction

Definition at line 31 of file testNewReco.py.

Member Function Documentation

◆ event()

def event (   self)
 look at cluster and new clusters

Definition at line 95 of file testNewReco.py.

95 
96  def event(self):
97  ''' look at cluster and new clusters'''
98 
99  clusterList = Belle2.PyStoreArray("SVDClusters")
100  clusterListNew = Belle2.PyStoreArray("SVDNewClusters")
101  print("number of clusters = " + str(clusterList.getEntries()) + " (old) VS " + str(clusterListNew.getEntries()) + " (new)")
102 
103  for d in clusterList:
104  trueList = d.getRelationsTo('SVDTrueHits') # SVDClustersToSVDTrueHits
105  isU = 0
106  if(d.isUCluster()):
107  isU = 0.5
108  truePos = trueList[0].getU()
109  else:
110  truePos = trueList[0].getV()
111 
112  self.size.Fill(d.getSize())
113  self.time.Fill(d.getClsTime())
114  self.ff.Fill(d.getFirstFrame())
115  self.charge.Fill(d.getCharge() / 1000)
116  self.SNR.Fill(d.getSNR())
117  self.position.Fill(d.getPosition())
118  self.positionSigma.Fill(d.getPositionSigma() * 1e4)
119  if d.getSize() == 1:
120  self.positionS1.Fill(d.getPosition())
121  self.positionS1Sigma.Fill(d.getPositionSigma() * 1e4)
122  self.positionPull1.Fill((d.getPosition() - truePos) / d.getPositionSigma())
123  if d.getSize() == 2:
124  self.positionS2.Fill(d.getPosition())
125  self.positionS2Sigma.Fill(d.getPositionSigma() * 1e4)
126  self.positionPull2.Fill((d.getPosition() - truePos) / d.getPositionSigma())
127  if d.getSize() > 2:
128  self.positionS3.Fill(d.getPosition())
129  self.positionS3Sigma.Fill(d.getPositionSigma() * 1e4)
130  self.positionPull3.Fill((d.getPosition() - truePos) / d.getPositionSigma())
131 
132  self.test[d.getSensorID().getLayerNumber() - 3].Fill(d.getSensorID().getLadderNumber(),
133  d.getSensorID().getSensorNumber() + isU)
134  self.positionPull.Fill((d.getPosition() - truePos) / d.getPositionSigma())
135 
136  for d in clusterListNew:
137 
138  isU = 0
139  trueListNew = d.getRelationsTo('SVDTrueHits') # SVDClustersToSVDTrueHits
140  if(d.isUCluster()):
141  isU = 0.5
142  truePos = trueListNew[0].getU()
143  else:
144  truePos = trueListNew[0].getV()
145 
146  self.sizeNew.Fill(d.getSize())
147  self.timeNew.Fill(d.getClsTime())
148  self.ffNew.Fill(d.getFirstFrame())
149  self.chargeNew.Fill(d.getCharge() / 1000)
150  self.SNRNew.Fill(d.getSNR())
151  self.positionNew.Fill(d.getPosition())
152  self.positionSigmaNew.Fill(d.getPositionSigma() * 1e4)
153  if d.getSize() == 1:
154  self.positionS1New.Fill(d.getPosition())
155  self.positionS1SigmaNew.Fill(d.getPositionSigma() * 1e4)
156  self.positionPull1New.Fill((d.getPosition() - truePos) / d.getPositionSigma())
157  if d.getSize() == 2:
158  self.positionS2New.Fill(d.getPosition())
159  self.positionS2SigmaNew.Fill(d.getPositionSigma() * 1e4)
160  self.positionPull2New.Fill((d.getPosition() - truePos) / d.getPositionSigma())
161  if d.getSize() > 2:
162  self.positionS3New.Fill(d.getPosition())
163  self.positionS3SigmaNew.Fill(d.getPositionSigma() * 1e4)
164  self.positionPull3New.Fill((d.getPosition() - truePos) / d.getPositionSigma())
165 
166  self.testNew[d.getSensorID().getLayerNumber() - 3].Fill(d.getSensorID().getLadderNumber(),
167  d.getSensorID().getSensorNumber() + isU)
168  self.positionPullNew.Fill((d.getPosition() - truePos) / d.getPositionSigma())
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

◆ initialize()

def initialize (   self)
define histograms

Definition at line 34 of file testNewReco.py.

◆ terminate()

def terminate (   self)
write

Definition at line 169 of file testNewReco.py.


The documentation for this class was generated from the following file: