Skip to content
Snippets Groups Projects
Commit da4e38c0 authored by Jovan Mitrevski's avatar Jovan Mitrevski
Browse files

Fix a bug in isInInput "xAODTruthParticleLinkVector" instead of xAodTrig...

Also add OnlyRedoLinks = True in that case.


Former-commit-id: e2532668
parent a2cb73a2
No related branches found
No related tags found
No related merge requests found
......@@ -31,9 +31,9 @@ from McParticleAlgs.JobOptCfg import McAodBuilder,createMcAodBuilder,PileUpClass
# This needs to come before the McAodBuilder below; otherwise,
# xAODTruthCnvAlg will also try to rebuild TruthEvents.
if (objKeyStore.isInInput( "xAOD::TruthEventContainer", "TruthEvents" ) and
not objKeyStore.isInInput( "xAODTrigParticleLinkVector", "xAODTruthLinks" ) ):
not objKeyStore.isInInput( "xAODTruthParticleLinkVector", "xAODTruthLinks" ) ):
from xAODTruthCnv.xAODTruthCnvConf import xAODMaker__xAODTruthCnvAlg
job += xAODMaker__xAODTruthCnvAlg("GEN_AOD2xAOD")
job += xAODMaker__xAODTruthCnvAlg("GEN_AOD2xAOD_links", OnlyRedoLinks = True)
if (objKeyStore.isInInput( "McEventCollection", "TruthEvent" ) and
not objKeyStore.isInInput( "McEventCollection", "GEN_AOD" )):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment