BEGIN {
print ""
print "
"
print " "
print " "
print " root tree description"
print ""
print ""
print "root tree description
"
print "
"
print "Branches
"
print "
"
print ""
print "Branch | "
print "Definition | "
print "Class |
"
even = 1;
previous_line = ""
}
function print_line(previous_line, current_line, even) {
if(even) print ""
else print "
"
split(current_line, a, "\"");
print " "a[2]" | "
split(previous_line, a, "// ");
print " "a[2]" | "
split(current_line, a, ",");
split(a[2], b, "::");
gsub(" ", "", b[1]);
if(b[1] == "ExRootGen" || b[1] == "ExRootSimParticle") b[1] = "ExRootGenParticle";
print " "b[1]" | ";
print "
";
}
/NewBranch/ {
print_line(previous_line, $0, even);
even = !even;
}
{
previous_line = $0
}
END {
print "
"
}