4 Instantiate the TRT Standalone Thinning
7from AthenaCommon.Logging
import logging
8from AthenaConfiguration.ComponentFactory
import CompFactory
9from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
14 mlog = logging.getLogger(name)
15 mlog.info(
"Starting TRT standalone Thinning configuration")
16 acc = ComponentAccumulator()
17 kwargs.setdefault(
"StreamName",
"StreamAOD")
19 "doElectron", flags.Reco.EnableEgamma
and flags.Egamma.doTracking
22 "doPhoton", flags.Reco.EnableEgamma
and flags.Egamma.doTracking
24 kwargs.setdefault(
"doTau", flags.Reco.EnableTau)
25 kwargs.setdefault(
"doTauEleRM", flags.Reco.EnableTau
and flags.Tau.doTauEleRMRec)
26 kwargs.setdefault(
"doMuon", flags.Reco.EnableCombinedMuon)
27 acc.addEventAlgo(CompFactory.ThinTRTStandaloneTrackAlg(name, **kwargs))
28 mlog.info(
"TRT Alone Thinning configured")
32if __name__ ==
"__main__":
33 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
34 from AthenaConfiguration.TestDefaults
import defaultTestFiles
35 from AthenaConfiguration.ComponentAccumulator
import printProperties
36 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
37 flags = initConfigFlags()
38 flags.Input.Files = defaultTestFiles.RDO_RUN2
39 flags.Output.doWriteAOD =
True
41 acc = MainServicesCfg(flags)
43 mlog = logging.getLogger(
"ThinTRTStandaloneConfigTest")
46 acc.getEventAlgo(
"ThinTRTStandaloneAlg"),
51 with open(
"thintrtstandalonecfg.pkl",
"wb")
as f:
ThinTRTStandaloneCfg(flags, name="ThinTRTStandaloneAlg", **kwargs)