Belle II Software  release-08-01-10
SVDOtherValidations.py
1 # !/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 """
13 <header>
14  <input>SVDValidationTTreeSimhit.root</input>
15  <output>SVDOtherValidations.root</output>
16  <description>
17  Additional validation plots not related to other categories.
18  </description>
19  <contact>
20  SVD Software Group, svd-software@belle2.org
21  </contact>
22 </header>
23 """
24 
25 import ROOT as R
26 import plotUtils as pu
27 
28 inputSim = R.TFile.Open("../SVDValidationTTreeSimhit.root")
29 
30 treeSim = inputSim.Get("tree")
31 
32 histsOV = R.TFile.Open("SVDOtherValidations.root", "recreate")
33 
34 pu.plotter(
35  name='dEdxForSimhits',
36  title='dE/dx for SimHits',
37  nbins=100,
38  xmin=0,
39  xmax=10,
40  x_label='dE/dx (MeV/cm)',
41  y_label='counts',
42  granules=pu.gD2,
43  tree=treeSim,
44  expr='simhit_dEdx*1000',
45  cut='',
46  descr='Simulated dE/dx for SimHits.',
47  check='Distribution should peak around 2.8 MeV/cm.',
48  isShifter=False)