1 from xAODTruthCnv.xAODTruthCnvConf
import xAODMaker__xAODTruthCnvAlg
2 if not hasattr(prefiltSeq,
'xAODCnv'):
3 prefiltSeq += xAODMaker__xAODTruthCnvAlg(
'xAODCnv',WriteTruthMetaData=
False)
4 prefiltSeq.xAODCnv.AODContainerName =
'GEN_EVENT'
15 minDict = {0:-1,1:20,2:60,3:160,4:400,5:800,6:1300,7:1800,8:2500,9:3200,10:3900,11:4600,12:5300}
16 maxDict = {0:20,1:60,2:160,3:400,4:800,5:1300,6:1800,7:2500,8:3200,9:3900,10:4600,11:5300,12:7000}
22 from JetRecConfig.StandardSmallRJets
import AntiKt4TruthGEN,AntiKt4TruthGENWZ,AntiKt6TruthGEN,AntiKt6TruthGENWZ
24 (0.4,
"") : AntiKt4TruthGEN,
25 (0.4,
"WZ") : AntiKt4TruthGENWZ,
26 (0.6,
"") : AntiKt6TruthGEN,
27 (0.6,
"WZ") : AntiKt6TruthGENWZ,
30 from JetRecConfig.StandardLargeRJets
import AntiKt10TruthGEN,AntiKt10TruthGENWZ
32 (1.0,
"") : AntiKt10TruthGEN,
33 (1.0,
"WZ") : AntiKt10TruthGENWZ,
38 from JetRecConfig.JetRecConfig
import getJetAlgs, reOrderAlgs
40 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
41 from AthenaConfiguration.Enums
import BeamType
43 flags.Input.isMC =
True
44 flags.Beam.Type = BeamType.Collisions
47 from AthenaConfiguration.ComponentAccumulator
import conf2toConfigurable
49 with ConfigurableCABehavior():
51 algs, jetdef_i =
getJetAlgs(flags, jetdef,
True)
52 algs, ca =
reOrderAlgs( [a
for a
in algs
if a
is not None])
60 include(
"GeneratorFilters/QCDJetFilter.py")
63 jetcollname =
'AntiKt{0}Truth{1}Jets'.
format(
int(jetR*10),mods)
64 filtSeq.QCDTruthJetFilter.TruthJetContainer = jetcollname
68 filtSeq.QCDTruthJetFilter.MinPt = minDict[x]*GeV
69 filtSeq.QCDTruthJetFilter.MaxPt = maxDict[x]*GeV