CMS 3D CMS Logo

Functions

SkimsHeavyIons_cff Namespace Reference

Functions

def documentSkims

Function Documentation

def SkimsHeavyIons_cff::documentSkims ( )

Definition at line 3 of file SkimsHeavyIons_cff.py.

00004                    :
00005     import Configuration.StandardSequences.Skims_cff as Skims
00006 
00007     listOfOptions=[]
00008     for skim in Skims.__dict__:
00009         skimstream = getattr(Skims,skim)
00010         if (not isinstance(skimstream,cms.FilteredStream)):
00011             continue
00012         
00013         shortname = skim.replace('SKIMStream','')
00014         print shortname
00015         if shortname!=skimstream['name']:
00016             print '#### ERROR ####'
00017             print 'skim name and stream name should be the same for consistency',shortname,'!=',skimstream['name']
00018             
00019         for token in ['name','responsible','dataTier']:
00020             print token,":",skimstream[token]
00021             
00022         listOfOptions.append(skimstream['name'])
00023 
00024     print 'possible cmsDriver options for skimming:'
00025     print 'SKIM:'+'+'.join(listOfOptions)
00026