Belle II Software
development
SVDValidationRecoDigitPerformance.py
1
# !/usr/bin/env python3
2
3
10
11
"""
12
<header>
13
<input>SVDValidationTTreeRecoDigit.root</input>
14
<output>SVDRecoDigitPerformance.root</output>
15
<description>
16
Validation plots related to RecoDigit performance.
17
</description>
18
<contact>
19
SVD Software Group, svd-software
@belle2.org
20
</contact>
21
</header>
22
"""
23
24
import ROOT as R
25
26
import plotUtils as pu
27
28
inputRD = R.TFile.Open("../SVDValidationTTreeRecoDigit.root")
29
30
treeRD = inputRD.Get("tree")
31
32
histsRDP = R.TFile.Open("SVDRecoDigitPerformance.root", "recreate")
33
34
pu.plotter(
35
name='TimeResolution'
,
36
title=
'Resolution of the reconstructed time of a single strip'
,
37
nbins=200,
38
xmin=-100,
39
xmax=100,
40
x_label=
'RecoDigit time resolution (ns)'
,
41
y_label=
'counts'
,
42
granules=pu.gD,
43
tree=treeRD,
44
expr=
'recodigit_time - truehit_time'
,
45
cut=
''
,
46
descr=
'Definition: (reconstructed time of the RecoDigit) - (time of the Truehit);\
47
for all RecoDigit related to at least one TrueHit.'
,
48
check=
'Distribution should be centered around 0, with an RMS between 7 and 10 ns.'
,
49
isShifter=
True
)
50
51
pu.plotter(
52
name=
'StripCharge'
,
53
title=
'Charge of the strip'
,
54
nbins=50,
55
xmin=0,
56
xmax=120000,
57
x_label=
'Strip charge (e-)'
,
58
y_label=
'counts'
,
59
granules=pu.gD,
60
tree=treeRD,
61
expr=
'recodigit_charge'
,
62
cut=
''
,
63
descr=
'Strip charge for all RecoDigits related to at least one TrueHit.'
,
64
check=
''
,
65
isShifter=
False
)
svd
validation
SVDValidationRecoDigitPerformance.py
Generated on Tue Nov 12 2024 02:42:11 for Belle II Software by
1.9.6