4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
8 if __name__ ==
"__main__":
10 parser = argparse.ArgumentParser(description=
"Run reconstruction script with specified configuration.")
11 parser.add_argument(
"--mode", choices=[
"legacy",
"xAOD"], required=
True, help=
"Specify the reconstruction mode.")
12 args = parser.parse_args()
14 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
17 flags.Input.Files = [
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/PhaseIIUpgrade/RDO/ATLAS-P2-RUN4-03-00-00/mc21_14TeV.601229.PhPy8EG_A14_ttbar_hdamp258p75_SingleLep.recon.RDO.e8481_s4149_r14700/RDO.33629020._000047.pool.root.1"]
18 flags.Exec.MaxEvents = -1
20 output_suffix =
"_legacy" if args.mode ==
"legacy" else "_xAOD"
21 flags.Output.HISTFileName = f
"ActsMonitoringOutput{output_suffix}.root"
22 flags.DQ.useTrigger =
False
24 flags.Acts.doMonitoring =
True
25 flags.HGTD.doMonitoring =
True
30 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
33 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
36 if args.mode ==
"legacy":
37 from HGTD_Config.HGTD_PrepRawDataFormationConfig
import PadClusterizationCfg
41 from InDetConfig.InDetPrepRawDataFormationConfig
import HGTDInDetToXAODClusterConversionCfg
44 elif args.mode ==
"xAOD":
45 from ActsConfig.ActsClusterizationConfig
import ActsHgtdClusterizationAlgCfg
49 raise ValueError(
"Invalid mode selected. Please select either 'legacy' or 'xAOD'.")
51 from ActsConfig.ActsAnalysisConfig
import ActsHgtdClusterAnalysisAlgCfg
54 acc.printConfig(withDetails =
True, summariseProps =
True)