# Set up custom MET reconstruction algorithms from METReconstruction.METRecoFlags import metFlags from METReconstruction.METRecoConfig import BuildConfig, RefConfig, METConfig, getMETRecoAlg METConfigs_Top = {} ######################################## CONFIG 1 ######################################## # 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'
# 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)
METConfigs_SUSY = {} ######################################## CONFIG 1 ######################################## # Ignore tau ID/calibration # Define the tools to build each term met_key = 'NoTau' # Container suffix met_builders = [ 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
doInDet = rec.doInDet() from JetRec.JetRecFlags import jetFlags jetsUseTracks = jetFlags.useTracks() ############################################################################ # 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