1 import FWCore.ParameterSet.Config
as cms
4 import Configuration.StandardSequences.Skims_cff
as Skims
7 for skim
in Skims.__dict__:
8 skimstream = getattr(Skims,skim)
9 if (
not isinstance(skimstream,cms.FilteredStream)):
12 shortname = skim.replace(
'SKIMStream',
'')
14 if shortname!=skimstream[
'name']:
15 print '#### ERROR ####' 16 print 'skim name and stream name should be the same for consistency',shortname,
'!=',skimstream[
'name']
18 for token
in [
'name',
'responsible',
'dataTier']:
19 print token,
":",skimstream[token]
21 listOfOptions.append(skimstream[
'name'])
23 print 'possible cmsDriver options for skimming:' 24 print 'SKIM:'+
'+'.
join(listOfOptions)
27 import Configuration.StandardSequences.Skims_cff
as Skims
29 for skim
in Skims.__dict__:
30 skimstream = getattr(Skims,skim)
31 if (
not isinstance(skimstream,cms.FilteredStream)):
continue 33 if skimname == skimstream[
'name']:
34 return skimstream[
'dataTier']
def getSkimDataTier(skimname)
static std::string join(char **cmd)