13 a test of the TDCPV variables using the small test file for running quickly
17 from basf2
import set_random_seed, create_path, process
21 set_random_seed(
"1337")
24 fsps = [
'mu-',
'pi-',
'gamma']
27 testpath = create_path()
28 testpath.add_module(
'RootInput', inputFileNames=testinput)
30 testpath.add_module(
'ParticleLoader', decayStrings=[fsp])
35 testpath.add_module(
'ParticleCombiner', decayString=f
'{signal_list} -> mu+:all mu-:all',
36 cut=
'daughter(0, isSignal) > 0 and daughter(1, isSignal) > 0 '
37 ' and daughter(0, genMotherID) == daughter(1, genMotherID)')
39 testpath.add_module(
'ParticleVertexFitter', listName=signal_list,
40 confidenceLevel=0., vertexFitter=
'KFit')
42 testpath.add_module(
'ParticlePrinter', listName=signal_list, fullPrint=
False)
44 testpath.add_module(
'RestOfEventBuilder', particleList=signal_list,
45 particleListsInput=[
'pi+:all',
'gamma:all'])
47 testpath.add_module(
'TagVertex', listName=signal_list)
49 tdcpv_vars = [
'DeltaT',
'DeltaTErr',
'DeltaTBelle',
'TagVz',
'TagVzErr']
51 testpath.add_module(
'ParticlePrinter', listName=signal_list, fullPrint=
False,
def configure_logging_for_tests(user_replacements=None)
def require_file(filename, data_type="", py_case=None)