Belle II Software  release-06-00-14
IPDQM.py
1 # !/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 """
13 This module defines functions to add IP Position Monitor to DQM modules.
14 """
15 
16 import basf2
17 import modularAnalysis as ma
18 import vertex as vx
19 
20 
21 def add_IP_dqm(path):
22 
23  mySelection = 'p>1.0'
24  mySelection += ' and abs(dz)<2.0 and dr<0.5'
25  ma.fillParticleList('mu+:DQM', mySelection, path=path)
26  ma.reconstructDecay('Upsilon(4S):IPDQM -> mu+:DQM mu-:DQM', '9.5<M<11.5', path=path)
27  vx.kFit('Upsilon(4S):IPDQM', conf_level=0, path=path)
28 
29  dqm = basf2.register_module('IPDQMExpressReco')
30  dqm.set_log_level(basf2.LogLevel.INFO)
31  dqm.param('Y4SPListName', 'Upsilon(4S):IPDQM')
32  path.add_module(dqm)