Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:49

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 def documentSkims():
0005     import Configuration.StandardSequences.Skims_cff as Skims
0006 
0007     listOfOptions=[]
0008     for skim in Skims.__dict__:
0009         skimstream = getattr(Skims,skim)
0010         if (not isinstance(skimstream,cms.FilteredStream)):
0011             continue
0012         
0013         shortname = skim.replace('SKIMStream','')
0014         print(shortname)
0015         if shortname!=skimstream['name']:
0016             print('#### ERROR ####')
0017             print('skim name and stream name should be the same for consistency',shortname,'!=',skimstream['name'])
0018             
0019         for token in ['name','responsible','dataTier']:
0020             print(token,":",skimstream[token])
0021             
0022         listOfOptions.append(skimstream['name'])
0023 
0024     print('possible cmsDriver options for skimming:')
0025     print('SKIM:'+'+'.join(listOfOptions))
0026 
0027 def getSkimDataTier(skimname):
0028     import Configuration.StandardSequences.Skims_cff as Skims
0029     import DPGAnalysis.Skims.SkimsCosmics_DPG_cff as CosmicSkims
0030 
0031     for skim in Skims.__dict__:
0032         skimstream = getattr(Skims,skim)
0033         if (not isinstance(skimstream,cms.FilteredStream)): continue
0034 
0035         if skimname == skimstream['name']:
0036             return skimstream['dataTier']
0037     for skim in CosmicSkims.__dict__:
0038         skimstream = getattr(CosmicSkims,skim)
0039         if (not isinstance(skimstream,cms.FilteredStream)): continue
0040 
0041         if skimname == skimstream['name']:
0042             return skimstream['dataTier']
0043     return None
0044 
0045 ### DPG skims ###
0046 from DPGAnalysis.Skims.Skims_DPG_cff import *
0047 
0048 
0049 ### Central Skims ###
0050 from Configuration.Skimming.Skims_PDWG_cff import *
0051 from Configuration.Skimming.Skims_PA_cff import *
0052 from Configuration.Skimming.Skims_PbPb_cff import *