Belle II Software  release-05-01-25
test2_TauThrust.py
1 #!/usr/bin/env/python3
2 # -*-coding: utf-8-*-
3 
4 import ROOT
5 import basf2 as b2
6 import modularAnalysis as ma
7 from stdCharged import stdPi
8 from stdPhotons import stdPhotons
9 from skim.taupair import TauThrust
10 from validation_tools.metadata import create_validation_histograms
11 
12 """
13 <header>
14  <input>../TauThrust.udst.root</input>
15  <output>TauThrust_Validation.root</output>
16  <contact>kenji@hepl.phys.nagoya-u.ac.jp</contact>
17 </header>
18 """
19 
20 tauthrustskim = b2.Path()
21 
22 ma.inputMdst('default', '../TauThrust.udst.root', path=tauthrustskim)
23 
24 stdPi('all', path=tauthrustskim)
25 stdPhotons('all', path=tauthrustskim)
26 
27 # set variables
28 TauThrust().additional_setup(path=tauthrustskim)
29 
30 # add contact information to histogram
31 contact = "kenji@hepl.phys.nagoya-u.ac.jp"
32 
33 # the variables that are printed out are:
34 create_validation_histograms(
35  rootfile='TauGeneric_Validation.root',
36  particlelist='',
37  variables_1d=[
38  ('nGoodTracksThrust', 7, 1, 8, '', contact, '', ''),
39  ('visibleEnergyOfEventCMS', 40, 0, 12, '', contact, '', ''),
40  ('thrust', 50, 0.75, 1, '', contact, '', '')],
41  path=tauthrustskim)
42 
43 # process
44 b2.process(tauthrustskim)
45 print(b2.statistics)
stdPhotons
Definition: stdPhotons.py:1
skim.taupair
Definition: taupair.py:1
validation_tools.metadata
Definition: metadata.py:1