digraph daq {
        rankdir=LR

        apa[shape=box, label="Detector\n(150 APAs)"]

        subgraph cluster_upstream {
                label="upstream DAQ (75 computers)"
                felix[shape=box]
                tp
                {rank="same";
                        cwf
                        awf
                }
                hf[shape=box]
                {rank="same";
                bis[shape=box]
                tpis[shape=box]}
        }

        subgraph cluster_trigger {
                label="data selectio (75 computers)"
                cf[shape=box]
                tc
                tcis[shape=box]
        }

        subgraph cluster_module {
                labelloc=bottom
                label="module level (1 computer)"                
                mlt[shape=box]
        }
        td

        apa->felix[penwidth=10]
        felix->cwf->hf[penwidth=3]
        hf->tp->cf[penwidth=2]
        cf->tc->mlt->td
        felix->awf[penwidth=10]
        
        subgraph cluster_buffer {
                label="buffer"
                labelloc=bottom
                bis[shape=box]
                tpis[shape=box]
        }

        awf->bis[penwidth=10]
        tp->tpis[penwidth=2]
        tc->tcis

        subgraph cluster_readout {
                label="event building"
                dfo[shape=box]
                eb[shape=box]
        }
        disk[shape=Mcircle]
        td->dfo->eb->tr->disk

        edge[style=dashed, dir=both]
        tcis->eb
        tpis->eb[label="    query for data"]
        bis->eb


}
