From 43207502399dc7ac0521f929354a06e2c4404ea3 Mon Sep 17 00:00:00 2001 From: Kai-Feng Date: Tue, 25 Jul 2017 09:19:02 +0200 Subject: [PATCH] Add getSkimDataTier method to Skims_cff (92X) --- Configuration/StandardSequences/python/Skims_cff.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Configuration/StandardSequences/python/Skims_cff.py b/Configuration/StandardSequences/python/Skims_cff.py index 8d3197b642250..3ea9a8f15047a 100644 --- a/Configuration/StandardSequences/python/Skims_cff.py +++ b/Configuration/StandardSequences/python/Skims_cff.py @@ -23,6 +23,16 @@ def documentSkims(): print 'possible cmsDriver options for skimming:' print 'SKIM:'+'+'.join(listOfOptions) +def getSkimDataTier(skimname): + import Configuration.StandardSequences.Skims_cff as Skims + + for skim in Skims.__dict__: + skimstream = getattr(Skims,skim) + if (not isinstance(skimstream,cms.FilteredStream)): continue + + if skimname == skimstream['name']: + return skimstream['dataTier'] + return None ### DPG skims ### from DPGAnalysis.Skims.Skims_DPG_cff import *