CMS 3D CMS Logo

Functions
SkimsCosmics_cff Namespace Reference

Functions

def documentSkims ()
 

Function Documentation

◆ documentSkims()

def SkimsCosmics_cff.documentSkims ( )

Definition at line 4 of file SkimsCosmics_cff.py.

References join(), and print().

4 def documentSkims():
5  import Configuration.StandardSequences.SkimsCosmics_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 
27 
28 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
static std::string join(char **cmd)
Definition: RemoteFile.cc:21