3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
9 cppyy.load_library(
'libxAODBaseObjectTypeDict')
12 from ROOT
import xAODType
20 cppyy.load_library(
'libxAODBaseObjectTypeDict')
23 from ROOT
import xAODType
27 StoreGateSvc=CompFactory.StoreGateSvc
29 from JetRec.JetRecStandardToolManager
import jtm
30 from JetRecTools.ConstitToolManager
import ctm
31 from JetRecTools.JetRecToolsConf
import CorrectPFOTool
33 WeightPFOTool = jtm.pflowweighter,
36 UseChargedWeights =
True,
37 InputType = xAODType.FlowElement
39 alias =
'correctPFO' )
41 jtm += ctm.buildConstitModifSequence(
"JetConstitSeq_PFlowCHS",
42 InputContainer =
"JetETMiss",
43 OutputContainer =
"CHS",
44 modList = [
'correctPFO',
'chsPFO'] )
46 CHS_CSSK_CA.merge(jtm)
55 StoreGateSvc=CompFactory.StoreGateSvc
58 from TrackCaloClusterRecTools.TrackCaloClusterConfig
import runUFOReconstruction_redux
59 from JetRecConfig.StandardJetConstits
import stdConstitDic
as cst
60 constituents=cst.EMPFlow
61 UFO_reco=runUFOReconstruction_redux(flags,constits=constituents,charged=
True)
62 UFO_CA.merge(UFO_reco)
68 if __name__==
"__main__":
69 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
72 flags.Input.Format=
"AOD"
75 flags.Input.Files=[
"/scratch/anthony/GPF_CODE//TCC_STUDIES/CustomAlg/myAOD.root"]
76 flags.Output.AODFileName=
"/scratch/anthony/GPF_CODE/TCC_STUDIES/CustomAlg/output_AOD.root"
77 flags.Exec.MaxEvents=20
78 flags.Output.doWriteAOD=
True
79 flags.Common.ProductionStep=
""
84 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
87 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
88 inputList=[
"xAOD::TrackParticleContainer#InDetTrackParticles",
"xAOD::TrackParticleAuxContainer#InDetTrackParticlesAux."]
89 inputList.append(
"xAOD::FlowElementContainer#JetETMissChargedParticleFlowObjects")
90 inputList.append(
"xAOD::FlowElementContainer#JetETMissNeutralParticleFlowObjects")
91 inputList.append(
"xAOD::FlowElementAuxContainer#JetETMissNeutralParticleFlowObjectsAux.")
92 inputList.append(
"xAOD::FlowElementAuxContainer#JetETMissChargedParticleFlowObjectsAux.")
93 inputList.append(
"xAOD::FlowElementContainer#TrackCaloClustersCharged")
94 inputList.append(
"xAOD::FlowElementAuxContainer#TrackCaloClustersChargedAux.")
95 inputList.append(
"xAOD::FlowElementContainer#TrackCaloClustersNeutral")
96 inputList.append(
"xAOD::FlowElementAuxContainer#TrackCaloClustersNeutralAux.")
98 inputList.append(
"xAOD::MuonContainer#Muons")
99 inputList.append(
"xAOD::MuonAuxContainer#*")
100 inputList.append(
"xAOD::PhotonContainer#Photons")
101 inputList.append(
"xAOD::PhotonAuxContainer#*")
102 inputList.append(
"xAOD::ElectronContainer#Electrons")
103 inputList.append(
"xAOD::ElectronAuxContainer#*")
104 inputList.append(
"xAOD::TauJetContainer#*")
105 inputList.append(
"xAOD::TauJetAuxContainer#*")
110 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
116 print(
"MASTER CA CONFIG")