18 path = basf2.create_path()
 
   19 path.add_module(
'RootInput', inputFileName=inputFile)
 
   22 mod = basf2.register_module(
'VariableToReturnValue')
 
   23 mod.param(
'variable', 
'nTracks')
 
   24 high_multiplicity_path = basf2.create_path()
 
   25 high_multiplicity_path.add_module(
'VariablesToNtuple', particleList=
'', variables=[
'nTracks'], fileName=
'highMultiplicity.root')
 
   26 mod.if_value(
'>= 12', high_multiplicity_path, basf2.AfterConditionPath.CONTINUE)
 
   34     assert os.path.isfile(
'highMultiplicity.root'), 
"highMultiplicity.root wasn't created" 
   35     f = ROOT.TFile(
'highMultiplicity.root')
 
   37     assert bool(t), 
"ntuple isn't contained in file" 
   38     assert t.GetListOfBranches().Contains(
'nTracks'), 
"nTracks branch is missing" 
   39     assert t.GetListOfBranches().Contains(
'__weight__'), 
"weight branch is missing" 
   42         assert event.nTracks >= 12, 
"Expected >= 12 tracks in selected high multiplicity events" 
def require_file(filename, data_type="", py_case=None)
def clean_working_directory()