Belle II Software  release-08-01-10
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 29 of file validate.py.

Member Function Documentation

◆ event()

def event (   self)
 Event processor: fill histograms 

Definition at line 68 of file validate.py.

68  def event(self):
69  ''' Event processor: fill histograms '''
70 
71  for i in range(self.n):
72  hits = Belle2.PyStoreArray(self.simHits[i])
73  for hit in hits:
74  time = hit.getGlobalTime() / 1000
75  self.hist[i].Fill(time)
76 
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

◆ initialize()

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

Definition at line 48 of file validate.py.

◆ setErrors()

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

Definition at line 77 of file validate.py.

◆ terminate()

def terminate (   self)
 Write histograms to the file.

Definition at line 95 of file validate.py.

Member Data Documentation

◆ simHits

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

list of SimHits to be histogramed

Definition at line 36 of file validate.py.


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