1 if not hasattr(prefiltSeq,
'xAODCnv'):
2 from xAODTruthCnv.xAODTruthCnvConf
import xAODMaker__xAODTruthCnvAlg
3 prefiltSeq += xAODMaker__xAODTruthCnvAlg(
'xAODCnv',WriteTruthMetaData=
False)
4 prefiltSeq.xAODCnv.AODContainerName =
'GEN_EVENT'
7 if container_name==
"TruthElectrons":
8 if not hasattr(prefiltSeq,
"xAODTruthParticleSlimmerElectron"):
9 from GeneratorFilters.GeneratorFiltersConf
import xAODTruthParticleSlimmerElectron
11 elif container_name==
"TruthMuons":
12 if not hasattr(prefiltSeq,
"xAODTruthParticleSlimmerMuon"):
13 from GeneratorFilters.GeneratorFiltersConf
import xAODTruthParticleSlimmerMuon
15 elif container_name==
"TruthTaus":
16 if not hasattr(prefiltSeq,
"xAODTruthParticleSlimmerTau"):
17 from GeneratorFilters.GeneratorFiltersConf
import xAODTruthParticleSlimmerTau
19 elif container_name==
"TruthPhotons":
20 if not hasattr(prefiltSeq,
"xAODTruthParticleSlimmerPhoton"):
21 from GeneratorFilters.GeneratorFiltersConf
import xAODTruthParticleSlimmerPhoton
23 elif container_name==
"TruthMET":
24 if not hasattr(prefiltSeq,
"xAODTruthParticleSlimmerMET"):
25 from GeneratorFilters.GeneratorFiltersConf
import xAODTruthParticleSlimmerMET
27 elif container_name==
"TruthLightLeptons":
28 if not hasattr(prefiltSeq,
"xAODTruthParticleSlimmerLightLepton"):
29 from GeneratorFilters.GeneratorFiltersConf
import xAODTruthParticleSlimmerLightLepton
31 elif container_name==
"TruthGen":
32 if not hasattr(prefiltSeq,
"xAODTruthParticleSlimmerGen"):
33 from GeneratorFilters.GeneratorFiltersConf
import xAODTruthParticleSlimmerGen
36 from AthenaCommon.Logging
import logging
37 msg_logger = logging.getLogger(
"CreatexAODSlimContainers ")
38 msg_logger.fatal(
"GeneratorFilters/CreatexAODSlimmedContainers -> container "+container_name+
" not implemented yet!!!")