3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaCommon.Logging
import logging
5 __log = logging.getLogger(
'HIRecConfig')
9 '''Configures entire HI reconstruction'''
13 if flags.HeavyIon.doGlobal:
14 from HIGlobal.HIGlobalConfig
import HIGlobalRecCfg
17 if flags.HeavyIon.doJet:
18 from HIJetRec.HIJetRecConfigCA
import HIJetRecCfg
21 from JetRecConfig.JetRecConfig
import JetRecCfg
22 from JetRecConfig.JetRecoSteering
import addJetsToOutputCfg
23 from JetRecConfig.StandardSmallRJets
import AntiKt4Truth, AntiKt2Truth
24 jetdefs = [AntiKt4Truth,AntiKt2Truth]
29 if flags.HeavyIon.Egamma.doSubtractedClusters:
30 from HIJetRec.HIEgammaRecConfigCA
import (
38 if __name__ ==
"__main__":
39 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
40 from AthenaConfiguration.TestDefaults
import defaultTestFiles, defaultGeometryTags
49 flags.Input.Files = [defaultTestFiles.d +
"/RecJobTransformTests/data22_hi/RAWFiles/data22_hi.00440101.physics_MinBias.daq.RAW/data22_hi.00440101.physics_MinBias.daq.RAW._lb0214._SFO-11._0001.data"]
50 flags.IOVDb.GlobalTag =
"CONDBR2-BLKPA-2022-09"
51 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
54 flags.Exec.MaxEvents=5
55 flags.Exec.SkipEvents=0
56 flags.Concurrency.NumThreads=1
57 flags.Output.doWriteAOD =
True
58 flags.Output.AODFileName =
"myAOD.pool.root"
59 flags.Output.doWriteESD =
True
60 flags.Output.ESDFileName =
"myESD.pool.root"
62 flags.Trigger.triggerConfig =
"DB"
64 from HIRecConfig.HIModeFlags
import HImode
74 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
77 from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
79 if flags.Reco.EnableBeamSpotDecoration:
80 from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoBeamSpotDecoratorAlgCfg
82 if flags.HeavyIon.redoTracking:
83 from InDetConfig.TrackRecoConfig
import InDetTrackRecoCfg
85 if flags.HeavyIon.redoEgamma:
86 from egammaConfig.egammaSteeringConfig
import EGammaSteeringCfg
91 from JetRecConfig.JetRecConfig
import JetRecCfg
92 from JetRecConfig.StandardSmallRJets
import AntiKt4EMTopo
93 EMjet = AntiKt4EMTopo.clone()
94 EMjet.ghostdefs = [
"Track"]
100 from AthenaPoolCnvSvc.PoolWriteConfig
import PoolWriteCfg
108 acc.printConfig(withDetails=
True, summariseProps=
True)
114 sys.exit(acc.run().isFailure())