16 inputFilePath =
"/eos/atlas/atlascerngroupdisk/trig-jet/AOD_AthenaMTvalidations/11thRound/ttbar_withPileup/valid1/"
17 filePattern =
'AOD.24230077._000510.pool.root.1'
28 import JetRecConfig.JetAnalysisCommon
30 from JetRecConfig.JetRecConfig
import JetRecCfg
31 from JetRecConfig.StandardSmallRJets
import AntiKt4LCTopo, AntiKt4Truth
36 from AthenaConfiguration.ComponentFactory
import CompFactory
37 aa = CompFactory.TCAlg(
'AA')
41 flags = JetRecConfig.JetAnalysisCommon.setupFlags(inputFiles=[inputFilePath+filePattern])
46 flags.addFlag(
'Reco.EnableTracking',
True)
47 flags.addFlag(
'Reco.EnableCombinedMuon',
True)
54 myAk4LCtopo = AntiKt4LCTopo.clone(suffix=
"ReDone",
55 modifiers = (
'ConstitFourMom',
'CaloEnergies',
'Calib:T0:mc',
'Sort',
'Filter:10000',
'LArHVCorr',
'Width',
'CaloQuality',
'PartonTruthLabel',
'TruthPartonDR',
'JetDeltaRLabel:5000',
'ECPSFrac',
'ClusterMoments')
61 acc.merge(
JetRecCfg( flags, myAk4LCtopo ))
64 acc.algs[-1].OutputLevel = 2
72 sh = ROOT.SH.SampleHandler()
73 sh.setMetaString(
'nc_tree',
'CollectionTree' )
80 job.options().setString( ROOT.EL.Job.optSubmitDirMode,
'unique-link')
81 job.sampleHandler( sh )
82 job.options().setDouble( ROOT.EL.Job.optMaxEvents, 5 )
86 job.addManyAlgs( [aa] )
88 job.addManyAlgs( acc )
92 driver = ROOT.EL.DirectDriver()
93 driver.submit( job,
"out")