Belle II Software development
SVDVariablesToStorageModuleTests Class Reference
Inheritance diagram for SVDVariablesToStorageModuleTests:

Public Member Functions

 test (self)
 

Detailed Description

The unit test for SVDVariablesToStorageModule

Definition at line 18 of file SVDVariablesToStorageModuleTests.py.

Member Function Documentation

◆ test()

test ( self)
 Test of SVDVariablesToStorageModule 

Definition at line 21 of file SVDVariablesToStorageModuleTests.py.

21 def test(self):
22 """ Test of SVDVariablesToStorageModule """
23
24 set_random_seed("something important")
25
27
28 main = create_path()
29
30 input_file = b2test_utils.require_file('SVDClusters.root', 'validation')
31 ma.inputMdst(input_file, path=main)
32
33 ma.fillParticleList("pi+:all", "", path=main)
34
35 variablesToNtuple = ["SVDClusterCharge", "SVDClusterSNR", "SVDClusterSize", "SVDClusterTime",
36 "SVDTrackPrime", "SVDResidual", "SVDLayer", "SVDLadder", "SVDSensor", "SVDSide"]
37
38 main.add_module("SVDVariablesToStorage",
39 outputFileName="SVDVariablesToStorageModuleTests.root",
40 containerName="SVDClusterVariables",
41 particleListName="pi+:all",
42 variablesToNtuple=variablesToNtuple)
44 b2test_utils_analysis.scanTTree("SVDVariablesToStorageModuleTests.root")
45 print("Test passed. Cleaning up.")
46
47
configure_logging_for_tests(user_replacements=None, replace_cdb_provider=True)
Definition __init__.py:106
require_file(filename, data_type="", py_case=None)
Definition __init__.py:54
safe_process(*args, **kwargs)
Definition __init__.py:245

The documentation for this class was generated from the following file: