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

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 20 of file vxdCdcMergerValidationCreatePlots.py.

20  def __init__(self, input_file='../VxdCdcValidationHarvested.root', output_file='VxdCdcMergerValidation.root'):
21  """Constructor"""
22 
23  self.input_file = input_file
24 
25  self.output_file = output_file
26 
27 
28  self.hist_merged_hits = ROOT.TH1F("merged_hits", "Merged Hits", 70, 0, 140)
29 
30  self.hist_good_over_pt = ROOT.TProfile("good_over_pt", "Good Merge over Pt", 50, 0, 4)
31 
32  self.hist_good_over_theta = ROOT.TProfile("good_over_theta", "Good Merge over Theta", 50, 0, 4)
33 

Member Function Documentation

◆ collect_histograms()

def collect_histograms (   self)
Fill the histograms in each event

Definition at line 34 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 47 of file vxdCdcMergerValidationCreatePlots.py.

◆ plot()

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

Definition at line 62 of file vxdCdcMergerValidationCreatePlots.py.


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