from METReconstruction.METRecoFlags import metFlags from METReconstruction.METRecoConfig import BuildConfig, METConfig from METReconstruction.METAssocConfig import METAssocConfig, AssocConfig ## Simple truth terms cfg_truth = METConfig( 'Truth', [BuildConfig('NonInt'), BuildConfig('Int'), BuildConfig('IntOut')], doRegions=True) 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
# Ignore tau and photon ID/calibration, medium electrons # Define the tools to build each term met_key = 'EleMedNoGammaNoTau' # Container suffix met_builders = [BuildConfig('Ele'), BuildConfig('Jet'), BuildConfig('Muon'), BuildConfig('SoftClus'), BuildConfig('SoftTrk')] met_refiners = [RefConfig('JetFilter','RefJet_JVFCut'), RefConfig('TrackFilter','PVSoftTrk')] # Define the details of the full configuration METConfigs_Top[met_key] = METConfig(met_key, met_builders, met_refiners, doSum=True, doTracks=True, duplicateWarning=False ) # Access the tool configurations here # Switch electron selection to Tight METConfigs_Top[met_key].builders['Ele'].PIDSel = 'Medium' ######################################## CONFIG 2 ######################################## # Ignore tau and photon ID/calibration, tight electrons # Define the tools to build each term met_key = 'EleTightNoGammaNoTau' # Container suffix met_builders = [BuildConfig('Ele'), BuildConfig('Jet'), BuildConfig('Muon'),
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration from METReconstruction.METRecoFlags import metFlags from METReconstruction.METRecoConfig import BuildConfig, RefConfig, METConfig,clusterSigStates #from METReconstruction.METRecoConfig_Associator import BuildConfig, RefConfig, METConfig,clusterSigStates ############################################################################ # EMTopo cfg_emt = METConfig('EMTopo',[BuildConfig('SoftClus','EMTopo')], doRegions=True, doOriginCorrClus=False ) metFlags.METConfigs()[cfg_emt.suffix] = cfg_emt metFlags.METOutputList().append(cfg_emt.suffix) metFlags.METOutputList().append(cfg_emt.suffix+"Regions") ############################################################################ # LocHadTopo cfg_lht = METConfig('LocHadTopo',[BuildConfig('SoftClus','LocHadTopo')], doRegions=True, doOriginCorrClus=False ) metFlags.METConfigs()[cfg_lht.suffix] = cfg_lht metFlags.METOutputList().append(cfg_lht.suffix) metFlags.METOutputList().append(cfg_lht.suffix+"Regions")
BuildConfig('Ele'), BuildConfig('Gamma'), BuildConfig('Jet'), BuildConfig('Muon'), BuildConfig('SoftClus'), BuildConfig('SoftTrk') ] met_refiners = [ RefConfig('JetFilter', 'RefJet_JVFCut'), RefConfig('TrackFilter', 'PVSoftTrk') ] # Define the details of the full configuration METConfigs_SUSY[met_key] = METConfig(met_key, met_builders, met_refiners, doSum=True, doTracks=True, duplicateWarning=False) ######################################## CONFIG 2 ######################################## # Ignore tau ID/calibration, use likelihood electrons # Define the tools to build each term met_key = 'EleLHMedNoTau' # Container suffix met_builders = [ BuildConfig('Ele'), BuildConfig('Gamma'), BuildConfig('Jet'), BuildConfig('Muon'), BuildConfig('SoftClus'), BuildConfig('SoftTrk') ]
rf_builders = [ BuildConfig('Ele'), BuildConfig('Gamma'), BuildConfig('Tau'), BuildConfig('Jet'), BuildConfig('SoftClus'), BuildConfig('SoftTrk') ] rf_refiners = [ RefConfig('TrackFilter', 'PVSoftTrk'), RefConfig('JetFilter', 'RefJet_JVFCut') ] cfg_mrf = METConfig('RefFinalFix', rf_builders, rf_refiners, doSum=True, doTracks=True) cfg_mrf.builders['Tau'].MinWet = 1. metconfigs = {'RefFinalFix': cfg_mrf} metAlg = getMETRecoAlg('METReconstruction', metconfigs) # The tools are accessible via the configurations in metFlags from AthenaCommon.AppMgr import ToolSvc metMaker = CfgMgr.met__METMaker( 'METMaker', JetPtCut=0e3, DoJetJvfCut=False, ) ToolSvc += metMaker
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration from METReconstruction.METRecoFlags import metFlags from METReconstruction.METRecoConfig import BuildConfig, RefConfig, METConfig ############################################################################ # Simple PFlow cfg_pflow = METConfig('PFlow', [BuildConfig('SoftPFlow', 'PFlow')]) metFlags.METConfigs()[cfg_pflow.suffix] = cfg_pflow metFlags.METOutputList().append(cfg_pflow.suffix) metFlags.METOutputList().append(cfg_pflow.suffix + "Regions")
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration from METReconstruction.METRecoFlags import metFlags from METReconstruction.METRecoConfig import BuildConfig, RefConfig, METConfig, clusterSigStates cfg_trk = METConfig('Track', [BuildConfig('SoftTrk', 'Track')], [RefConfig('TrackFilter', 'PVTrack')], doTracks=metFlags.UseTracks) cfg_trk.refiners['TrackFilter'].DoLepRecovery = True cfg_trk.refiners['TrackFilter'].DoVxSep = metFlags.UseTracks() cfg_trk.refiners['TrackFilter'].DoEoverPSel = True metFlags.METConfigs()[cfg_trk.suffix] = cfg_trk metFlags.METOutputList().append(cfg_trk.suffix)
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration from METReconstruction.METRecoFlags import metFlags from METReconstruction.METRecoConfig import BuildConfig, METConfig cfg_calo = METConfig('Calo', [BuildConfig('CaloReg')], doCells=True) metFlags.METConfigs()[cfg_calo.suffix] = cfg_calo metFlags.METOutputList().append(cfg_calo.suffix)
############################################################################ # MET_RefFinal rf_builders = [ BuildConfig('Ele'), BuildConfig('Gamma'), BuildConfig('Tau'), BuildConfig('Jet'), BuildConfig('SoftClus'), BuildConfig('SoftTrk') ] rf_refiners = [RefConfig('TrackFilter', 'PVSoftTrk')] cfg_mrf = METConfig('RefFinal', rf_builders, rf_refiners, doSum=True, doTracks=(doInDet and jetsUseTracks), doRegions=True) # Configure the tools explicitly with defaults # These are mostly already set in the constructor declareProperty calls cfg_mrf.builders['Ele'].MinPt = 10e3 cfg_mrf.builders['Ele'].MaxEta = 2.47 cfg_mrf.builders['Ele'].PIDSel = 'Medium' cfg_mrf.builders['Ele'].AuthorSel = 17 # AuthorElectron | AuthorAmbiguous # cfg_mrf.builders['Gamma'].MinPt = 10e3 cfg_mrf.builders['Gamma'].MaxEta = 2.47 cfg_mrf.builders['Gamma'].PIDSel = 'Tight' cfg_mrf.builders['Gamma'].AuthorSel = 20 # AuthorPhoton | AuthorAmbiguous #