Belle II Software  release-05-02-19
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 13 of file PXDHitErrors.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 17 of file PXDHitErrors.py.

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

Member Function Documentation

◆ beginRun()

def beginRun (   self)
Write legend for file columns 

Definition at line 32 of file PXDHitErrors.py.

◆ decode()

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

Definition at line 135 of file PXDHitErrors.py.

◆ event()

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

Definition at line 39 of file PXDHitErrors.py.

◆ terminate()

def terminate (   self)
Close the output file.

Definition at line 124 of file PXDHitErrors.py.


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