ATLAS Offline Software
Functions | Variables
root2html Namespace Reference

Functions

def main ()
 

Variables

 html_template
 

Function Documentation

◆ main()

def root2html.main ( )

Definition at line 31 of file root2html.py.

31 def main():
32 
33  # Parse arguments
34  from optparse import OptionParser
35  parser = OptionParser(usage = "usage: %prog [options] file1 [file2] ..." )
36 
37  (opts, args) = parser.parse_args()
38 
39  if len(args)<1:
40  parser.print_help()
41  return
42 
43  #create an index.htm with the input file and rootcomp.root
44  d = {"file_list":";".join(args)}
45  o_html = open('index.htm', 'w')
46  o_html.writelines(html_template%d)
47  o_html.flush()
48  o_html.close()
49  print("Wrote index.htm file")
50 
51  return 0
52 
53 

Variable Documentation

◆ html_template

root2html.html_template

Definition at line 9 of file root2html.py.

TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
root2html.main
def main()
Definition: root2html.py:31
Trk::open
@ open
Definition: BinningType.h:40
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28