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