13 name =
"RunUpgradeTests"
14 run = WorkflowRun.Run4
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 tests_to_run.append(SimulationTest(
"s3761", run, WorkflowType.FullSim, [
"EVNTtoHITS"], setup, f
"{options.extra_args} --geometryVersion ATLAS-P2-RUN4-03-00-00") )
30 log.error(
"Overlay not supported yet")
33 if setup.parallel_execution:
34 log.error(
"Parallel execution not supported for pile-up workflow")
36 if not options.workflow
or options.workflow
is WorkflowType.PileUpPresampling:
37 tests_to_run.append(PileUpTest(
"d1920", run, WorkflowType.PileUpPresampling, [
"HITtoRDO"], setup, f
"{options.extra_args} --digiSteeringConf StandardInTimeOnlyTruth --geometryVersion ATLAS-P2-RUN4-03-00-00 --conditionsTag default:OFLCOND-MC21-SDR-RUN4-01"))
38 if not options.workflow
or options.workflow
is WorkflowType.MCPileUpReco:
39 tests_to_run.append(QTest(
"q456", run, WorkflowType.MCPileUpReco, [
"Overlay",
"RAWtoALL"], setup, options.extra_args))
41 tests_to_run.append(QTest(
"q447", run, WorkflowType.MCReco, [
"HITtoRDO",
"RAWtoALL"], setup, f
"{options.extra_args} --geometryVersion ATLAS-P2-RUN4-03-00-00"))
42 elif options.derivation:
43 test_id =
"MC_PHYS" if not options.ami_tag
else options.ami_tag
44 test_id = f
"{test_id}_{run.value}"
45 tests_to_run.append(DerivationTest(test_id, run, WorkflowType.Derivation, [
"Derivation"], setup, options.extra_args))
47 if setup.parallel_execution:
48 log.error(
"Parallel execution not supported for the default Phase-II workflow")
50 tests_to_run.append(SimulationTest(
"s3761", run, WorkflowType.FullSim, [
"EVNTtoHITS"], setup, f
"{options.extra_args} --geometryVersion ATLAS-P2-RUN4-03-00-00"))
51 tests_to_run.append(QTest(
"q447", run, WorkflowType.MCReco, [
"HITtoRDO",
"RAWtoALL"], setup, f
"{options.extra_args} --geometryVersion ATLAS-P2-RUN4-03-00-00 --inputHITSFile ../run_s3761/myHITS.pool.root"))
56 performance_checks = []
62 all_passed =
run_checks(setup, tests_to_run, performance_checks)