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
30 for skim
in Skims.__dict__:
31 skimstream = getattr(Skims,skim)
32 if (
not isinstance(skimstream,cms.FilteredStream)):
continue 34 if skimname == skimstream[
'name']:
35 return skimstream[
'dataTier']
36 for skim
in CosmicSkims.__dict__:
37 skimstream = getattr(CosmicSkims,skim)
38 if (
not isinstance(skimstream,cms.FilteredStream)):
continue 40 if skimname == skimstream[
'name']:
41 return skimstream[
'dataTier']
def getSkimDataTier(skimname)
static std::string join(char **cmd)