Fork me on GitHub

source: git/doc/data_flow.sh@ 1343a07

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 1343a07 was d7d2da3, checked in by pavel <pavel@…>, 12 years ago

move branches/ModularDelphes to trunk

  • Property mode set to 100755
File size: 710 bytes
RevLine 
[d7d2da3]1#! /bin/sh
2
3if [ $# -ne 1 ]
4then
5 echo " Usage: $0 config_file"
6 echo " config_file - configuration file in Tcl format."
7 exit
8fi
9
10awk '
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.