Belle II Software  release-06-01-15
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 20 of file PXDHitErrors.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 24 of file PXDHitErrors.py.

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

Member Function Documentation

◆ beginRun()

def beginRun (   self)
 Write legend for file columns 

Definition at line 39 of file PXDHitErrors.py.

◆ decode()

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

Definition at line 142 of file PXDHitErrors.py.

◆ event()

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

Definition at line 46 of file PXDHitErrors.py.

◆ terminate()

def terminate (   self)
 Close the output file.

Definition at line 131 of file PXDHitErrors.py.


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