ATLAS Offline Software
Loading...
Searching...
No Matches
RunWorkflowTests_Run2 Namespace Reference

Functions

 main ()

Function Documentation

◆ main()

RunWorkflowTests_Run2.main ( )

Definition at line 12 of file RunWorkflowTests_Run2.py.

12def main():
13 name = "Run2Tests"
14 run = WorkflowRun.Run2
15
16 # Setup the environment
17 log = setup_logger(name)
18 parser = setup_parser()
19 options = parser.parse_args()
20 setup = get_test_setup(name, options, log)
21
22 # Define which tests to run
23 tests_to_run = []
24 if options.generation:
25 dsid = "421356" if not options.dsid else options.dsid
26 tests_to_run.append(GenerationTest(f"gen{dsid}", run, WorkflowType.Generation, ["generate"], setup, options.extra_args))
27 elif options.simulation:
28 if not options.workflow or options.workflow is WorkflowType.FullSim:
29 tests_to_run.append(SimulationTest("s4005", run, WorkflowType.FullSim, ["EVNTtoHITS"], setup, options.extra_args))
30 if not options.workflow or options.workflow is WorkflowType.AF3:
31 log.error("AF3 not supported yet")
32 elif options.overlay:
33 if not options.workflow or options.workflow is WorkflowType.MCOverlay:
34 tests_to_run.append(OverlayTest("d1726", run, WorkflowType.MCOverlay, ["Overlay"], setup, options.extra_args))
35 elif options.pileup:
36 if setup.parallel_execution:
37 log.error("Parallel execution not supported for pile-up workflow")
38 exit(1)
39 if not options.workflow or options.workflow is WorkflowType.PileUpPresampling:
40 tests_to_run.append(PileUpTest("d1918", run, WorkflowType.PileUpPresampling, ["HITtoRDO"], setup, options.extra_args))
41 if not options.workflow or options.workflow is WorkflowType.MCPileUpReco:
42 tests_to_run.append(QTest("q453", run, WorkflowType.MCPileUpReco, ["Overlay", "RAWtoALL"], setup, options.extra_args))
43 elif options.derivation:
44 test_id = "MC_PHYS" if not options.ami_tag else options.ami_tag
45 test_id = f"{test_id}_{run.value}"
46 tests_to_run.append(DerivationTest(test_id, run, WorkflowType.Derivation, ["Derivation"], setup, options.extra_args))
47 else:
48 if not options.workflow or options.workflow is WorkflowType.MCReco:
49 tests_to_run.append(QTest("q452", run, WorkflowType.MCReco, ["HITtoRDO", "RDOtoRDOTrigger", "RAWtoALL"], setup, options.extra_args))
50 if not options.workflow or options.workflow is WorkflowType.DataReco:
51 tests_to_run.append(QTest("q442", run, WorkflowType.DataReco, ["RAWtoALL", "DQHistogramMerge"], setup, options.extra_args))
52
53 # Define which perfomance checks to run
54 performance_checks = get_standard_performance_checks(setup)
55
56 # Define and run jobs
57 run_tests(setup, tests_to_run)
58
59 # Run post-processing checks
60 all_passed = run_checks(setup, tests_to_run, performance_checks)
61
62 # final report
63 run_summary(setup, tests_to_run, all_passed)
64
65
int main()
Definition hello.cxx:18