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

Public Member Functions

def initialize (self)
 
def event (self)
 
def setErrors (self, hist)
 
def terminate (self)
 

Public Attributes

 hist
 list of histograms
 

Static Public Attributes

list simHits
 list of SimHits to be histogramed More...
 
 n = len(simHits)
 length of simHits list
 

Detailed Description

Make validation histograms for BG mixer.

Definition at line 22 of file validate.py.

Member Function Documentation

◆ event()

def event (   self)
Event processor: fill histograms 

Definition at line 62 of file validate.py.

62  def event(self):
63  ''' Event processor: fill histograms '''
64 
65  for i in range(self.n):
66  hits = Belle2.PyStoreArray(self.simHits[i])
67  for hit in hits:
68  time = hit.getGlobalTime() / 1000
69  self.hist[i].Fill(time)
70 

◆ initialize()

def initialize (   self)
Initialize the Module: set histogram axis titles, description and check

Definition at line 42 of file validate.py.

◆ setErrors()

def setErrors (   self,
  hist 
)
Set bin errors - they are not Poissonian

Definition at line 71 of file validate.py.

◆ terminate()

def terminate (   self)
Write histograms to the file.

Definition at line 89 of file validate.py.

Member Data Documentation

◆ simHits

list simHits
static
Initial value:
= [
'PXDSimHits',
'SVDSimHits',
'CDCSimHits',
'TOPSimHits',
'ARICHSimHits',
'ECLHits',
'BKLMSimHits',
'EKLMSimHits',
]

list of SimHits to be histogramed

Definition at line 29 of file validate.py.


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