Belle II Software  release-08-01-10
GenerateHist Class Reference
Inheritance diagram for GenerateHist:
Collaboration diagram for GenerateHist:

Public Member Functions

def initialize (self)
 
def event (self)
 

Static Public Attributes

 edep_hist = TH1F("CDC_edep", "Energy deposition from CDCSimHits", 100, 0.0, 10e-6)
 histogram for SimHit energy deposition
 
 pos_hist
 histogram for SimHit positions More...
 

Detailed Description

Generate some histograms to pass to the display.

Definition at line 23 of file histogram_monitor.py.

Member Function Documentation

◆ event()

def event (   self)
reimplementation of Module::event().

Definition at line 39 of file histogram_monitor.py.

39  def event(self):
40  """reimplementation of Module::event()."""
41 
42  displayData = Belle2.PyStoreObj("DisplayData")
43  displayData.create()
44 
45  cdcsimhits = Belle2.PyStoreArray("CDCSimHits")
46  for hit in cdcsimhits:
47  self.edep_hist.Fill(hit.getEnergyDep())
48  p = hit.getPosWire()
49  self.pos_hist.Fill(p.X(), p.Y(), p.Z())
50 
51  displayData.obj().addHistogram("CDC_edep", self.edep_hist)
52  displayData.obj().addHistogram("CDC_pos", self.pos_hist)
53 
54 
55 # register necessary modules
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ initialize()

def initialize (   self)
reimplementation of Module::initialize().

Definition at line 34 of file histogram_monitor.py.

Member Data Documentation

◆ pos_hist

pos_hist
static
Initial value:
= TH3F("CDC_pos", "Positions of CDCSimHits",
100, -150.0, 150.0,
100, -150.0, 150.0,
100, -150.0, 150.0)

histogram for SimHit positions

Definition at line 29 of file histogram_monitor.py.


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