13import b2test_utils_analysis
14import modularAnalysis
as ma
15from basf2
import create_path, set_random_seed
19 """The unit test for SVDVariablesToStorageModule"""
22 """ Test of SVDVariablesToStorageModule """
24 set_random_seed(
"something important")
31 ma.inputMdst(input_file, path=main)
33 ma.fillParticleList(
"pi+:all",
"", path=main)
35 variablesToNtuple = [
"SVDClusterCharge",
"SVDClusterSNR",
"SVDClusterSize",
"SVDClusterTime",
36 "SVDTrackPrime",
"SVDResidual",
"SVDLayer",
"SVDLadder",
"SVDSensor",
"SVDSide"]
38 main.add_module(
"SVDVariablesToStorage",
39 outputFileName=
"SVDVariablesToStorageModuleTests.root",
40 containerName=
"SVDClusterVariables",
41 particleListName=
"pi+:all",
42 variablesToNtuple=variablesToNtuple)
45 print(
"Test passed. Cleaning up.")
48if __name__ ==
'__main__':
clean_working_directory()
configure_logging_for_tests(user_replacements=None, replace_cdb_provider=True)
require_file(filename, data_type="", py_case=None)
safe_process(*args, **kwargs)