1 from __future__
import print_function
2 import FWCore.ParameterSet.Config
as cms
5 import Configuration.StandardSequences.Skims_cff
as Skims
8 for skim
in Skims.__dict__:
9 skimstream = getattr(Skims,skim)
10 if (
not isinstance(skimstream,cms.FilteredStream)):
13 shortname = skim.replace(
'SKIMStream',
'')
15 if shortname!=skimstream[
'name']:
16 print(
'#### ERROR ####')
17 print(
'skim name and stream name should be the same for consistency',shortname,
'!=',skimstream[
'name'])
19 for token
in [
'name',
'responsible',
'dataTier']:
20 print(token,
":",skimstream[token])
22 listOfOptions.append(skimstream[
'name'])
24 print(
'possible cmsDriver options for skimming:')
28 import Configuration.StandardSequences.Skims_cff
as Skims
31 for skim
in Skims.__dict__:
32 skimstream = getattr(Skims,skim)
33 if (
not isinstance(skimstream,cms.FilteredStream)):
continue
35 if skimname == skimstream[
'name']:
36 return skimstream[
'dataTier']
37 for skim
in CosmicSkims.__dict__:
38 skimstream = getattr(CosmicSkims,skim)
39 if (
not isinstance(skimstream,cms.FilteredStream)):
continue
41 if skimname == skimstream[
'name']:
42 return skimstream[
'dataTier']