CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
Skims_cff Namespace Reference

Functions

def documentSkims
 
def getSkimDataTier
 

Function Documentation

def Skims_cff.documentSkims ( )

Definition at line 4 of file Skims_cff.py.

References join(), and print().

4 
5 def documentSkims():
6  import Configuration.StandardSequences.Skims_cff as Skims
7 
8  listOfOptions=[]
9  for skim in Skims.__dict__:
10  skimstream = getattr(Skims,skim)
11  if (not isinstance(skimstream,cms.FilteredStream)):
12  continue
13 
14  shortname = skim.replace('SKIMStream','')
15  print(shortname)
16  if shortname!=skimstream['name']:
17  print('#### ERROR ####')
18  print('skim name and stream name should be the same for consistency',shortname,'!=',skimstream['name'])
19 
20  for token in ['name','responsible','dataTier']:
21  print(token,":",skimstream[token])
22 
23  listOfOptions.append(skimstream['name'])
24 
25  print('possible cmsDriver options for skimming:')
26  print('SKIM:'+'+'.join(listOfOptions))
def documentSkims
Definition: Skims_cff.py:4
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def Skims_cff.getSkimDataTier (   skimname)

Definition at line 27 of file Skims_cff.py.

27 
28 def getSkimDataTier(skimname):
29  import Configuration.StandardSequences.Skims_cff as Skims
30  import DPGAnalysis.Skims.SkimsCosmics_DPG_cff as CosmicSkims
31 
32  for skim in Skims.__dict__:
33  skimstream = getattr(Skims,skim)
34  if (not isinstance(skimstream,cms.FilteredStream)): continue
35 
36  if skimname == skimstream['name']:
37  return skimstream['dataTier']
38  for skim in CosmicSkims.__dict__:
39  skimstream = getattr(CosmicSkims,skim)
40  if (not isinstance(skimstream,cms.FilteredStream)): continue
41 
42  if skimname == skimstream['name']:
43  return skimstream['dataTier']
44  return None
def getSkimDataTier
Definition: Skims_cff.py:27