Changeset 11764
- Timestamp:
- 08/03/11 20:16:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11759 r11764 1158 1158 1159 1159 box->SetFillStyle(0); 1160 box->SetLineColor(h.Get MarkerColor());1160 box->SetLineColor(h.GetLineColor()); 1161 1161 box->SetLineStyle(kSolid); 1162 1162 box->SetBit(kCannotPick|kNoContextMenu); … … 1166 1166 } 1167 1167 } 1168 1169 /*1170 void DrawHori(TH1 *h)1171 {1172 //Draw histogram h horizontaly with bars1173 Double_t ymin = h->GetMinimum();1174 Double_t ymax = 1.05*h->GetMaximum();1175 1176 TAxis *axis = ;1177 1178 Double_t xmin = h->GetXaxis()->GetXmin();1179 Double_t xmax = h->GetXaxis()->GetXmax();1180 1181 Int_t nbins = h->GetXaxis()->GetNbins();1182 1183 //TH2F *h2 = new TH2F("h2",h->GetTitle(),10,ymin,ymax,nbins,xmin,xmax);1184 //h2->SetBit(kCanDelete);1185 //h2->SetDirectory(0);1186 //h2->SetStats(0);1187 //h2->Draw();1188 TBox box;1189 //Int_t color = h->GetFillColor();1190 //if (color == 0) color = 1;1191 box.SetFillColor(color);1192 Double_t dy;1193 Double_t x1,y1,x2,y2;1194 for (Int_t i=1;i<=nbins;i++)1195 {1196 dy = axis->GetBinWidth(i);1197 1198 x1 = 0;1199 x2 = h->GetBinContent(i);1200 1201 y1 = h->GetBinCenter(i)-0.3*dy;1202 y2 = h->GetBinCenter(i)+0.3*dy;1203 1204 box.DrawBox(x1,y1,x2,y2);1205 }1206 }*/1207 1168 1208 1169 void DisplayEventData() … … 1388 1349 h1.SetDirectory(0); 1389 1350 h2.SetDirectory(0); 1351 hd.SetLineColor(h->GetLineColor()); 1352 h0.SetLineColor(d0->GetLineColor()); 1353 h1.SetLineColor(d1->GetLineColor()); 1354 h2.SetLineColor(d2->GetLineColor()); 1390 1355 1391 1356 for (int i=0; i<fEventData->Roi; i++) … … 1412 1377 1413 1378 const double l = h->GetBinLowEdge(h->GetXaxis()->GetLast()+1); 1414 const double m = c->GetX2(); // X2()-X1()1379 const double m = c->GetX2(); 1415 1380 1416 1381 const double scale = 0.9*(m-l)/mm; … … 1422 1387 DrawHorizontal(hf, l, h0, scale); 1423 1388 DrawHorizontal(hf, l, hd, scale); 1424 // DrawHorizontal(hf, l, &h1);1425 // DrawHorizontal(hf, l, &h2);1426 1389 1427 1390 // ----------------------------------------------------------- … … 1466 1429 return; 1467 1430 1468 static int i=0;1469 if ( i++%10>0)1431 static int cnt=0; 1432 if (cnt++%10>0) 1470 1433 return; 1471 1434 … … 1527 1490 fDrsRuns[1] = run[1]; 1528 1491 fDrsRuns[2] = run[2]; 1529 1530 cout << "Received: " << run[0] << " " << run[1] << " " << run[2] << endl;1531 1492 1532 1493 const float *dat = d.ptr<float>(sizeof(uint32_t)*3);
Note:
See TracChangeset
for help on using the changeset viewer.