12A test of the TDCPV variables using the small test file for running quickly
16from basf2
import set_random_seed, create_path, process
17import modularAnalysis
as ma
22set_random_seed(
"1337")
31ma.fillParticleList(decayString=
'mu+:all', cut=
'', path=path)
34ma.reconstructDecay(decayString=
'J/psi:mumu -> mu+:all mu-:all', cut=
'dM<0.11', path=path)
37ma.fillParticleList(decayString=
'pi+:all', cut=
'', path=path)
38ma.reconstructDecay(decayString=
'K_S0:pipi -> pi+:all pi-:all', cut=
'dM<0.25', path=path)
41ma.reconstructDecay(decayString=
'B0:sig -> J/psi:mumu K_S0:pipi', cut=
'Mbc > 5.2 and abs(deltaE)<0.15', path=path)
44ma.matchMCTruth(list_name=
'B0:sig', path=path)
47ma.buildRestOfEvent(target_list_name=
'B0:sig', fillWithMostLikely=
True,
51vx.treeFit(
'B0:sig', ipConstraint=
True, path=path)
54vx.TagV(list_name=
'B0:sig', MCassociation=
'breco', fitAlgorithm=
'KFit', constraintType=
'tube', path=path)
56tdcpv_vars = [
'DeltaT',
'DeltaTErr',
'DeltaTBelle',
'TagVz',
'TagVzErr',
'mcDeltaT',
'mcDeltaTau',
'isSignal']
59ma.printVariableValues(
'B0:sig', var_names=tdcpv_vars, path=path)
def require_file(filename, data_type="", py_case=None)
def configure_logging_for_tests(user_replacements=None)