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

Public Member Functions

def initialize (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 event_info
 Event info.
 
 tshits
 CDCTRG TS hit.
 
 simhits
 TSIM TS hit.
 
 first_run
 get run ID
 
 nevents
 Number of events.
 

Detailed Description

Module to make some monitor plots for TSF

Definition at line 46 of file monitor_module.py.

Member Function Documentation

◆ event()

def event (   self)
event function

Definition at line 66 of file monitor_module.py.

66  def event(self):
67  """
68  event function
69  """
70  self.nevents += 1
71  used.fill(0)
72  in_tsim.fill(0)
73  for simhit in self.simhits:
74  if simhit.getISuperLayer() % 2 == 0:
75  iax, iw = simhit.getISuperLayer() // 2, simhit.getIWire()
76  if simhit.getPriorityPosition() == 1:
77  iw += 1
78  if iw == nWiresInLayer[iax]:
79  iw = 0
80  hall.Fill(iax, iw)
81  in_tsim[simhit.getSegmentID()] = 1
82  for hit in self.tshits:
83  ind = hit.getSegmentID()
84  # only fill the histogram if the same ID is not found in the event
85  # In other words, it can't be the same hit from another 2D
86  # even if the unpacker does not eliminate repeated hits.
87  iax, iw = hit.getISuperLayer() // 2, hit.getIWire()
88  if hit.getPriorityPosition() == 1:
89  iw += 1
90  if iw == nWiresInLayer[iax]:
91  iw = 0
92  if not used[ind]:
93  used[ind] = 1
94  hhit.Fill(iax, iw)
95  if in_tsim[ind]:
96  hno_ghost.Fill(iax, iw)
97  if not in_tsim[ind]:
98  hghost.Fill(iax, iw)
99  hlr.Fill(hit.getLeftRight())
100  hpri.Fill(hit.getPriorityPosition())
101  hpritime.Fill(hit.priorityTime())
102  hftime.Fill(hit.foundTime())
103 

◆ initialize()

def initialize (   self)
Initilization

Definition at line 51 of file monitor_module.py.

◆ terminate()

def terminate (   self)
termination

Definition at line 104 of file monitor_module.py.


The documentation for this class was generated from the following file:
ClusterEfficiency.ClusterEfficiency.event
def event(self)
Definition: ClusterEfficiency.py:146