Skip to content

Commit

Permalink
Merge pull request #19894 from kfjack/add-getSkimDatatier-method-92x
Browse files Browse the repository at this point in the history
Add getSkimDataTier method to Skims_cff (92X)
  • Loading branch information
cmsbuild authored Aug 4, 2017
2 parents c5c56e0 + 4320750 commit 4b853be
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Configuration/StandardSequences/python/Skims_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit 4b853be

Please sign in to comment.