12a test of the EventKinematics variables using the small test file for running quickly
16from basf2
import set_random_seed, create_path, process
20set_random_seed(
"1337")
23fsps = [
'pi-:all',
'gamma:all']
26testpath = create_path()
27testpath.add_module(
'RootInput', inputFileNames=testinput)
31testpath.add_module(
'ParticleLoader', decayStrings=fsps)
32testpath.add_module(
'ParticleSelector', decayString=
'gamma:all', cut=
'isFromECL')
36 "missingMomentumOfEvent",
37 "missingMomentumOfEvent_Px",
38 "missingMomentumOfEvent_Py",
39 "missingMomentumOfEvent_Pz",
40 "missingMomentumOfEvent_theta",
41 "missingMomentumOfEventCMS",
42 "missingMomentumOfEventCMS_Px",
43 "missingMomentumOfEventCMS_Py",
44 "missingMomentumOfEventCMS_Pz",
45 "missingMomentumOfEventCMS_theta",
46 "missingEnergyOfEventCMS",
47 "missingMass2OfEvent",
48 "visibleEnergyOfEventCMS",
49 "totalPhotonsEnergyOfEvent"
52testpath.add_module(
'EventKinematics', particleLists=fsps)
54testpath.add_module(
'ParticlePrinter', listName=
'', fullPrint=
False,
55 variables=event_kinematics)
def require_file(filename, data_type="", py_case=None)
def configure_logging_for_tests(user_replacements=None)