14 run = WorkflowRun.Run2
19 options = parser.parse_args()
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")
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 if not options.workflow
or options.workflow
is WorkflowType.DataOverlay:
36 tests_to_run.append(DataOverlayTest(
"d1912", run, WorkflowType.DataOverlay, [
"Overlay"], setup, options.extra_args))
38 if setup.parallel_execution:
39 log.error(
"Parallel execution not supported for pile-up workflow")
41 if not options.workflow
or options.workflow
is WorkflowType.PileUpPresampling:
42 tests_to_run.append(PileUpTest(
"d1918", run, WorkflowType.PileUpPresampling, [
"HITtoRDO"], setup, options.extra_args))
43 if not options.workflow
or options.workflow
is WorkflowType.MCPileUpReco:
44 tests_to_run.append(QTest(
"q453", run, WorkflowType.MCPileUpReco, [
"Overlay",
"RAWtoALL"], setup, options.extra_args))
45 elif options.derivation:
46 test_id =
"MC_PHYS" if not options.ami_tag
else options.ami_tag
47 test_id = f
"{test_id}_{run.value}"
48 tests_to_run.append(DerivationTest(test_id, run, WorkflowType.Derivation, [
"Derivation"], setup, options.extra_args))
50 if not options.workflow
or options.workflow
is WorkflowType.MCReco:
51 tests_to_run.append(QTest(
"q452", run, WorkflowType.MCReco, [
"HITtoRDO",
"RDOtoRDOTrigger",
"RAWtoALL"], setup, options.extra_args))
52 if not options.workflow
or options.workflow
is WorkflowType.DataReco:
53 tests_to_run.append(QTest(
"q442", run, WorkflowType.DataReco, [
"RAWtoALL",
"DQHistogramMerge"], setup, options.extra_args))
62 all_passed =
run_checks(setup, tests_to_run, performance_checks)