CMS 3D CMS Logo

Classes | Functions
storeTreeInfo Namespace Reference

Classes

class  TreeAnalyzer
 

Functions

def main ()
 

Function Documentation

def storeTreeInfo.main ( )

Definition at line 77 of file storeTreeInfo.py.

References edm.print(), and str.

77 def main():
78 
79  import getopt
80 
81  try:
82  opts, args = getopt.getopt(sys.argv[1:], "c:o:", ['checkDir=', 'outFile='])
83 
84  checkDir = '.'
85  outFile = None
86  for opt, arg in opts :
87 
88  if opt in ('-c', "--checkDir", ):
89  checkDir = arg
90 
91  if opt in ('-o', "--outFile", ):
92  outFile = arg
93 
94  ta = TreeAnalyzer(outFile)
95  ta.analyzePath(checkDir)
96  ta.show()
97 
98  except getopt.GetoptError as e:
99  print("unknown option", str(e))
100  sys.exit(2)
101 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
#define str(s)