Belle II Software  release-08-01-10
VxdCdcMergerValidationPlots Class Reference

Public Member Functions

def __init__ (self, input_file='../VxdCdcValidationHarvested.root', output_file='VxdCdcMergerValidation.root')
 
def collect_histograms (self)
 
def plot (self)
 

Static Public Member Functions

def histogram_plot (hist, title, x_variable, x_unit=None, description='', check='', contact='', meta_options='')
 

Public Attributes

 input_file
 cached name of the input file
 
 output_file
 cached name of the output file
 
 hist_merged_hits
 1D histogram of merged hits
 
 hist_good_over_pt
 Profile histogram of good merged hits by transverse momentum.
 
 hist_good_over_theta
 Profile histogram of good merged hits by polar angle.
 

Detailed Description

Create efficiency plots for the V0 validation

Definition at line 25 of file vxdCdcMergerValidationCreatePlots.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  input_file = '../VxdCdcValidationHarvested.root',
  output_file = 'VxdCdcMergerValidation.root' 
)
Constructor

Definition at line 28 of file vxdCdcMergerValidationCreatePlots.py.

28  def __init__(self, input_file='../VxdCdcValidationHarvested.root', output_file='VxdCdcMergerValidation.root'):
29  """Constructor"""
30 
31  self.input_file = input_file
32 
33  self.output_file = output_file
34 
35 
36  self.hist_merged_hits = ROOT.TH1F("merged_hits", "Merged Hits", 70, 0, 140)
37 
38  self.hist_good_over_pt = ROOT.TProfile("good_over_pt", "Good Merge over Pt", 50, 0, 4)
39 
40  self.hist_good_over_theta = ROOT.TProfile("good_over_theta", "Good Merge over Theta", 50, 0, 4)
41 

Member Function Documentation

◆ collect_histograms()

def collect_histograms (   self)
Fill the histograms in each event

Definition at line 42 of file vxdCdcMergerValidationCreatePlots.py.

◆ histogram_plot()

def histogram_plot (   hist,
  title,
  x_variable,
  x_unit = None,
  description = '',
  check = '',
  contact = '',
  meta_options = '' 
)
static
Label and annotate the histograms

Definition at line 55 of file vxdCdcMergerValidationCreatePlots.py.

◆ plot()

def plot (   self)
Draw all of the histograms to the output ROOT file

Definition at line 70 of file vxdCdcMergerValidationCreatePlots.py.


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