29 setObjectName(
"Go4CreateNewHistogram");
33 HisName->setText(
go4sett->getHistName());
34 HisTitle->setText(
go4sett->getHistTitle());
48 int htype =
go4sett->getHistType();
50 HisTypeGrp->button(htype % 10)->setChecked(
true);
55 go4sett->getHistAxisPars(0, npoints, min, max);
56 XNoOfBins->setText(QString::number(npoints));
57 Xmin->setText(QString::number(min));
58 Xmax->setText(QString::number(max));
60 go4sett->getHistAxisPars(1, npoints, min, max);
61 YNoOfBins->setText(QString::number(npoints));
62 Ymin->setText(QString::number(min));
63 Ymax->setText(QString::number(max));
65 go4sett->getHistAxisPars(2, npoints, min, max);
66 ZNoOfBins->setText(QString::number(npoints));
67 Zmin->setText(QString::number(min));
68 Zmax->setText(QString::number(max));
90 QByteArray bname = HisName->text().toLatin1();
91 QByteArray btitle = HisTitle->text().toLatin1();
93 const char *hname = bname.constData();
94 const char *htitle = btitle.constData();
98 int nxbins = XNoOfBins->text().toInt();
99 int nybins = YNoOfBins->text().toInt();
100 int nzbins = ZNoOfBins->text().toInt();
102 double xmin = Xmin->text().toDouble();
103 double xmax = Xmax->text().toDouble();
104 double ymin = Ymin->text().toDouble();
105 double ymax = Ymax->text().toDouble();
106 double zmin = Zmin->text().toDouble();
107 double zmax = Zmax->text().toDouble();
112 go4sett->setHistAxisPars(0, nxbins, xmin, xmax);
113 go4sett->setHistAxisPars(1, nybins, ymin, ymax);
114 go4sett->setHistAxisPars(2, nzbins, zmin, zmax);
116 TDirectory *savdir = gDirectory;
120 case 11: h =
new TH1S(hname, htitle, nxbins, xmin, xmax);
break;
121 case 12: h =
new TH1D(hname, htitle, nxbins, xmin, xmax);
break;
122 case 13: h =
new TH1F(hname, htitle, nxbins, xmin, xmax);
break;
123 case 14: h =
new TH1I(hname, htitle, nxbins, xmin, xmax);
break;
124 case 15: h =
new TH1C(hname, htitle, nxbins, xmin, xmax);
break;
125 case 21: h =
new TH2S(hname, htitle, nxbins, xmin, xmax, nybins, ymin, ymax);
break;
126 case 22: h =
new TH2D(hname, htitle, nxbins, xmin, xmax, nybins, ymin, ymax);
break;
127 case 23: h =
new TH2F(hname, htitle, nxbins, xmin, xmax, nybins, ymin, ymax);
break;
128 case 24: h =
new TH2I(hname, htitle, nxbins, xmin, xmax, nybins, ymin, ymax);
break;
129 case 25: h =
new TH2C(hname, htitle, nxbins, xmin, xmax, nybins, ymin, ymax);
break;
130 case 31: h =
new TH3S(hname, htitle, nxbins, xmin, xmax, nybins, ymin, ymax, nzbins, zmin, zmax);
break;
131 case 32: h =
new TH3D(hname, htitle, nxbins, xmin, xmax, nybins, ymin, ymax, nzbins, zmin, zmax);
break;
132 case 33: h =
new TH3F(hname, htitle, nxbins, xmin, xmax, nybins, ymin, ymax, nzbins, zmin, zmax);
break;
133 case 34: h =
new TH3I(hname, htitle, nxbins, xmin, xmax, nybins, ymin, ymax, nzbins, zmin, zmax);
break;
134 case 35: h =
new TH3C(hname, htitle, nxbins, xmin, xmax, nybins, ymin, ymax, nzbins, zmin, zmax);
break;
137 if (savdir) savdir->cd();