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

Implements MainWindow.

Definition at line 2369 of file FactGui.h.

References kCyan, kGreen, kMagenta, and kRed.

2370  {
2371 #ifdef HAVE_ROOT
2372  TCanvas *c = fRateScanCanv->GetCanvas();
2373 
2374  TList *l = c->GetListOfPrimitives();
2375 
2376  while (c->FindObject("PatchRate"))
2377  l->Remove(c->FindObject("PatchRate"));
2378 
2379  while (c->FindObject("BoardRate"))
2380  l->Remove(c->FindObject("BoardRate"));
2381 
2382  if (fRateScanPatch1->value()>=0)
2383  {
2384  fGraphRateScan[fRateScanPatch1->value()+41].SetLineColor(kRed);
2385  fGraphRateScan[fRateScanPatch1->value()+41].SetMarkerColor(kRed);
2386  l->Add(&fGraphRateScan[fRateScanPatch1->value()+41], "PL");
2387  }
2388  if (fRateScanPatch2->value()>=0)
2389  {
2390  fGraphRateScan[fRateScanPatch2->value()+41].SetLineColor(kGreen);
2391  fGraphRateScan[fRateScanPatch2->value()+41].SetMarkerColor(kGreen);
2392  l->Add(&fGraphRateScan[fRateScanPatch2->value()+41], "PL");
2393  }
2394  if (fRateScanBoard1->value()>=0)
2395  {
2396  fGraphRateScan[fRateScanBoard1->value()+1].SetLineColor(kMagenta);
2397  fGraphRateScan[fRateScanBoard1->value()+1].SetMarkerColor(kMagenta);
2398  l->Add(&fGraphRateScan[fRateScanBoard1->value()+1], "PL");
2399  }
2400  if (fRateScanBoard2->value()>=0)
2401  {
2402  fGraphRateScan[fRateScanBoard2->value()+1].SetLineColor(kCyan);
2403  fGraphRateScan[fRateScanBoard2->value()+1].SetMarkerColor(kCyan);
2404  l->Add(&fGraphRateScan[fRateScanBoard2->value()+1], "PL");
2405  }
2406 
2407  c->Modified();
2408  c->Update();
2409 #endif
2410  }
Set color Cyan.
Definition: WindowLog.h:22
Set color Green.
Definition: WindowLog.h:18
Set color Red.
Definition: WindowLog.h:17
TGraph fGraphRateScan[201]
Definition: FactGui.h:2329
Set color Magenta.
Definition: WindowLog.h:21