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
Beispiel #2
0
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration

from __future__ import print_function

from DerivationFrameworkCore.DerivationFrameworkMaster import *
# 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
                                    )
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration

from DerivationFrameworkCore.DerivationFrameworkMaster import *
# Set up custom MET reconstruction algorithms
from METReconstruction.METRecoFlags import metFlags
from METReconstruction.METRecoConfig import BuildConfig, RefConfig, METConfig, getMETRecoAlg

METConfigs_JetMet = {}

######################################## CONFIG 1 ########################################
# MET_RefFinal with likelihood electrons
# Define the tools to build each term
met_key = 'EleLHMed'  # Container suffix
met_builders = [
    BuildConfig('Ele'),
    BuildConfig('Gamma'),
    BuildConfig('Tau'),
    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_JetMet[met_key] = METConfig(met_key,
                                       met_builders,
                                       met_refiners,
Beispiel #4
0
from __future__ import print_function

from DerivationFrameworkCore.DerivationFrameworkMaster import *
# Set up custom MET reconstruction algorithms
from METReconstruction.METRecoFlags import metFlags
from METReconstruction.METRecoConfig import BuildConfig, RefConfig, METConfig, getMETRecoAlg

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,
Beispiel #5
0
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration

from METReconstruction.METRecoFlags import metFlags
from METReconstruction.METRecoConfig import BuildConfig, RefConfig, METConfig

############################################################################
# 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")

############################################################################
# Calo regions

cfg_calo = METConfig('Calo', [BuildConfig('CaloReg')], doCells=True)
Beispiel #6
0
# 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")

Beispiel #7
0
#filelist = ['../../athxaod/newfiler.root']
#filelist = ['xAOD.sklim.pool.root']
#filelist = ['/afs/cern.ch/user/s/schaffer/public/public1/work-19.x.EventSizes/build/run/devval_0_0809_100evts/myAOD.pool.root']
#filelist = ['/afs/cern.ch/user/c/christos/public/AOD_forRob.pool.root']
ServiceMgr.EventSelector.InputCollections = filelist

verbose = False

######################################################################
# Rerun MET reco to fix track-vertex associations
from METReconstruction.METRecoFlags import metFlags
from METReconstruction.METRecoConfig import BuildConfig, RefConfig, METConfig, getMETRecoAlg

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)
Beispiel #8
0
# 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")
Beispiel #9
0
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration

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'),
    BuildConfig('IntMuons')
],
                      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)
Beispiel #10
0
# 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)
Beispiel #11
0
# 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)