CMS 3D CMS Logo

Skims_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4  import Configuration.StandardSequences.Skims_cff as Skims
5 
6  listOfOptions=[]
7  for skim in Skims.__dict__:
8  skimstream = getattr(Skims,skim)
9  if (not isinstance(skimstream,cms.FilteredStream)):
10  continue
11 
12  shortname = skim.replace('SKIMStream','')
13  print shortname
14  if shortname!=skimstream['name']:
15  print '#### ERROR ####'
16  print 'skim name and stream name should be the same for consistency',shortname,'!=',skimstream['name']
17 
18  for token in ['name','responsible','dataTier']:
19  print token,":",skimstream[token]
20 
21  listOfOptions.append(skimstream['name'])
22 
23  print 'possible cmsDriver options for skimming:'
24  print 'SKIM:'+'+'.join(listOfOptions)
25 
26 def getSkimDataTier(skimname):
27  import Configuration.StandardSequences.Skims_cff as Skims
28  import DPGAnalysis.Skims.SkimsCosmics_DPG_cff as CosmicSkims
29 
30  for skim in Skims.__dict__:
31  skimstream = getattr(Skims,skim)
32  if (not isinstance(skimstream,cms.FilteredStream)): continue
33 
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
39 
40  if skimname == skimstream['name']:
41  return skimstream['dataTier']
42  return None
43 
44 ### DPG skims ###
46 
47 
48 ### Central Skims ###
def getSkimDataTier(skimname)
Definition: Skims_cff.py:26
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
DPG skims ###.
def documentSkims()
Definition: Skims_cff.py:3
Central Skims ###.