31 DrawStatboxButton->setChecked(showstat);
32 OptStatGroupBox->setEnabled(showstat);
40 StatWidthBox->setValue(
fStatW);
41 StatHeightBox->setValue(
fStatH);
45 bool k= (optstats/100000000)%10 ;
46 bool s=(optstats/10000000)%10;
47 bool i=(optstats/1000000)%10;
48 bool o=(optstats/100000)%10;
49 bool u=(optstats/10000)%10;
50 bool r=(optstats/1000)%10;
51 bool m=(optstats/100)%10;
52 bool e=(optstats/10)%10;
53 bool n=(optstats/1)%10;
55 DrawNameButton->setChecked(n);
56 DrawEntriesButton->setChecked(e);
57 DrawIntegralButton->setChecked(i);
58 DrawRMSButton->setChecked(r);
59 DrawMeanButton->setChecked(m);
60 DrawCurtosisButton->setChecked(k);
61 DrawUnderflowButton->setChecked(u);
62 DrawOverflowButton->setChecked(o);
63 DrawSkewnessButton->setChecked(s);
71 bool drawbox=DrawStatboxButton->isChecked();
72 bool drawerrors=DrawErrorsButton->isChecked();
73 int leader=1000000000;
74 bool k=DrawCurtosisButton->isChecked();
75 int kurt=100000000* (int) k;
76 if(drawerrors) kurt*=2;
77 bool s=DrawSkewnessButton->isChecked();
78 int skew=10000000* (int) s;
79 if(drawerrors) skew*=2;
80 bool i=DrawIntegralButton->isChecked();
81 int integ=1000000* (int) i;
82 bool o=DrawOverflowButton->isChecked();
83 int over=100000* (int) o;
84 bool u=DrawUnderflowButton->isChecked();
85 int under=10000* (int) u;
86 bool r=DrawRMSButton->isChecked();
87 int rms=1000* (int) r;
88 if(drawerrors) rms*=2;
89 bool m=DrawMeanButton->isChecked();
90 int mean=100* (int) m;
91 if(drawerrors) mean*=2;
92 bool e=DrawEntriesButton->isChecked();
94 bool n=DrawNameButton->isChecked();
96 int optstats=leader+kurt+skew+integ+over+under+rms+mean+ent+nm;
102 if (TMath::Abs(
fStatW-StatWidthBox->value())>0.005)
105 if (TMath::Abs(
fStatH-StatHeightBox->value())>0.005)
TGo4OptStatsSettings(QWidget *parent=0)
void setStatBoxErrors(bool on=true)
void setOptStat(int value)
void setOptStatW(int value)
void setOptStatH(int value)
void setStatBoxVisible(bool on=true)