12import modularAnalysis
as ma
16sys_tests = [
'def',
'scale']
21if test
not in sys_tests:
22 print(f
"Unknown systematic test {test}")
26my_path = b2.create_path()
29ma.inputMdst(filename=b2.find_file(
'B02D0pi0_D02pi0pi0.root',
'examples',
False),
33weight_table_id =
"PhotonEnergyBiasCorrection_Feb2021"
35b2.conditions.prepend_globaltag(ma.getAnalysisGlobaltag())
39va.variables.addAlias(
'Weight',
'extraInfo(' + weight_table_id +
'_Weight)')
40va.variables.addAlias(
'StatErr',
'extraInfo(' + weight_table_id +
'_StatErr)')
41va.variables.addAlias(
'binID',
'extraInfo(' + weight_table_id +
'_binID)')
44GammaSelection =
'theta > 0.296706 and theta < 2.6179'
45ma.fillParticleList(decayString=
'gamma:sel',
56 ma.correctEnergyBias(inputListNames=[
'gamma:sel'], tableName=weight_table_id, path=my_path)
60 'E',
'Weight',
'StatErr',
'binID'
64ma.variablesToNtuple(decayString=
'gamma:sel',
66 filename=f
'gamma_{test}.root',