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