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

Public Member Functions

def initialize (self)
 
def wait (self)
 
def draw (self, k, event, run)
 
def set_gpaint (self, waveform, k)
 
def event (self)
 

Public Attributes

 pdfFile
 output file name
 

Static Public Attributes

list hist = [TH1F('h' + str(i), 'wf', 64 * 4, 0.0, 64.0 * 4) for i in range(4)]
 1D histograms
 
list gpaint = [TGraph() for i in range(4)]
 graphs for painting waveforms after the gap in window number
 
list graphs = [[TGraph(5)] for i in range(4)]
 graphs for FE points
 
list tlpfgraphs = [[TGraph(2)] for i in range(4)]
 graphs for template fit points
 
 c1 = TCanvas('c1', 'WF event display', 800, 800)
 canvas
 
string pdfFile = 'waveforms'
 output file name
 

Detailed Description

Simple event display of waveforms with feature extraction points

Definition at line 26 of file showFEWaveforms.py.

Member Function Documentation

◆ draw()

def draw (   self,
  k,
  event,
  run 
)
 Draw histograms and wait for user respond 

Definition at line 74 of file showFEWaveforms.py.

74  def draw(self, k, event, run):
75  ''' Draw histograms and wait for user respond '''
76 
77  self.c1.Clear()
78  self.c1.Divide(1, 4)
79  title = 'WF event display:' + ' run ' + str(run) + ' event ' \
80  + str(event)
81  self.c1.SetTitle(title)
82  for i in range(k):
83  self.c1.cd(i + 1)
84  self.hist[i].Draw()
85  if self.gpaint[i].GetN() > 0:
86  self.gpaint[i].Draw("same")
87  for graph in self.graphs[i]:
88  graph.Draw("sameP")
89  for tlpfgraph in self.tlpfgraphs[i]:
90  tlpfgraph.Draw("sameP")
91  self.c1.Update()
92  stat = self.wait()
93  return stat
94 

◆ event()

def event (   self)
Event processor: fill the histograms, display them,
wait for user respond.

Definition at line 121 of file showFEWaveforms.py.

◆ initialize()

def initialize (   self)
 Initialize the Module: open the canvas. 

Definition at line 51 of file showFEWaveforms.py.

◆ set_gpaint()

def set_gpaint (   self,
  waveform,
  k 
)
 construct a graph to paint waveform differently after window discontinuity 

Definition at line 95 of file showFEWaveforms.py.

◆ wait()

def wait (   self)
 wait for user respond 

Definition at line 58 of file showFEWaveforms.py.


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