ImprovedOutputFile
Timing
dual_readout
llp
Last change
on this file since 12b11f9 was d7d2da3, checked in by pavel <pavel@…>, 12 years ago |
move branches/ModularDelphes to trunk
|
-
Property mode
set to
100755
|
File size:
1.0 KB
|
Line | |
---|
1 | #! /bin/sh
|
---|
2 |
|
---|
3 | awk '
|
---|
4 | BEGIN {
|
---|
5 | print "||= Parameter =||= Definition =||= How it was calculated =||";
|
---|
6 | }
|
---|
7 |
|
---|
8 | function print_line(name, comment, even, end) {
|
---|
9 | if(name != ""){
|
---|
10 | split(comment, a, "|");
|
---|
11 | print "|| "name" || "a[1]" || "a[2]" ||";
|
---|
12 | }
|
---|
13 | }
|
---|
14 |
|
---|
15 | /^ *class /{
|
---|
16 | print_line(name, comment, even, 1);
|
---|
17 | even = 0;
|
---|
18 | name = "";
|
---|
19 | comment = "";
|
---|
20 | split($2, a, ":");
|
---|
21 | if(a[1] == "Candidate" || a[1] == "DelphesFactory;") next;
|
---|
22 | print "|| || || ||";
|
---|
23 | print "|||| class "a[1]" || ||"
|
---|
24 | print "|| || || ||"
|
---|
25 | }
|
---|
26 |
|
---|
27 | /: public [^S]/{
|
---|
28 | if($4 == "TObject") next;
|
---|
29 | name = $4;
|
---|
30 | split($2, a, ":");
|
---|
31 | comment = sprintf("%s inherits all %s parameters", a[1], $4);
|
---|
32 | }
|
---|
33 |
|
---|
34 | /^ *[A-Za-z_]* [A-Za-z].*; \/\/ / {
|
---|
35 | print_line(name, comment, even, 0);
|
---|
36 | split($2, a, ";");
|
---|
37 | name = a[1];
|
---|
38 | split($0, a, "// ");
|
---|
39 | comment = a[2];
|
---|
40 | even = !even;
|
---|
41 | }
|
---|
42 |
|
---|
43 | /^ +\/\/ /{split($0, a, "// "); comment = comment" "a[2]}
|
---|
44 | END {
|
---|
45 | print_line(name, comment, even, 1);
|
---|
46 | }' ../classes/DelphesClasses.h
|
---|
47 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.