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

Public Member Functions

def event (self)
 

Detailed Description

Module which checks if a generated bremsstrahlung cluster is assigned correctly
to the primary ECL cluster generated by an electron

Definition at line 14 of file eclTrackBremFinderTest.py.

Member Function Documentation

◆ event()

def event (   self)
load the one track from the data store and check if the relation to the brem cluster
can been set correctly

Definition at line 20 of file eclTrackBremFinderTest.py.

20  def event(self):
21  """
22  load the one track from the data store and check if the relation to the brem cluster
23  can been set correctly
24  """
25  clusters = Belle2.PyStoreArray("ECLClusters")
26 
27  bremCluster = None
28 
29  for cluster in clusters:
30  if cluster.isTrack() and cluster.getHypothesisId() == 5:
31  # this is the primary of the electron
32 
33  # is there a relation to our secondary cluster ?
34  bremCluster = cluster.getRelated("ECLClusters")
35 
36  assert(bremCluster)
37 
38 

The documentation for this class was generated from the following file:
ClusterEfficiency.ClusterEfficiency.event
def event(self)
Definition: ClusterEfficiency.py:146
Belle2::PyStoreArray
a (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:58