Fork me on GitHub

Changeset d870fc5 in git for doc/root_tree_html.sh


Ignore:
Timestamp:
Dec 21, 2014, 4:03:35 PM (10 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
d77b51d
Parents:
7f12612 (diff), e5767b57 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'upstream/master'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/root_tree_html.sh

    r7f12612 rd870fc5  
    99
    1010awk '
    11   BEGIN { 
     11  BEGIN {
     12    print "<!doctype html>"
    1213    print "<html>"
    13    
     14
    1415    print "<head>"
    1516    print "  <meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">"
    1617    print "  <meta NAME=\"keywords\" CONTENT=\"root, tree, ntuple, format, description\">"
    1718    print "  <title>root tree description</title>"
     19    print "  <style>"
     20    print "    body { font-family: sans-serif; max-width: 800px; line-height: 1.4; margin-left: auto; margin-right: auto; padding: 0em 1em 3em 1em; }"
     21    print "    h1 { font-weight: normal; }"
     22    print "    td, th { border: 1px solid #d3d3d3; padding: 0.1em 0.3em; }"
     23    print "    th { text-align: left; background-color: #f5f5f5; }"
     24    print "    tr.even td { background-color: #f5f5f5; }"
     25    print "    tr.class td { font-weight: bold; padding-top: 1em; }"
     26    print "  </style>"
    1827    print "</head>"
    1928
    2029    print "<body>"
    21    
    22     print "<H1>root tree description</H1>"
    2330
    24     print "<hr>"
    25     print "<H2>Classes</H2>"
    26     print "<hr>"
     31    print "<h1>ROOT Tree Description</h1>"
     32    print "<p>Description of all classes used to store output data.</p>"
    2733
    28     print "<table style=\"border: 1px dotted;\" align=\"center\" border=\"0\" cellpadding=\"7\" cellspacing=\"3\" widt=\"95%\">"
    29     print "<tr><td><b>Parameter</b></td>"
    30     print "<td><b>Definition</b></td>"
    31     print "<td><b>How it was calculated</b></td></tr>"
     34    print "<table>"
     35    print "<tr><th>Parameter</th>"
     36    print "<th>Definition</th>"
     37    print "<th>How it was calculated</th></tr>"
    3238  }
    3339
    3440  function print_line(name, comment, even, end) {
    3541    if(name != ""){
    36       if(even) print "<tr bgcolor=\"#eeeeee\">"
    37       else print "<tr bgcolor=\"#ffffff\">"
     42      if(even) print "<tr class=\"even\">"
     43      else print "<tr class=\"odd\">"
    3844      print "  <td>"name"</td>"
    3945      split(comment, a, "|");
     
    5157    split($2, a, ":");
    5258    if(a[1] == "Candidate" || a[1] == "DelphesFactory;") next;
    53     print "<tr bgcolor=\"#ffffff\"><td colspan=3><hr><a name=\""a[1]"\"><H3>"a[1]"</H3><hr></td></tr>"
     59    print "<tr class=\"class\"><td colspan=\"3\" id=\""a[1]"\">class "a[1]"</td></tr>"
    5460  }
    5561
    56   /: public [^S]/{
    57     if($4 == "TObject") next;
     62  /: public /{
     63    if($4 == "TObject" || $4 == "SortableObject") next;
    5864    name = sprintf("<a href=\"#%s\">%s</a>", $4, $4);
    5965    split($2, a, ":");
     
    7581    print "</table>"
    7682    print "</body></html>"
    77   }' ../classes/DelphesClasses.h >> $1
    78 
     83  }' `dirname $0`/../classes/DelphesClasses.h > $1
Note: See TracChangeset for help on using the changeset viewer.