Changeset 12078 for trunk/FACT++
- Timestamp:
- 09/12/11 20:05:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r12076 r12078 2750 2750 fStatusFeedbackLabel->setText(s.name.c_str()); 2751 2751 fStatusFeedbackLabel->setToolTip(s.comment.c_str()); 2752 2753 cout << s.index << endl;2754 2752 2755 2753 if (s.index==5) // Running … … 3868 3866 // -------------------------------------------------------------------------- 3869 3867 3870 fGraphFtmRate.SetMarkerStyle(kFullDotSmall); 3871 fGraphFtmRate.Draw("LP"); 3872 3873 fGraphFtmRate.SetLineColor(kBlue); 3874 fGraphFtmRate.SetMarkerColor(kBlue); 3875 fGraphFtmRate.SetMarkerStyle(kFullDotMedium); 3868 c = fFtmRateCanv->GetCanvas(); 3869 //c->SetBit(TCanvas::kNoContextMenu); 3870 c->SetBorderMode(0); 3871 c->SetFrameBorderMode(0); 3872 c->SetFillColor(kWhite); 3873 c->SetRightMargin(0.03); 3874 c->SetTopMargin(0.03); 3875 c->SetGrid(); 3876 c->cd(); 3877 3878 hf = DrawTimeFrame("Trigger rate [Hz]"); 3879 hf->GetYaxis()->SetRangeUser(0, 1010); 3876 3880 3877 3881 for (int i=0; i<160; i++) … … 3889 3893 fGraphBoardRate[i].SetMarkerStyle(kFullDotMedium); 3890 3894 } 3895 3896 fGraphFtmRate.SetLineColor(kBlue); 3897 fGraphFtmRate.SetMarkerColor(kBlue); 3898 fGraphFtmRate.SetMarkerStyle(kFullDotSmall); 3899 fGraphFtmRate.Draw("LP"); 3900 3891 3901 /* 3892 3902 TCanvas *c = fFtmTempCanv->GetCanvas(); … … 3921 3931 // -------------------------------------------------------------------------- 3922 3932 3923 c = fFtmRateCanv->GetCanvas();3924 //c->SetBit(TCanvas::kNoContextMenu);3925 c->SetBorderMode(0);3926 c->SetFrameBorderMode(0);3927 c->SetFillColor(kWhite);3928 c->SetRightMargin(0.03);3929 c->SetTopMargin(0.03);3930 c->SetGrid();3931 c->cd();3932 3933 hf = DrawTimeFrame("Trigger rate [Hz]");3934 hf->GetYaxis()->SetRangeUser(0, 1010);3935 3936 fGraphFtmRate.SetMarkerStyle(kFullDotSmall);3937 fGraphFtmRate.Draw("LP");3938 3939 // --------------------------------------------------------------------------3940 fFeedbackDevCam->setAutoscaleLowerLimit((fFeedbackDevMin->minimum()+0.5*fFeedbackDevMin->singleStep())*0.001);3941 fFeedbackDevCam->SetMin(fFeedbackDevMin->value()*0.001);3942 fFeedbackDevCam->SetMax(fFeedbackDevMax->value()*0.001);3943 fFeedbackDevCam->updateCamera();3944 3945 fFeedbackDevCam->setAutoscaleLowerLimit((fFeedbackCmdMin->minimum()+0.5*fFeedbackCmdMin->singleStep())*0.001);3946 fFeedbackCmdCam->SetMin(fFeedbackCmdMin->value()*0.001);3947 fFeedbackCmdCam->SetMax(fFeedbackCmdMax->value()*0.001);3948 fFeedbackCmdCam->updateCamera();3949 3950 // --------------------------------------------------------------------------3951 3952 fBiasCamV->setAutoscaleLowerLimit((fBiasVoltMin->minimum()+0.5*fBiasVoltMin->singleStep())*0.001);3953 fBiasCamV->SetMin(fBiasVoltMin->value());3954 fBiasCamV->SetMax(fBiasVoltMax->value());3955 fBiasCamV->updateCamera();3956 3957 fBiasCamA->setAutoscaleLowerLimit((fBiasCurrentMin->minimum()+0.5*fBiasCurrentMin->singleStep())*0.001);3958 fBiasCamA->SetMin(fBiasCurrentMin->value());3959 fBiasCamA->SetMax(fBiasCurrentMax->value());3960 fBiasCamA->updateCamera();3961 3962 // --------------------------------------------------------------------------3963 3964 fRatesCanv->setAutoscaleLowerLimit((fRatesMin->minimum()+0.5*fRatesMin->singleStep())*0.001);3965 fRatesCanv->SetMin(fRatesMin->value());3966 fRatesCanv->SetMax(fRatesMax->value());3967 fRatesCanv->updateCamera();3968 on_fPixelIdx_valueChanged(0);3969 3970 // --------------------------------------------------------------------------3971 3972 3933 c = fAdcDataCanv->GetCanvas(); 3973 3934 //c->SetBit(TCanvas::kNoContextMenu); … … 3977 3938 c->SetRightMargin(0.10); 3978 3939 c->SetGrid(); 3979 c->cd(); 3980 3981 // Create histogram? 3940 //c->cd(); 3941 #endif 3942 3943 // -------------------------------------------------------------------------- 3944 fFeedbackDevCam->setAutoscaleLowerLimit((fFeedbackDevMin->minimum()+0.5*fFeedbackDevMin->singleStep())*0.001); 3945 fFeedbackDevCam->SetMin(fFeedbackDevMin->value()*0.001); 3946 fFeedbackDevCam->SetMax(fFeedbackDevMax->value()*0.001); 3947 fFeedbackDevCam->updateCamera(); 3948 3949 fFeedbackDevCam->setAutoscaleLowerLimit((fFeedbackCmdMin->minimum()+0.5*fFeedbackCmdMin->singleStep())*0.001); 3950 fFeedbackCmdCam->SetMin(fFeedbackCmdMin->value()*0.001); 3951 fFeedbackCmdCam->SetMax(fFeedbackCmdMax->value()*0.001); 3952 fFeedbackCmdCam->updateCamera(); 3953 3954 // -------------------------------------------------------------------------- 3955 3956 fBiasCamV->setAutoscaleLowerLimit((fBiasVoltMin->minimum()+0.5*fBiasVoltMin->singleStep())*0.001); 3957 fBiasCamV->SetMin(fBiasVoltMin->value()); 3958 fBiasCamV->SetMax(fBiasVoltMax->value()); 3959 fBiasCamV->updateCamera(); 3960 3961 fBiasCamA->setAutoscaleLowerLimit((fBiasCurrentMin->minimum()+0.5*fBiasCurrentMin->singleStep())*0.001); 3962 fBiasCamA->SetMin(fBiasCurrentMin->value()); 3963 fBiasCamA->SetMax(fBiasCurrentMax->value()); 3964 fBiasCamA->updateCamera(); 3965 3966 // -------------------------------------------------------------------------- 3967 3968 fRatesCanv->setAutoscaleLowerLimit((fRatesMin->minimum()+0.5*fRatesMin->singleStep())*0.001); 3969 fRatesCanv->SetMin(fRatesMin->value()); 3970 fRatesCanv->SetMax(fRatesMax->value()); 3971 fRatesCanv->updateCamera(); 3972 on_fPixelIdx_valueChanged(0); 3982 3973 3983 3974 // -------------------------------------------------------------------------- … … 4048 4039 connect(fAdcDataCanv, SIGNAL( RootEventProcessed(TObject*, unsigned int, TCanvas*)), 4049 4040 this, SLOT (slot_RootEventProcessed(TObject*, unsigned int, TCanvas*))); 4050 #endif4051 4041 } 4052 4042
Note:
See TracChangeset
for help on using the changeset viewer.