source: HiSusy/trunk/Delphes/Delphes-3.0.9/doc/data_flow.sh @ 5

Last change on this file since 5 was 5, checked in by zerwas, 11 years ago

update to Delphes-3.0.9

  • Property svn:executable set to *
File size: 710 bytes
Line 
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.