CMS 3D CMS Logo

Classes | Functions
storeTreeInfo Namespace Reference

Classes

class  TreeAnalyzer
 

Functions

def main ()
 

Function Documentation

◆ main()

def storeTreeInfo.main ( )

Definition at line 77 of file storeTreeInfo.py.

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 

References print(), and str.

str
#define str(s)
Definition: TestProcessor.cc:52
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
storeTreeInfo.main
def main()
Definition: storeTreeInfo.py:77