FACT++  1.0
FactGui::FactGui ( Configuration conf)
inline

Definition at line 3578 of file FactGui.h.

References Configuration::Get(), i, kBlue, kGreen, kRed, kWhite, PixelMap::Read(), DimClient::sendCommand(), Tools::Split(), str, Tools::Trim(), and Configuration::Vec().

3578  :
3579  fFtuStatus(40),
3580  /*fPixelMapHW(1440),*/ fPatchMapHW(160),
3581  fInChoosePatchTH(false),
3582  fInChooseBiasHv(false), fInChooseBiasCam(false),
3583  fDimDNS("DIS_DNS/VERSION_NUMBER", 1, int(0), this),
3584  //-
3585  fDimLoggerStats ("DATA_LOGGER/STATS", (void*)NULL, 0, this),
3586  fDimLoggerFilenameNight("DATA_LOGGER/FILENAME_NIGHTLY", (void*)NULL, 0, this),
3587  fDimLoggerFilenameRun ("DATA_LOGGER/FILENAME_RUN", (void*)NULL, 0, this),
3588  fDimLoggerNumSubs ("DATA_LOGGER/NUM_SUBS", (void*)NULL, 0, this),
3589  //-
3590  fDimFtmPassport ("FTM_CONTROL/PASSPORT", (void*)NULL, 0, this),
3591  fDimFtmTriggerRates ("FTM_CONTROL/TRIGGER_RATES", (void*)NULL, 0, this),
3592  fDimFtmError ("FTM_CONTROL/ERROR", (void*)NULL, 0, this),
3593  fDimFtmFtuList ("FTM_CONTROL/FTU_LIST", (void*)NULL, 0, this),
3594  fDimFtmStaticData ("FTM_CONTROL/STATIC_DATA", (void*)NULL, 0, this),
3595  fDimFtmDynamicData ("FTM_CONTROL/DYNAMIC_DATA", (void*)NULL, 0, this),
3596  fDimFtmCounter ("FTM_CONTROL/COUNTER", (void*)NULL, 0, this),
3597  //-
3598  fDimFadWriteStats ("FAD_CONTROL/STATS", (void*)NULL, 0, this),
3599  fDimFadStartRun ("FAD_CONTROL/START_RUN", (void*)NULL, 0, this),
3600  fDimFadRuns ("FAD_CONTROL/RUNS", (void*)NULL, 0, this),
3601  fDimFadEvents ("FAD_CONTROL/EVENTS", (void*)NULL, 0, this),
3602  fDimFadRawData ("FAD_CONTROL/RAW_DATA", (void*)NULL, 0, this),
3603  fDimFadEventData ("FAD_CONTROL/EVENT_DATA", (void*)NULL, 0, this),
3604  fDimFadConnections ("FAD_CONTROL/CONNECTIONS", (void*)NULL, 0, this),
3605  fDimFadFwVersion ("FAD_CONTROL/FIRMWARE_VERSION", (void*)NULL, 0, this),
3606  fDimFadRunNumber ("FAD_CONTROL/RUN_NUMBER", (void*)NULL, 0, this),
3607  fDimFadDNA ("FAD_CONTROL/DNA", (void*)NULL, 0, this),
3608  fDimFadTemperature ("FAD_CONTROL/TEMPERATURE", (void*)NULL, 0, this),
3609  fDimFadPrescaler ("FAD_CONTROL/PRESCALER", (void*)NULL, 0, this),
3610  fDimFadRefClock ("FAD_CONTROL/REFERENCE_CLOCK", (void*)NULL, 0, this),
3611  fDimFadRoi ("FAD_CONTROL/REGION_OF_INTEREST", (void*)NULL, 0, this),
3612  fDimFadDac ("FAD_CONTROL/DAC", (void*)NULL, 0, this),
3613  fDimFadDrsCalibration ("FAD_CONTROL/DRS_CALIBRATION", (void*)NULL, 0, this),
3614  fDimFadStatus ("FAD_CONTROL/STATUS", (void*)NULL, 0, this),
3615  fDimFadStatistics1 ("FAD_CONTROL/STATISTICS1", (void*)NULL, 0, this),
3616  //fDimFadStatistics2 ("FAD_CONTROL/STATISTICS2", (void*)NULL, 0, this),
3617  fDimFadFileFormat ("FAD_CONTROL/FILE_FORMAT", (void*)NULL, 0, this),
3618  //-
3619  fDimFscTemp ("FSC_CONTROL/TEMPERATURE", (void*)NULL, 0, this),
3620  fDimFscVolt ("FSC_CONTROL/VOLTAGE", (void*)NULL, 0, this),
3621  fDimFscCurrent ("FSC_CONTROL/CURRENT", (void*)NULL, 0, this),
3622  fDimFscHumidity ("FSC_CONTROL/HUMIDITY", (void*)NULL, 0, this),
3623  //-
3624  fDimFeedbackCalibrated ("FEEDBACK/CALIBRATED_CURRENTS", (void*)NULL, 0, this),
3625  //-
3626  fDimBiasNominal ("BIAS_CONTROL/NOMINAL", (void*)NULL, 0, this),
3627  fDimBiasVolt ("BIAS_CONTROL/VOLTAGE", (void*)NULL, 0, this),
3628  fDimBiasDac ("BIAS_CONTROL/DAC", (void*)NULL, 0, this),
3629  fDimBiasCurrent ("BIAS_CONTROL/CURRENT", (void*)NULL, 0, this),
3630  //-
3631  fDimRateScan ("RATE_SCAN/DATA", (void*)NULL, 0, this),
3632  //-
3633  fDimMagicWeather ("MAGIC_WEATHER/DATA", (void*)NULL, 0, this),
3634  //-
3635  fDimVersion(0),
3636  fFreeSpaceLogger(UINT64_MAX), fFreeSpaceData(UINT64_MAX),
3637  fEventData(0),
3638  fDrsCalibration(1440*1024*6+160*1024*2),
3639  fTimeStamp0(0)
3640  {
3641  fClockCondFreq->addItem("--- Hz", QVariant(-1));
3642  fClockCondFreq->addItem("800 MHz", QVariant(800));
3643  fClockCondFreq->addItem("1 GHz", QVariant(1000));
3644  fClockCondFreq->addItem("2 GHz", QVariant(2000));
3645  fClockCondFreq->addItem("3 GHz", QVariant(3000));
3646  fClockCondFreq->addItem("4 GHz", QVariant(4000));
3647  fClockCondFreq->addItem("5 GHz", QVariant(5000));
3648 
3649  cout << "-- run counter ---" << endl;
3650  fMcpNumEvents->addItem("unlimited", QVariant(0));
3651  const vector<uint32_t> runcount = conf.Vec<uint32_t>("run-count");
3652  for (vector<uint32_t>::const_iterator it=runcount.begin(); it!=runcount.end(); it++)
3653  {
3654  cout << *it << endl;
3655  ostringstream str;
3656  str << *it;
3657  fMcpNumEvents->addItem(str.str().c_str(), QVariant(*it));
3658  }
3659 
3660  cout << "-- run times ---" << endl;
3661  fMcpTime->addItem("unlimited", QVariant(0));
3662  const vector<string> runtime = conf.Vec<string>("run-time");
3663  for (vector<string>::const_iterator it=runtime.begin(); it!=runtime.end(); it++)
3664  {
3665  const pair<string,string> p = Split(*it);
3666  cout << *it << "|" << p.second << "|" << p.first << "|" << endl;
3667  fMcpTime->addItem(p.second.c_str(), QVariant(stoi(p.first)));
3668  }
3669 
3670  cout << "-- run types ---" << endl;
3671  const vector<string> runtype = conf.Vec<string>("run-type");
3672  for (vector<string>::const_iterator it=runtype.begin(); it!=runtype.end(); it++)
3673  {
3674  const pair<string,string> p = Split(*it);
3675  cout << *it << "|" << p.second << "|" << p.first << "|" << endl;
3676  fMcpRunType->addItem(p.second.c_str(), QVariant(p.first.c_str()));
3677  }
3678 
3679  fTriggerWidget->setEnabled(false);
3680  fFtuWidget->setEnabled(false);
3681  fFtuGroupEnable->setEnabled(false);
3682  fRatesControls->setEnabled(false);
3683  fFadWidget->setEnabled(false);
3684  fGroupEthernet->setEnabled(false);
3685  fGroupOutput->setEnabled(false);
3686  fLoggerWidget->setEnabled(false);
3687  fBiasWidget->setEnabled(false);
3688  fAuxWidget->setEnabled(false);
3689 
3690  fChatSend->setEnabled(false);
3691  fChatMessage->setEnabled(false);
3692 
3693  DimClient::sendCommand("CHAT/MSG", "GUI online.");
3694  // + MessageDimRX
3695 
3696  // --------------------------------------------------------------------------
3697 
3698  if (!fPixelMap.Read(conf.Get<string>("pixel-map-file")))
3699  {
3700  cerr << "ERROR - Problems reading " << conf.Get<string>("pixel-map-file") << endl;
3701  exit(-1);
3702  }
3703 
3704  // --------------------------------------------------------------------------
3705 
3706  ifstream fin3("PatchList.txt");
3707 
3708  string buf;
3709 
3710  int l = 0;
3711  while (getline(fin3, buf, '\n'))
3712  {
3713  buf = Tools::Trim(buf);
3714  if (buf[0]=='#')
3715  continue;
3716 
3717  unsigned int softid, hardid;
3718 
3719  stringstream str(buf);
3720 
3721  str >> softid;
3722  str >> hardid;
3723 
3724  if (softid>=fPatchMapHW.size())
3725  continue;
3726 
3727  fPatchMapHW[softid] = hardid-1;
3728 
3729  l++;
3730  }
3731 
3732  if (l!=160)
3733  cerr << "WARNING - Problems reading PatchList.txt" << endl;
3734 
3735  // --------------------------------------------------------------------------
3736 
3737  fCommentsWidget->setEnabled(false);
3738 
3739  static const boost::regex expr("(([[:word:].-]+)(:(.+))?@)?([[:word:].-]+)(:([[:digit:]]+))?(/([[:word:].-]+))");
3740 
3741  const string database = conf.Get<string>("CommentDB");
3742 
3743  if (!database.empty())
3744  {
3745  boost::smatch what;
3746  if (!boost::regex_match(database, what, expr, boost::match_extra))
3747  throw runtime_error("Couldn't parse '"+database+"'.");
3748 
3749  if (what.size()!=10)
3750  throw runtime_error("Error parsing '"+database+"'.");
3751 
3752  const string user = what[2];
3753  const string passwd = what[4];
3754  const string server = what[5];
3755  const string db = what[9];
3756  const int port = atoi(string(what[7]).c_str());
3757 
3758  QSqlDatabase qdb = QSqlDatabase::addDatabase("QMYSQL");
3759  qdb.setHostName(server.c_str());
3760  qdb.setDatabaseName(db.c_str());
3761  qdb.setUserName(user.c_str());
3762  qdb.setPassword(passwd.c_str());
3763  qdb.setPort(port);
3764  qdb.setConnectOptions("CLIENT_SSL=1;MYSQL_OPT_RECONNECT=1");
3765  if (qdb.open())
3766  {
3767  QSqlTableModel *model = new QSqlTableModel(fTableComments, qdb);
3768  model->setTable("runcomments");
3769  model->setEditStrategy(QSqlTableModel::OnManualSubmit);
3770 
3771  const bool ok2 = model->select();
3772 
3773  if (ok2)
3774  {
3775  fTableComments->setModel(model);
3776  fTableComments->resizeColumnsToContents();
3777  fTableComments->resizeRowsToContents();
3778 
3779  connect(fCommentSubmit, SIGNAL(clicked()), model, SLOT(submitAll()));
3780  connect(fCommentRevert, SIGNAL(clicked()), model, SLOT(revertAll()));
3781  connect(fCommentUpdateLayout, SIGNAL(clicked()), fTableComments, SLOT(resizeColumnsToContents()));
3782  connect(fCommentUpdateLayout, SIGNAL(clicked()), fTableComments, SLOT(resizeRowsToContents()));
3783 
3784  fCommentsWidget->setEnabled(true);
3785  }
3786  else
3787  cout << "\n==> ERROR: Select on table failed.\n" << endl;
3788  }
3789  else
3790  cout << "\n==> ERROR: Connection to database failed:\n "
3791  << qdb.lastError().text().toStdString() << endl << endl;
3792  }
3793 
3794  // --------------------------------------------------------------------------
3795 #ifdef HAVE_ROOT
3796 
3797  fGraphFeedbackDev.SetLineColor(kBlue);
3798  fGraphFeedbackDev.SetMarkerColor(kBlue);
3799  fGraphFeedbackDev.SetMarkerStyle(kFullDotMedium);
3800 
3801  fGraphFeedbackCmd.SetLineColor(kBlue);
3802  fGraphFeedbackCmd.SetMarkerColor(kBlue);
3803  fGraphFeedbackCmd.SetMarkerStyle(kFullDotMedium);
3804 
3805  // Evolution of control deviation
3806  // Evolution of command values (bias voltage change)
3807  fGraphFeedbackDev.SetName("ControlDev");
3808  fGraphFeedbackCmd.SetName("CommandVal");
3809 
3810  TCanvas *c = fFeedbackDev->GetCanvas();
3811  c->SetBorderMode(0);
3812  c->SetFrameBorderMode(0);
3813  c->SetFillColor(kWhite);
3814  c->SetRightMargin(0.03);
3815  c->SetTopMargin(0.03);
3816  c->SetGrid();
3817 
3818  TH1 *hf = DrawTimeFrame("Overvoltage [V] ");
3819  hf->GetXaxis()->SetLabelSize(0.07);
3820  hf->GetYaxis()->SetLabelSize(0.07);
3821  hf->GetYaxis()->SetTitleSize(0.08);
3822  hf->GetYaxis()->SetTitleOffset(0.55);
3823  hf->GetXaxis()->SetTitle("");
3824  hf->GetYaxis()->SetRangeUser(0, 1.5);
3825 
3826  c->GetListOfPrimitives()->Add(hf, "");
3827  c->GetListOfPrimitives()->Add(&fGraphFeedbackDev, "LP");
3828 
3829  c = fFeedbackCmd->GetCanvas();
3830  c->SetBorderMode(0);
3831  c->SetFrameBorderMode(0);
3832  c->SetFillColor(kWhite);
3833  c->SetRightMargin(0.03);
3834  c->SetTopMargin(0.03);
3835  c->SetGrid();
3836 
3837  hf = DrawTimeFrame("Command temp delta [V] ");
3838  hf->GetXaxis()->SetLabelSize(0.07);
3839  hf->GetYaxis()->SetLabelSize(0.07);
3840  hf->GetYaxis()->SetTitleSize(0.08);
3841  hf->GetYaxis()->SetTitleOffset(0.55);
3842  hf->GetXaxis()->SetTitle("");
3843  hf->GetYaxis()->SetRangeUser(-2, 2);
3844 
3845  c->GetListOfPrimitives()->Add(hf, "");
3846  c->GetListOfPrimitives()->Add(&fGraphFeedbackCmd, "LP");
3847 
3848  // --------------------------------------------------------------------------
3849 
3850  c = fRateScanCanv->GetCanvas();
3851  //c->SetBit(TCanvas::kNoContextMenu);
3852  c->SetBorderMode(0);
3853  c->SetFrameBorderMode(0);
3854  c->SetFillColor(kWhite);
3855  c->SetRightMargin(0.03);
3856  c->SetTopMargin(0.03);
3857  c->SetGrid();
3858 
3859  TH1F *h=new TH1F("Frame", "", 1, 0, 1);
3860  h->SetDirectory(0);
3861  h->SetBit(kCanDelete);
3862  h->SetStats(kFALSE);
3863  h->SetXTitle("Threshold [DAC]");
3864  h->SetYTitle("Rate [Hz]");
3865  h->GetXaxis()->CenterTitle();
3866  h->GetYaxis()->CenterTitle();
3867  h->GetXaxis()->SetLabelSize(0.025);
3868  h->GetYaxis()->SetLabelSize(0.025);
3869  h->GetYaxis()->SetTitleOffset(1.2);
3870  c->GetListOfPrimitives()->Add(h, "");
3871 
3872  fGraphRateScan[0].SetName("CameraRate");
3873  for (int i=0; i<40; i++)
3874  {
3875  fGraphRateScan[i+1].SetName("BoardRate");
3876  fGraphRateScan[i+1].SetMarkerStyle(kFullDotMedium);
3877  }
3878  for (int i=0; i<160; i++)
3879  {
3880  fGraphRateScan[i+41].SetName("PatchRate");
3881  fGraphRateScan[i+41].SetMarkerStyle(kFullDotMedium);
3882  }
3883 
3884  fGraphRateScan[0].SetLineColor(kBlue);
3885  fGraphRateScan[0].SetMarkerColor(kBlue);
3886  fGraphRateScan[0].SetMarkerStyle(kFullDotSmall);
3887  c->GetListOfPrimitives()->Add(&fGraphRateScan[0], "LP");
3888 
3889  // --------------------------------------------------------------------------
3890 
3891  c = fFtmRateCanv->GetCanvas();
3892  //c->SetBit(TCanvas::kNoContextMenu);
3893  c->SetBorderMode(0);
3894  c->SetFrameBorderMode(0);
3895  c->SetFillColor(kWhite);
3896  c->SetRightMargin(0.03);
3897  c->SetTopMargin(0.03);
3898  c->SetGrid();
3899 
3900  hf = DrawTimeFrame("Trigger rate [Hz]");
3901  hf->GetYaxis()->SetRangeUser(0, 1010);
3902 
3903  for (int i=0; i<160; i++)
3904  {
3905  fGraphPatchRate[i].SetName("PatchRate");
3906  //fGraphPatchRate[i].SetLineColor(kBlue);
3907  //fGraphPatchRate[i].SetMarkerColor(kBlue);
3908  fGraphPatchRate[i].SetMarkerStyle(kFullDotMedium);
3909  }
3910  for (int i=0; i<40; i++)
3911  {
3912  fGraphBoardRate[i].SetName("BoardRate");
3913  //fGraphBoardRate[i].SetLineColor(kBlue);
3914  //fGraphBoardRate[i].SetMarkerColor(kBlue);
3915  fGraphBoardRate[i].SetMarkerStyle(kFullDotMedium);
3916  }
3917 
3918  fGraphFtmRate.SetLineColor(kBlue);
3919  fGraphFtmRate.SetMarkerColor(kBlue);
3920  fGraphFtmRate.SetMarkerStyle(kFullDotSmall);
3921 
3922  c->GetListOfPrimitives()->Add(hf, "");
3923  c->GetListOfPrimitives()->Add(&fGraphFtmRate, "LP");
3924 
3925  /*
3926  TCanvas *c = fFtmTempCanv->GetCanvas();
3927  c->SetBit(TCanvas::kNoContextMenu);
3928  c->SetBorderMode(0);
3929  c->SetFrameBorderMode(0);
3930  c->SetFillColor(kWhite);
3931  c->SetRightMargin(0.03);
3932  c->SetTopMargin(0.03);
3933  c->cd();
3934  */
3935  //CreateTimeFrame("Temperature / �C");
3936 
3937  fGraphFtmTemp[0].SetMarkerStyle(kFullDotSmall);
3938  fGraphFtmTemp[1].SetMarkerStyle(kFullDotSmall);
3939  fGraphFtmTemp[2].SetMarkerStyle(kFullDotSmall);
3940  fGraphFtmTemp[3].SetMarkerStyle(kFullDotSmall);
3941 
3942  fGraphFtmTemp[1].SetLineColor(kBlue);
3943  fGraphFtmTemp[2].SetLineColor(kRed);
3944  fGraphFtmTemp[3].SetLineColor(kGreen);
3945 
3946  fGraphFtmTemp[1].SetMarkerColor(kBlue);
3947  fGraphFtmTemp[2].SetMarkerColor(kRed);
3948  fGraphFtmTemp[3].SetMarkerColor(kGreen);
3949 
3950  //fGraphFtmTemp[0].Draw("LP");
3951  //fGraphFtmTemp[1].Draw("LP");
3952  //fGraphFtmTemp[2].Draw("LP");
3953  //fGraphFtmTemp[3].Draw("LP");
3954 
3955  // --------------------------------------------------------------------------
3956 
3957  c = fAdcDataCanv->GetCanvas();
3958  //c->SetBit(TCanvas::kNoContextMenu);
3959  c->SetBorderMode(0);
3960  c->SetFrameBorderMode(0);
3961  c->SetFillColor(kWhite);
3962  c->SetRightMargin(0.10);
3963  c->SetGrid();
3964  //c->cd();
3965 #endif
3966 
3967  // --------------------------------------------------------------------------
3968  fFeedbackDevCam->assignPixelMap(fPixelMap);
3969  fFeedbackDevCam->setAutoscaleLowerLimit((fFeedbackDevMin->minimum()+0.5*fFeedbackDevMin->singleStep()));
3970  fFeedbackDevCam->SetMin(fFeedbackDevMin->value());
3971  fFeedbackDevCam->SetMax(fFeedbackDevMax->value());
3972  fFeedbackDevCam->updateCamera();
3973 
3974  fFeedbackCmdCam->assignPixelMap(fPixelMap);
3975  fFeedbackCmdCam->setAutoscaleLowerLimit((fFeedbackCmdMin->minimum()+0.5*fFeedbackCmdMin->singleStep()));
3976  fFeedbackCmdCam->SetMin(fFeedbackCmdMin->value());
3977  fFeedbackCmdCam->SetMax(fFeedbackCmdMax->value());
3978  fFeedbackCmdCam->updateCamera();
3979 
3980  // --------------------------------------------------------------------------
3981 
3982  fBiasCamV->assignPixelMap(fPixelMap);
3983  fBiasCamV->setAutoscaleLowerLimit((fBiasVoltMin->minimum()+0.5*fBiasVoltMin->singleStep()));
3984  fBiasCamV->SetMin(fBiasVoltMin->value());
3985  fBiasCamV->SetMax(fBiasVoltMax->value());
3986  fBiasCamV->updateCamera();
3987 
3988  fBiasCamA->assignPixelMap(fPixelMap);
3989  fBiasCamA->setAutoscaleLowerLimit((fBiasCurrentMin->minimum()+0.5*fBiasCurrentMin->singleStep()));
3990  fBiasCamA->SetMin(fBiasCurrentMin->value());
3991  fBiasCamA->SetMax(fBiasCurrentMax->value());
3992  fBiasCamA->updateCamera();
3993 
3994  // --------------------------------------------------------------------------
3995 
3996  fRatesCanv->assignPixelMap(fPixelMap);
3997  fRatesCanv->setAutoscaleLowerLimit((fRatesMin->minimum()+0.5*fRatesMin->singleStep())*0.001);
3998  fRatesCanv->SetMin(fRatesMin->value());
3999  fRatesCanv->SetMax(fRatesMax->value());
4000  fRatesCanv->updateCamera();
4002 
4003  // --------------------------------------------------------------------------
4004 
4005  fRatesCanv->setTitle("Patch rates");
4006  fRatesCanv->setUnits("Hz");
4007 
4008  fBiasCamA->setTitle("BIAS current");
4009  fBiasCamA->setUnits("uA");
4010 
4011  fBiasCamV->setTitle("Applied BIAS voltage");
4012  fBiasCamV->setUnits("V");
4013 
4014  fEventCanv1->setTitle("Average (all slices)");
4015  fEventCanv2->setTitle("RMS (all slices)");
4016  fEventCanv3->setTitle("Maximum (all slices)");
4017  fEventCanv4->setTitle("Position of maximum (all slices)");
4018 
4019  fEventCanv1->setUnits("mV");
4020  fEventCanv2->setUnits("mV");
4021  fEventCanv3->setUnits("mV");
4022  fEventCanv4->setUnits("slice");
4023 
4024  // --------------------------------------------------------------------------
4025 
4026  fFeedbackDevCam->setTitle("Control deviation (Pulser amplitude voltage)");
4027  fFeedbackCmdCam->setTitle("Applied voltage change (BIAS voltage)");
4028 
4029  fFeedbackDevCam->setUnits("mV");
4030  fFeedbackCmdCam->setUnits("mV");
4031 
4032  // --------------------------------------------------------------------------
4033 
4034  QTimer::singleShot(1000, this, SLOT(slot_RootUpdate()));
4035 
4036  //widget->setMouseTracking(true);
4037  //widget->EnableSignalEvents(kMouseMoveEvent);
4038 
4039  fFtmRateCanv->setMouseTracking(true);
4040  fFtmRateCanv->EnableSignalEvents(kMouseMoveEvent);
4041 
4042  fAdcDataCanv->setMouseTracking(true);
4043  fAdcDataCanv->EnableSignalEvents(kMouseMoveEvent);
4044 
4045  fRatesCanv->setMouseTracking(true);
4046  fEventCanv1->setMouseTracking(true);
4047  fEventCanv2->setMouseTracking(true);
4048  fEventCanv3->setMouseTracking(true);
4049  fEventCanv4->setMouseTracking(true);
4050 
4051  fBiasCamV->setMouseTracking(true);
4052  fBiasCamA->setMouseTracking(true);
4053 
4054  fFeedbackDevCam->setMouseTracking(true);
4055  fFeedbackCmdCam->setMouseTracking(true);
4056 
4057  fEventCanv1->ShowPixelCursor(true);
4058  fEventCanv2->ShowPixelCursor(true);
4059  fEventCanv3->ShowPixelCursor(true);
4060  fEventCanv4->ShowPixelCursor(true);
4061 
4062  fEventCanv1->ShowPatchCursor(true);
4063  fEventCanv2->ShowPatchCursor(true);
4064  fEventCanv3->ShowPatchCursor(true);
4065  fEventCanv4->ShowPatchCursor(true);
4066 
4067  fFeedbackDevCam->ShowPixelCursor(true);
4068  fFeedbackCmdCam->ShowPixelCursor(true);
4069 
4070  fFeedbackDevCam->ShowPatchCursor(true);
4071  fFeedbackCmdCam->ShowPatchCursor(true);
4072 
4073  connect(fRatesCanv, SIGNAL(signalPixelMoveOver(int)),
4074  this, SLOT(slot_CameraMouseMove(int)));
4075  connect(fEventCanv1, SIGNAL(signalPixelMoveOver(int)),
4076  this, SLOT(slot_CameraMouseMove(int)));
4077  connect(fEventCanv2, SIGNAL(signalPixelMoveOver(int)),
4078  this, SLOT(slot_CameraMouseMove(int)));
4079  connect(fEventCanv3, SIGNAL(signalPixelMoveOver(int)),
4080  this, SLOT(slot_CameraMouseMove(int)));
4081  connect(fEventCanv4, SIGNAL(signalPixelMoveOver(int)),
4082  this, SLOT(slot_CameraMouseMove(int)));
4083 
4084  connect(fBiasCamV, SIGNAL(signalPixelMoveOver(int)),
4085  this, SLOT(slot_CameraMouseMove(int)));
4086  connect(fBiasCamA, SIGNAL(signalPixelMoveOver(int)),
4087  this, SLOT(slot_CameraMouseMove(int)));
4088 
4089  connect(fFeedbackDevCam, SIGNAL(signalPixelMoveOver(int)),
4090  this, SLOT(slot_CameraMouseMove(int)));
4091  connect(fFeedbackCmdCam, SIGNAL(signalPixelMoveOver(int)),
4092  this, SLOT(slot_CameraMouseMove(int)));
4093 
4094  connect(fRatesCanv, SIGNAL(signalPixelDoubleClick(int)),
4095  this, SLOT(slot_CameraDoubleClick(int)));
4096  connect(fRatesCanv, SIGNAL(signalCurrentPixel(int)),
4097  this, SLOT(slot_ChoosePixelThreshold(int)));
4098  connect(fBiasCamV, SIGNAL(signalCurrentPixel(int)),
4099  this, SLOT(slot_ChooseBiasChannel(int)));
4100  connect(fBiasCamA, SIGNAL(signalCurrentPixel(int)),
4101  this, SLOT(slot_ChooseBiasChannel(int)));
4102 
4103  connect(fFtmRateCanv, SIGNAL( RootEventProcessed(TObject*, unsigned int, TCanvas*)),
4104  this, SLOT (slot_RootEventProcessed(TObject*, unsigned int, TCanvas*)));
4105  connect(fAdcDataCanv, SIGNAL( RootEventProcessed(TObject*, unsigned int, TCanvas*)),
4106  this, SLOT (slot_RootEventProcessed(TObject*, unsigned int, TCanvas*)));
4107  }
static int sendCommand(const char *name, int data)
Definition: diccpp.cxx:1098
DimStampedInfo fDimFadDNA
Definition: FactGui.h:106
Set color White.
Definition: WindowLog.h:23
DimStampedInfo fDimLoggerStats
Definition: FactGui.h:84
DimStampedInfo fDimFtmStaticData
Definition: FactGui.h:93
DimStampedInfo fDimFadRawData
Definition: FactGui.h:101
TGraph fGraphPatchRate[160]
Definition: FactGui.h:3540
void slot_CameraDoubleClick(int isw)
Definition: FactGui.h:3311
DimStampedInfo fDimFadDrsCalibration
Definition: FactGui.h:112
virtual void slot_RootEventProcessed(TObject *, unsigned int, TCanvas *)=0
int i
Definition: db_dim_client.c:21
Set color Green.
Definition: WindowLog.h:18
DimStampedInfo fDimFeedbackCalibrated
Definition: FactGui.h:124
DimStampedInfo fDimBiasVolt
Definition: FactGui.h:127
char str[80]
Definition: test_client.c:7
T Get(const std::string &var)
Set color Red.
Definition: WindowLog.h:17
void slot_ChoosePixelThreshold(int isw)
Definition: FactGui.h:3303
DimStampedInfo fDimDNS
Definition: FactGui.h:82
DimStampedInfo fDimFadRunNumber
Definition: FactGui.h:105
pair< string, string > Split(const string &str) const
Definition: FactGui.h:3568
DimStampedInfo fDimFscCurrent
Definition: FactGui.h:120
std::vector< T > Vec(const std::string &var)
DimStampedInfo fDimFadFileFormat
Definition: FactGui.h:116
DimStampedInfo fDimFtmTriggerRates
Definition: FactGui.h:90
DimStampedInfo fDimBiasDac
Definition: FactGui.h:128
DimStampedInfo fDimFadStartRun
Definition: FactGui.h:98
DimStampedInfo fDimFadStatistics1
Definition: FactGui.h:114
DimStampedInfo fDimFtmFtuList
Definition: FactGui.h:92
DimStampedInfo fDimRateScan
Definition: FactGui.h:131
DimStampedInfo fDimFtmCounter
Definition: FactGui.h:95
DimStampedInfo fDimBiasNominal
Definition: FactGui.h:126
TGraph fGraphRateScan[201]
Definition: FactGui.h:2329
DimStampedInfo fDimFadWriteStats
Definition: FactGui.h:97
DimStampedInfo fDimFadConnections
Definition: FactGui.h:103
PixelMap fPixelMap
Definition: FactGui.h:73
void slot_ChooseBiasChannel(int isw)
Definition: FactGui.h:3443
DimStampedInfo fDimFscTemp
Definition: FactGui.h:118
DimStampedInfo fDimFadTemperature
Definition: FactGui.h:107
DimStampedInfo fDimFscVolt
Definition: FactGui.h:119
DimStampedInfo fDimFadRefClock
Definition: FactGui.h:109
Set color Blue.
Definition: WindowLog.h:20
bool fInChooseBiasHv
Definition: FactGui.h:79
DimStampedInfo fDimFtmError
Definition: FactGui.h:91
uint32_t fDimVersion
Definition: FactGui.h:443
EVENT * fEventData
Definition: FactGui.h:946
DimStampedInfo fDimBiasCurrent
Definition: FactGui.h:129
DimStampedInfo fDimFadEventData
Definition: FactGui.h:102
DimStampedInfo fDimFadRuns
Definition: FactGui.h:99
TGraph fGraphFtmTemp[4]
Definition: FactGui.h:3538
TGraph fGraphBoardRate[40]
Definition: FactGui.h:3541
DimStampedInfo fDimFadFwVersion
Definition: FactGui.h:104
DimStampedInfo fDimLoggerNumSubs
Definition: FactGui.h:87
valarray< int8_t > fFtuStatus
Definition: FactGui.h:71
vector< float > fDrsCalibration
Definition: FactGui.h:1337
DimStampedInfo fDimFtmDynamicData
Definition: FactGui.h:94
bool fInChoosePatchTH
Definition: FactGui.h:78
bool fInChooseBiasCam
Definition: FactGui.h:80
std::string Trim(const std::string &str)
Definition: tools.cc:68
void slot_CameraMouseMove(int isw)
Definition: FactGui.h:3319
DimStampedInfo fDimFscHumidity
Definition: FactGui.h:121
int64_t fTimeStamp0
Definition: FactGui.h:1725
uint64_t fFreeSpaceLogger
Definition: FactGui.h:493
void on_fPixelIdx_valueChanged(int isw)
Definition: FactGui.h:3336
DimStampedInfo fDimMagicWeather
Definition: FactGui.h:133
DimStampedInfo fDimLoggerFilenameRun
Definition: FactGui.h:86
DimStampedInfo fDimFadPrescaler
Definition: FactGui.h:108
TGraph fGraphFtmRate
Definition: FactGui.h:3539
DimStampedInfo fDimFadStatus
Definition: FactGui.h:113
bool Read(const std::string &fname)
Definition: PixelMap.h:56
DimStampedInfo fDimFadDac
Definition: FactGui.h:111
uint64_t fFreeSpaceData
Definition: FactGui.h:656
DimStampedInfo fDimFtmPassport
Definition: FactGui.h:89
DimStampedInfo fDimFadEvents
Definition: FactGui.h:100
DimStampedInfo fDimLoggerFilenameNight
Definition: FactGui.h:85
virtual void slot_RootUpdate()=0
DimStampedInfo fDimFadRoi
Definition: FactGui.h:110
vector< int > fPatchMapHW
Definition: FactGui.h:76

+ Here is the call graph for this function: