Belle II Software light-2406-ragdoll
MakeRelations Class Reference
Inheritance diagram for MakeRelations:
Collaboration diagram for MakeRelations:

Public Member Functions

def initialize (self)
 
def event (self)
 

Public Attributes

 tracks
 Tracks.
 
 clusters
 KLMClusters.
 
 first
 Bool for flagging the first event processed.
 

Detailed Description

Simple module that creates some relations.

Definition at line 18 of file emptyrelations.py.

Member Function Documentation

◆ event()

def event (   self)
Event.

Definition at line 33 of file emptyrelations.py.

33 def event(self):
34 '''Event.'''
35 if not self.first:
36 track = self.tracks.appendNew()
37 cluster = self.clusters.appendNew()
38 track.addRelationTo(cluster)
39 self.first = False
40
41

◆ initialize()

def initialize (   self)
Initialize.

Definition at line 21 of file emptyrelations.py.

21 def initialize(self):
22 '''Initialize.'''
23
24 self.tracks = Belle2.PyStoreArray('Tracks')
25
26 self.clusters = Belle2.PyStoreArray('KLMClusters')
27 self.tracks.registerInDataStore()
28 self.clusters.registerInDataStore()
29 self.tracks.registerRelationTo(self.clusters)
30
31 self.first = True
32
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

Member Data Documentation

◆ clusters

clusters

KLMClusters.

Definition at line 26 of file emptyrelations.py.

◆ first

first

Bool for flagging the first event processed.

Definition at line 31 of file emptyrelations.py.

◆ tracks

tracks

Tracks.

Definition at line 24 of file emptyrelations.py.


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