CMS 3D CMS Logo

Functions
Skims_cff Namespace Reference

Functions

def documentSkims ()
 
def getSkimDataTier (skimname)
 

Function Documentation

◆ documentSkims()

def Skims_cff.documentSkims ( )

Definition at line 4 of file Skims_cff.py.

4 def documentSkims():
5  import Configuration.StandardSequences.Skims_cff as Skims
6 
7  listOfOptions=[]
8  for skim in Skims.__dict__:
9  skimstream = getattr(Skims,skim)
10  if (not isinstance(skimstream,cms.FilteredStream)):
11  continue
12 
13  shortname = skim.replace('SKIMStream','')
14  print(shortname)
15  if shortname!=skimstream['name']:
16  print('#### ERROR ####')
17  print('skim name and stream name should be the same for consistency',shortname,'!=',skimstream['name'])
18 
19  for token in ['name','responsible','dataTier']:
20  print(token,":",skimstream[token])
21 
22  listOfOptions.append(skimstream['name'])
23 
24  print('possible cmsDriver options for skimming:')
25  print('SKIM:'+'+'.join(listOfOptions))
26 

References join(), and edm.print().

◆ getSkimDataTier()

def Skims_cff.getSkimDataTier (   skimname)

Definition at line 27 of file Skims_cff.py.

27 def getSkimDataTier(skimname):
28  import Configuration.StandardSequences.Skims_cff as Skims
29  import DPGAnalysis.Skims.SkimsCosmics_DPG_cff as CosmicSkims
30 
31  for skim in Skims.__dict__:
32  skimstream = getattr(Skims,skim)
33  if (not isinstance(skimstream,cms.FilteredStream)): continue
34 
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
40 
41  if skimname == skimstream['name']:
42  return skimstream['dataTier']
43  return None
44 
SkimsCosmics_DPG_cff
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
Skims_cff.documentSkims
def documentSkims()
Definition: Skims_cff.py:4
edm::print
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
Skims_cff.getSkimDataTier
def getSkimDataTier(skimname)
Definition: Skims_cff.py:27