4 Instantiate the TRT Standalone Thinning
7 from AthenaCommon.Logging
import logging
8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
14 mlog = logging.getLogger(name)
15 mlog.info(
"Starting TRT standalone Thinning configuration")
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")
32 if __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
38 flags.Input.Files = defaultTestFiles.RDO_RUN2
39 flags.Output.doWriteAOD =
True
43 mlog = logging.getLogger(
"ThinTRTStandaloneConfigTest")
46 acc.getEventAlgo(
"ThinTRTStandaloneAlg"),
51 with open(
"thintrtstandalonecfg.pkl",
"wb")
as f: