Belle II Software  release-06-00-14
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 28 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 34 of file eclTrackBremFinderTest.py.

34  def event(self):
35  """
36  Load the one track from the data store and check if the relation to the brem cluster
37  can been set correctly.
38  """
39  clusters = Belle2.PyStoreArray("ECLClusters")
40  bremCluster = None
41  for cluster in clusters:
42  # this is the primary of the electron
43  if cluster.isTrack() and cluster.hasHypothesis(Belle2.ECLCluster.EHypothesisBit.c_nPhotons):
44  # is there a relation to our secondary cluster?
45  bremCluster = cluster.getRelated("ECLClusters")
46  # there must be a bremCluster at this point
47  assert(bremCluster)
48 
49 
a (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:56

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