CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 print(), and str.

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