CMS 3D CMS Logo

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

Functions

def documentSkims
 

Function Documentation

def SkimsHeavyIons_cff.documentSkims ( )

Definition at line 4 of file SkimsHeavyIons_cff.py.

References join(), and print().

4 
5 def documentSkims():
6  import Configuration.StandardSequences.SkimsHeavyIons_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))
27 
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