ATLAS Offline Software
CreatexAODSlimContainers.py
Go to the documentation of this file.
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'
5 
6 def createxAODSlimmedContainer(container_name,prefiltSeq):
7  if container_name=="TruthElectrons":
8  if not hasattr(prefiltSeq, "xAODTruthParticleSlimmerElectron"):
9  from GeneratorFilters.GeneratorFiltersConf import xAODTruthParticleSlimmerElectron
10  prefiltSeq += xAODTruthParticleSlimmerElectron('xAODTruthParticleSlimmerElectron')
11  elif container_name=="TruthMuons":
12  if not hasattr(prefiltSeq, "xAODTruthParticleSlimmerMuon"):
13  from GeneratorFilters.GeneratorFiltersConf import xAODTruthParticleSlimmerMuon
14  prefiltSeq += xAODTruthParticleSlimmerMuon('xAODTruthParticleSlimmerMuon')
15  elif container_name=="TruthTaus":
16  if not hasattr(prefiltSeq, "xAODTruthParticleSlimmerTau"):
17  from GeneratorFilters.GeneratorFiltersConf import xAODTruthParticleSlimmerTau
18  prefiltSeq += xAODTruthParticleSlimmerTau('xAODTruthParticleSlimmerTau')
19  elif container_name=="TruthPhotons":
20  if not hasattr(prefiltSeq, "xAODTruthParticleSlimmerPhoton"):
21  from GeneratorFilters.GeneratorFiltersConf import xAODTruthParticleSlimmerPhoton
22  prefiltSeq += xAODTruthParticleSlimmerPhoton('xAODTruthParticleSlimmerPhoton')
23  elif container_name=="TruthMET":
24  if not hasattr(prefiltSeq, "xAODTruthParticleSlimmerMET"):
25  from GeneratorFilters.GeneratorFiltersConf import xAODTruthParticleSlimmerMET
26  prefiltSeq += xAODTruthParticleSlimmerMET('xAODTruthParticleSlimmerMET')
27  elif container_name=="TruthLightLeptons":
28  if not hasattr(prefiltSeq, "xAODTruthParticleSlimmerLightLepton"):
29  from GeneratorFilters.GeneratorFiltersConf import xAODTruthParticleSlimmerLightLepton
30  prefiltSeq += xAODTruthParticleSlimmerLightLepton('xAODTruthParticleSlimmerLightLepton')
31  elif container_name=="TruthGen":
32  if not hasattr(prefiltSeq, "xAODTruthParticleSlimmerGen"):
33  from GeneratorFilters.GeneratorFiltersConf import xAODTruthParticleSlimmerGen
34  prefiltSeq += xAODTruthParticleSlimmerGen('xAODTruthParticleSlimmerGen')
35  else:
36  from AthenaCommon.Logging import logging
37  msg_logger = logging.getLogger("CreatexAODSlimContainers ")
38  msg_logger.fatal("GeneratorFilters/CreatexAODSlimmedContainers -> container "+container_name+ " not implemented yet!!!")
39  theApp.exit(-1)
40 
41 
xAODTruthParticleSlimmerMET
Algorithm to skim the xAOD truth particle container for xAOD MET filter.
Definition: xAODTruthParticleSlimmerMET.h:23
CreatexAODSlimContainers.createxAODSlimmedContainer
def createxAODSlimmedContainer(container_name, prefiltSeq)
Definition: CreatexAODSlimContainers.py:6
xAODTruthParticleSlimmerGen
Algorithm to skim the xAOD truth particle container for generators filters in fact we want to remove ...
Definition: xAODTruthParticleSlimmerGen.h:21
xAODTruthParticleSlimmerMuon
Algorithm to skim the xAOD truth particle container for xAOD muons filter.
Definition: xAODTruthParticleSlimmerMuon.h:22
xAODTruthParticleSlimmerPhoton
Algorithm to skim the xAOD truth particle container for xAOD photons filter.
Definition: xAODTruthParticleSlimmerPhoton.h:22
xAODTruthParticleSlimmerElectron
Algorithm to skim the xAOD truth particle container for xAOD electron filter.
Definition: xAODTruthParticleSlimmerElectron.h:22
xAODTruthParticleSlimmerLightLepton
Algorithm to skim the xAOD truth particle container for xAOD electron&muon filter.
Definition: xAODTruthParticleSlimmerLightLepton.h:23
xAODTruthParticleSlimmerTau
Algorithm to skim the xAOD truth particle container for tau filter.
Definition: xAODTruthParticleSlimmerTau.h:28