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

Public Member Functions

def __init__ (self)
 
def beginRun (self)
 
def event (self)
 
def terminate (self)
 
def decode (self, vxdid)
 

Public Attributes

 file
 Input file object.
 
 vxdid_factors
 Factors for decoding VXDId's.
 
 fHisto
 File to save histograms.
 
 h_pull_u
 Histogram for u pulls.
 
 h_pull_v
 Histogram for v pulls.
 

Detailed Description

A simple module to check the reconstruction of PXDTrueHits.

Definition at line 19 of file PXDHitErrors.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 23 of file PXDHitErrors.py.

23  def __init__(self):
24  """Initialize the module"""
25 
26  super().__init__()
27 
28  self.file = open('PXDHitErrorOutput.txt', 'w')
29 
30  self.vxdid_factors = (8192, 256, 32)
31 
32  self.fHisto = ROOT.TFile('PXDPulls.root', 'RECREATE')
33 
34  self.h_pull_u = ROOT.TH1F('h_pull_u', 'Pulls in u', 150, -10, 5)
35 
36  self.h_pull_v = ROOT.TH1F('h_pull_v', 'Pulls in v', 100, -5, 5)
37 

Member Function Documentation

◆ beginRun()

def beginRun (   self)
 Write legend for file columns 

Definition at line 38 of file PXDHitErrors.py.

◆ decode()

def decode (   self,
  vxdid 
)
 Utility to decode sensor IDs 

Definition at line 129 of file PXDHitErrors.py.

◆ event()

def event (   self)
Find clusters with a truehit and print some stats.

Definition at line 45 of file PXDHitErrors.py.

◆ terminate()

def terminate (   self)
 Close the output file.

Definition at line 118 of file PXDHitErrors.py.


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