CMS 3D CMS Logo

Functions
Skims_cff Namespace Reference

Functions

def documentSkims ()
 
def getSkimDataTier (skimname)
 

Function Documentation

def Skims_cff.documentSkims ( )

Definition at line 3 of file Skims_cff.py.

References join().

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 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def documentSkims()
Definition: Skims_cff.py:3
def Skims_cff.getSkimDataTier (   skimname)

Definition at line 26 of file Skims_cff.py.

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 
def getSkimDataTier(skimname)
Definition: Skims_cff.py:26