12Forbid users from using the Best Candidate Selection module to remove candidates from particle lists with protected identifiers.
16from basf2
import create_path, set_random_seed
17import modularAnalysis
as ma
21set_random_seed(
'1337')
25badpath_all = create_path()
26badpath_all.add_module(
'RootInput', inputFileNames=testinput)
27badpath_all.add_module(
'ParticleLoader', decayStrings=[
'e+:all'])
28ma.rankByLowest(
"e+:all",
"px", numBest=0, path=badpath_all)
29ma.rankByLowest(
"e+:all",
"px", numBest=1, path=badpath_all)
33badpath_MC = create_path()
34badpath_MC.add_module(
'RootInput', inputFileNames=testinput)
35ma.fillParticleListFromMC(
"e-:MC",
"", path=badpath_MC)
36ma.rankByLowest(
"e+:MC",
"px", numBest=0, path=badpath_MC)
37ma.rankByLowest(
"e+:MC",
"px", numBest=1, path=badpath_MC)
41badpath_V0 = create_path()
42badpath_V0.add_module(
'RootInput', inputFileNames=testinput)
43ma.fillParticleList(
'K_S0:V0 -> pi+ pi-',
'',
True, path=badpath_V0)
44ma.rankByLowest(
"K_S0:V0",
"px", numBest=0, path=badpath_V0)
45ma.rankByLowest(
"K_S0:V0",
"px", numBest=1, path=badpath_V0)
def require_file(filename, data_type="", py_case=None)
def safe_process(*args, **kwargs)
def configure_logging_for_tests(user_replacements=None)