BEGIN { print "" print "" print " " print " " print " root tree description" print "" print "" print "

root tree description

" print "
" print "

Branches

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