ImprovedOutputFile
Timing
dual_readout
llp
Last change
on this file since 1343a07 was 7629cea, checked in by Pavel Demin <pavel.demin@…>, 10 years ago |
update root tree description scripts
|
-
Property mode
set to
100755
|
File size:
1.4 KB
|
Rev | Line | |
---|
[7629cea] | 1 | #! /bin/sh
|
---|
| 2 |
|
---|
| 3 | if [ $# -ne 1 ]
|
---|
| 4 | then
|
---|
| 5 | echo " Usage: $0 output_file"
|
---|
| 6 | echo " output_file - output file in HTML format."
|
---|
| 7 | exit
|
---|
| 8 | fi
|
---|
| 9 |
|
---|
| 10 | awk '
|
---|
| 11 | BEGIN {
|
---|
| 12 | print "<table>"
|
---|
| 13 | print "<tr><th>Parameter</th>"
|
---|
| 14 | print "<th>Definition</th>"
|
---|
| 15 | print "<th>How it was calculated</th></tr>"
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | function print_line(name, comment, even, end) {
|
---|
| 19 | if(name != ""){
|
---|
| 20 | if(even) print "<tr class=\"even\">"
|
---|
| 21 | else print "<tr class=\"odd\">"
|
---|
| 22 | print " <td>"name"</td>"
|
---|
| 23 | split(comment, a, "|");
|
---|
| 24 | print " <td>"a[1]"</td>"
|
---|
| 25 | print " <td>"a[2]"</td>"
|
---|
| 26 | print "</tr>"
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | /^ *class /{
|
---|
| 31 | print_line(name, comment, even, 1);
|
---|
| 32 | even = 0;
|
---|
| 33 | name = "";
|
---|
| 34 | comment = "";
|
---|
| 35 | split($2, a, ":");
|
---|
| 36 | if(a[1] == "Candidate" || a[1] == "DelphesFactory;") next;
|
---|
| 37 | print "<tr class=\"class\"><td colspan=\"3\" id=\""a[1]"\">class "a[1]"</td></tr>"
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | /: public /{
|
---|
| 41 | if($4 == "TObject" || $4 == "SortableObject") next;
|
---|
| 42 | name = sprintf("<a href=\"#%s\">%s</a>", $4, $4);
|
---|
| 43 | split($2, a, ":");
|
---|
| 44 | comment = sprintf("%s inherits all %s parameters", a[1], $4);
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | /^ *[A-Za-z_]* [A-Za-z].*; \/\/ / {
|
---|
| 48 | print_line(name, comment, even, 0);
|
---|
| 49 | split($2, a, ";");
|
---|
| 50 | name = a[1];
|
---|
| 51 | split($0, a, "// ");
|
---|
| 52 | comment = a[2];
|
---|
| 53 | even = !even;
|
---|
| 54 | }
|
---|
| 55 |
|
---|
| 56 | /^ +\/\/ /{split($0, a, "// "); comment = comment" "a[2]}
|
---|
| 57 | END {
|
---|
| 58 | print_line(name, comment, even, 1);
|
---|
| 59 | print "</table>"
|
---|
| 60 | }' `dirname $0`/../classes/DelphesClasses.h > $1
|
---|
Note:
See
TracBrowser
for help on using the repository browser.