FACT++  1.0
void FactGui::DisplayRates ( )
inlineprivatevirtual

Implements MainWindow.

Definition at line 1838 of file FactGui.h.

References kCyan, kGreen, kMagenta, and kRed.

1839  {
1840 #ifdef HAVE_ROOT
1841  TCanvas *c = fFtmRateCanv->GetCanvas();
1842 
1843  TList * l = c->GetListOfPrimitives();
1844 
1845 
1846  while (c->FindObject("PatchRate"))
1847  l->Remove(c->FindObject("PatchRate"));
1848 
1849  while (c->FindObject("BoardRate"))
1850  l->Remove(c->FindObject("BoardRate"));
1851 
1852  if (fRatePatch1->value()>=0)
1853  {
1854  fGraphPatchRate[fRatePatch1->value()].SetLineColor(kRed);
1855  fGraphPatchRate[fRatePatch1->value()].SetMarkerColor(kRed);
1856  l->Add(&fGraphPatchRate[fRatePatch1->value()], "PL");
1857  }
1858  if (fRatePatch2->value()>=0)
1859  {
1860  fGraphPatchRate[fRatePatch2->value()].SetLineColor(kGreen);
1861  fGraphPatchRate[fRatePatch2->value()].SetMarkerColor(kGreen);
1862  l->Add(&fGraphPatchRate[fRatePatch2->value()], "PL");
1863  }
1864  if (fRateBoard1->value()>=0)
1865  {
1866  fGraphBoardRate[fRateBoard1->value()].SetLineColor(kMagenta);
1867  fGraphBoardRate[fRateBoard1->value()].SetMarkerColor(kMagenta);
1868  l->Add(&fGraphBoardRate[fRateBoard1->value()], "PL");
1869  }
1870  if (fRateBoard2->value()>=0)
1871  {
1872  fGraphBoardRate[fRateBoard2->value()].SetLineColor(kCyan);
1873  fGraphBoardRate[fRateBoard2->value()].SetMarkerColor(kCyan);
1874  l->Add(&fGraphBoardRate[fRateBoard2->value()], "PL");
1875  }
1876 
1877  c->Modified();
1878  c->Update();
1879 #endif
1880  }
Set color Cyan.
Definition: WindowLog.h:22
TGraph fGraphPatchRate[160]
Definition: FactGui.h:3540
Set color Green.
Definition: WindowLog.h:18
Set color Red.
Definition: WindowLog.h:17
Set color Magenta.
Definition: WindowLog.h:21
TGraph fGraphBoardRate[40]
Definition: FactGui.h:3541