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