metFlags.METConfigs()[cfg_truth.suffix] = cfg_truth metFlags.METOutputList().append(cfg_truth.suffix) metFlags.METOutputList().append(cfg_truth.suffix + "Regions") ## Truth association maps ############################################################################ # AntiKt4LCTopo cfg_truthassoc_akt4lc = METAssocConfig( 'Truth_AntiKt4LCTopo', [AssocConfig('Truth', 'AntiKt4LCTopoJets')], doTruth=True) metFlags.METAssocConfigs()[ cfg_truthassoc_akt4lc.suffix] = cfg_truthassoc_akt4lc metFlags.METAssocOutputList().append(cfg_truthassoc_akt4lc.suffix) ############################################################################ # AntiKt4EMTopo cfg_truthassoc_akt4em = METAssocConfig( 'Truth_AntiKt4EMTopo', [AssocConfig('Truth', 'AntiKt4EMTopoJets')], doTruth=True) metFlags.METAssocConfigs()[ cfg_truthassoc_akt4em.suffix] = cfg_truthassoc_akt4em #metFlags.METAssocOutputList().append(cfg_truthassoc_akt4em.suffix) ############################################################################ # AntiKt4EMPFlow from RecExConfig.RecFlags import rec
'Truth', 'EMTopo', 'LocHadTopo', 'Calo', 'Track', 'TruthRegions', 'EMTopoRegions', 'LocHadTopoRegions' ] else: outputlist = metFlags.METOutputList() for config in outputlist: MissingETAODList.append('xAOD::MissingETContainer#MET_' + config) MissingETAODList.append('xAOD::MissingETAuxContainer#MET_' + config + 'Aux.') if config == 'Truth': MissingETAODList.append('xAOD::MissingETComponentMap#METMap_' + config) MissingETAODList.append('xAOD::MissingETAuxComponentMap#METMap_' + config + 'Aux.') if len(metFlags.METAssocOutputList()) == 0: assocoutput = ['AntiKt4LCTopo', 'AntiKt4EMTopo', 'AntiKt4EMPFlow'] # assocoutput += ['Truth_AntiKt4LCTopo','Truth_AntiKt4EMTopo','Truth_AntiKt4EMPFlow'] else: assocoutput = metFlags.METAssocOutputList() for config in assocoutput: MissingETAODList.append('xAOD::MissingETAssociationMap#METAssoc_' + config) MissingETAODList.append('xAOD::MissingETAuxAssociationMap#METAssoc_' + config + 'Aux.') MissingETAODList.append('xAOD::MissingETContainer#MET_Core_' + config) MissingETAODList.append('xAOD::MissingETAuxContainer#MET_Core_' + config + 'Aux.') MissingETAODList.append('xAOD::MissingETContainer#MET_Reference_' + config) MissingETAODList.append('xAOD::MissingETAuxContainer#MET_Reference_' + config + 'Aux.-ConstitObjectLinks.-ConstitObjectWeights')
associators = [ AssocConfig(JetType), AssocConfig('Muon'), AssocConfig('Ele'), AssocConfig('Gamma'), AssocConfig('Tau'), AssocConfig('Soft') ] cfg_akt4em = METAssocConfig('NewAntiKt4EMTopo', associators, doPFlow=False, doOriginCorrClus=True) metFlags.METAssocConfigs()[cfg_akt4em.suffix] = cfg_akt4em metFlags.METAssocOutputList().append(cfg_akt4em.suffix) ############################################################################ # Set up an extra associator for testing JetType = 'PFlowJet' associators = [ AssocConfig(JetType), AssocConfig('Muon'), AssocConfig('Ele'), AssocConfig('Gamma'), AssocConfig('Tau'), AssocConfig('Soft') ] cfg_akt4pf = METAssocConfig( 'NewAntiKt4EMPFlow',