ImprovedOutputFile
Timing
dual_readout
llp
Last change
on this file since 6519cfb was d7d2da3, checked in by pavel <pavel@…>, 12 years ago |
move branches/ModularDelphes to trunk
|
-
Property mode
set to
100755
|
File size:
710 bytes
|
Rev | Line | |
---|
[d7d2da3] | 1 | #! /bin/sh
|
---|
| 2 |
|
---|
| 3 | if [ $# -ne 1 ]
|
---|
| 4 | then
|
---|
| 5 | echo " Usage: $0 config_file"
|
---|
| 6 | echo " config_file - configuration file in Tcl format."
|
---|
| 7 | exit
|
---|
| 8 | fi
|
---|
| 9 |
|
---|
| 10 | awk '
|
---|
| 11 | BEGIN{
|
---|
| 12 | print "digraph G {"
|
---|
| 13 | print "rankdir=LR";
|
---|
| 14 | }
|
---|
| 15 | $1~/module/{
|
---|
| 16 | dst=$3
|
---|
| 17 | }
|
---|
| 18 | $2~/InputArray/{
|
---|
| 19 | split($3, src, "/");
|
---|
| 20 | if(src[1] == "Delphes") src[1] = "Reader";
|
---|
| 21 | print dst"[shape=box, style=rounded];";
|
---|
| 22 | print src[1]"->"dst" [label="src[2]"];"
|
---|
| 23 | }
|
---|
| 24 | $2~/Branch/{
|
---|
| 25 | split($3, src, "/");
|
---|
| 26 | if(src[1] == "Delphes") src[1] = "Reader";
|
---|
| 27 | print "\"Branch "$4"\" [shape=box, style=\"rounded,filled\", fillcolor=lightgrey];";
|
---|
| 28 | print src[1]"->\"Branch "$4"\" [label="src[2]"];";
|
---|
| 29 | }
|
---|
| 30 | END{
|
---|
| 31 | print "}"
|
---|
| 32 | }' $1 | dot -Tpng > data_flow.png
|
---|
Note:
See
TracBrowser
for help on using the repository browser.