44def JetInputCfg(flags):
45
46
47
48 sequencename = "JetInputSeq"
49 inputcfg = ComponentAccumulator()
50 inputcfg.addSequence( CompFactory.AthSequencer(sequencename, ModeOR=True) )
51
52
53 from xAODBase.xAODType import xAODType
54
55
56
57 jetmodseq = CompFactory.JetConstituentModSequence("JetMod_LCOrigin")
58 jetmodseq.InputType=xAODType.CaloCluster
59 jetmodseq.InputContainer = "CaloCalTopoClusters"
60 jetmodseq.OutputContainer = "LCOriginTopoClusters"
61
62
63
64 modlist = [
65 CompFactory.CaloClusterConstituentsOrigin("ClusterOrigin",InputType=xAODType.CaloCluster)
66 ]
67 jetmodseq.Modifiers = modlist
68
69
70 jetmodalg = CompFactory.JetAlgorithm(
71 "JetModAlg_LCOrigin",
72 Tools = [jetmodseq])
73
74
75 inputcfg.addEventAlgo(jetmodalg,sequencename)
76
77
78
79 constitpjgalg = CompFactory.PseudoJetAlgorithm(
80 "pjgalg_LCTopo",
81 InputContainer = "LCOriginTopoClusters",
82 OutputContainer = "PseudoJetLCTopo",
83 Label = "LCTopo",
84 SkipNegativeEnergy=True)
85
86 ghostpjgalg = CompFactory.PseudoJetAlgorithm(
87 "pjgalg_GhostTruth",
88 InputContainer = "TruthParticles",
89 OutputContainer = "PseudoJetGhostTruth",
90 Label = "GhostTruth",
91 SkipNegativeEnergy=True)
92
93 pjcs = [constitpjgalg.OutputContainer,ghostpjgalg.OutputContainer]
94
95
96 inputcfg.addEventAlgo(constitpjgalg,sequencename)
97 inputcfg.addEventAlgo(ghostpjgalg,sequencename)
98
99 return inputcfg, pjcs
100
101