Changeset 11066
- Timestamp:
- 06/18/11 18:23:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11054 r11066 986 986 } 987 987 } 988 989 /* 990 TCanvas *c = fAdcDataCanv->GetCanvas(); 991 992 TH1D *hist = c->FindObject("Hist"); 993 if (hist && hist->GetNbinsX()!=...) 994 { 995 delete hist; 996 hist = 0; 997 998 } 999 if (!hist) 1000 { 1001 hist = new TH1D("Hist", "", n, -0.5, n-0.5); 1002 hist->SetStats(kFALSE); 1003 hist->SetDirectory(0); 1004 //hist->SetBit(TH1::kNoTitle); 1005 hist->SetBit(kCanDelete); 1006 hist->SetMarkerStyle(kFullDotMedium); 1007 hist->SetYTitle("Voltage [mV]"); 1008 hist->GetXaxis()->CenterTitle(); 1009 hist->GetYaxis()->CenterTitle(); 1010 hist->SetMinimum(-1025); 1011 hist->SetMaximum(1025); 1012 hist->Draw("P"); 1013 } 1014 1015 ostringstream str; 1016 str << "ADC Pipeline (start=" << startbin << ")"; 1017 hist->SetXTitle(str.str().c_str()); 1018 1019 str.str(""); 1020 str << "Crate=" << crate << " Board=" << board << " Channel=" << channel << " [" << d.time() << "]" << endl; 1021 hist->SetTitle(str.str().c_str()); 1022 1023 for (int i=0; i<n; i++) 1024 hist->SetBinContent(i+1, value[i]-1024); 1025 1026 c->Modified(); 1027 c->Update(); 1028 */ 988 1029 989 1030 // ===================== FTM ============================================ … … 2364 2405 ChoosePixel(*cam, 0); 2365 2406 2407 // -------------------------------------------------------------------------- 2408 2409 c = fAdcDataCanv->GetCanvas(); 2410 c->SetBit(TCanvas::kNoContextMenu); 2411 c->SetBorderMode(0); 2412 c->SetFrameBorderMode(0); 2413 c->SetFillColor(kWhite); 2414 c->SetGrid(); 2415 c->cd(); 2416 2417 // Create histogram? 2418 2419 // -------------------------------------------------------------------------- 2420 2366 2421 // QTimer::singleShot(0, this, SLOT(slot_RootUpdate())); 2367 2422 … … 2371 2426 fFtmRateCanv->setMouseTracking(true); 2372 2427 fFtmRateCanv->EnableSignalEvents(kMouseMoveEvent); 2428 2429 fAdcDataCanv->setMouseTracking(true); 2430 fAdcDataCanv->EnableSignalEvents(kMouseMoveEvent); 2373 2431 2374 2432 fRatesCanv->setMouseTracking(true); … … 2379 2437 connect(fFtmRateCanv, SIGNAL( RootEventProcessed(TObject*, unsigned int, TCanvas*)), 2380 2438 this, SLOT (slot_RootEventProcessed(TObject*, unsigned int, TCanvas*))); 2439 connect(fAdcDataCanv, SIGNAL( RootEventProcessed(TObject*, unsigned int, TCanvas*)), 2440 this, SLOT (slot_RootEventProcessed(TObject*, unsigned int, TCanvas*))); 2381 2441 #endif 2382 2442 }
Note:
See TracChangeset
for help on using the changeset viewer.