Hi,
I am defining a histogram in the xml file like this:
<Histogram>
<HistName>h2_dt_tcpgotheader</HistName>
<HistFolderName>BC</HistFolderName>
<HistType>TH2D</HistType>
<HistXLabel>time(us)</HistXLabel>
<HistYLabel>Entries</HistYLabel>
<HistXNbins>300000</HistXNbins>
<HistXmin>-20000</HistXmin>
<HistXmax>100000</HistXmax>
<HistYNbins>10</HistYNbins>
<HistYmin>0.0</HistYmin>
<HistYmax>10</HistYmax>-->
<Argus>
<Tab>
<TabName>SummaryBCBank</TabName>
<Index>0</Index>
</Tab>
</Argus>
<Histogram>
<HistName>h2_dt_tcpgotheader</HistName>
<HistFolderName>BC</HistFolderName>
<HistType>TH2D</HistType>
<HistXLabel>time(us)</HistXLabel>
<HistYLabel>Entries</HistYLabel>
<HistXNbins>300000</HistXNbins>
<HistXmin>-20000</HistXmin>
<HistXmax>100000</HistXmax>
<HistYNbins>10</HistYNbins>
<HistYmin>0.0</HistYmin>
<HistYmax>10</HistYmax>-->
<Argus>
<Tab>
<TabName>SummaryBCBank</TabName>
<Index>0</Index>
</Tab>
</Argus>
</Histogram>
Now I want to add few texts and arrows on the same pad where the histogram is
being written.
I want to add this piece of code:
TLatex title;
title.SetTextFont(12);
title.SetTextSize(0.03);
title.SetNDC();
title.SetTextColor(2);
title.DrawLatex(0.01,0.32,"tcp header #rightarrow");
title.SetTextColor(3);
title.DrawLatex(0.01,0.4,"tcp data #rightarrow");
title.SetTextColor(4);
title.DrawLatex(0.01,0.48,"copy to GPU #rightarrow");
title.SetTextColor(5);
title.DrawLatex(0.01,0.56,"GPU processing #rightarrow");
title.SetTextColor(6);
title.DrawLatex(0.01,0.64,"MFE start #rightarrow");
title.SetTextColor(7);
title.DrawLatex(0.01,0.72,"MFE stop #rightarrow");
The problem is that if I add this piece of code in the src/tasks, where I fill
in the histogram, then the problem is that this histogram replaces whatever is
on the last tab on the canvas.
As I recall that I am not supposed to add extra tabbing codes in the src codes
when I am using the <Argus> block for tabbing.
So where can I add these texts while still using <Argus> block for tabbing?
Any help might be very much appreciated. |