Changeset 4357 for trunk/MagicSoft/Cosy/tpoint
- Timestamp:
- 06/28/04 14:21:08 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/tpoint/gui.C
r4256 r4357 142 142 { 143 143 TString str; 144 str.ReadLine(fin); 144 do 145 { 146 str.ReadLine(fin); 147 if (!fin) 148 return fin; 149 } while (str[0]=='#'); 145 150 146 151 Float_t v[4]; … … 577 582 gdaz.SetMinimum(-absmax1); 578 583 gdzd.SetMinimum(-absmax2); 584 graz.SetMinimum(0); 585 grzd.SetMinimum(0); 579 586 580 587 c1=new TCanvas("CanvGraphs", "Graphs"); … … 583 590 TLine line; 584 591 line.SetLineColor(kGreen); 592 line.SetLineWidth(2); 585 593 586 594 c1->cd(1); … … 660 668 cout << "Total Spread of Residual:" << endl; 661 669 cout << "-------------------------" << endl; 662 cout << "before: " << hres1.GetMean() << " \xb1 " << hres1.GetRMS() << " deg " << endl; 663 cout << "after: " << hres2.GetMean() << " \xb1 " << hres2.GetRMS() << " deg " << endl; 670 cout << "before: " << Form("%6.4f", hres1.GetMean()) << " \xb1 " << Form("%6.4f", hres1.GetRMS()) << " deg \t"; 671 cout << "before: " << Form("%4.1f", hres1.GetMean()*60) << " \xb1 " << Form("%.1f", hres1.GetRMS()*60) << " arcmin" << endl; 672 cout << "after: " << Form("%6.4f", hres2.GetMean()) << " \xb1 " << Form("%6.4f", hres2.GetRMS()) << " deg \t"; 673 cout << "after: " << Form("%4.1f", hres2.GetMean()*60) << " \xb1 " << Form("%.1f", hres2.GetRMS()*60) << " arcmin" << endl; 674 cout << "backw: " << Form("%6.4f", hres3.GetMean()) << " \xb1 " << Form("%6.4f", hres3.GetRMS()) << " deg \t"; 675 cout << "backw: " << Form("%4.1f", hres3.GetMean()*60) << " \xb1 " << Form("%.1f", hres3.GetRMS()*60) << " arcmin" << endl; 664 676 cout << endl; 665 cout << "before: " << Form("%.1f", hres1.GetMean()*60) << " \xb1 " << Form("%.1f", hres1.GetRMS()*60) << " arcmin" << endl; 666 cout << "after: " << Form("%.1f", hres2.GetMean()*60) << " \xb1 " << Form("%.1f", hres2.GetRMS()*60) << " arcmin" << endl; 677 cout << "before: " << Form("%4.1f", hres1.GetMean()*16348/360) << " \xb1 " << Form("%.1f", hres1.GetRMS()*16384/360) << " SE \t\t"; 678 cout << "before: " << Form("%4.1f", hres1.GetMean()*60*60/23.4) << " \xb1 " << Form("%.1f", hres1.GetRMS()*60*60/23.4) << " pix" << endl; 679 cout << "after: " << Form("%4.1f", hres2.GetMean()*16384/360) << " \xb1 " << Form("%.1f", hres2.GetRMS()*16384/360) << " SE \t\t"; 680 cout << "after: " << Form("%4.1f", hres2.GetMean()*60*60/23.4) << " \xb1 " << Form("%.1f", hres2.GetRMS()*60*60/23.4) << " pix" << endl; 681 cout << "backw: " << Form("%4.1f", hres3.GetMean()*16384/360) << " \xb1 " << Form("%.1f", hres3.GetRMS()*16384/360) << " SE \t\t"; 682 cout << "backw: " << Form("%4.1f", hres3.GetMean()*60*60/23.4) << " \xb1 " << Form("%.1f", hres3.GetRMS()*60*60/23.4) << " pix" << endl; 667 683 cout << endl; 668 cout << "before: " << Form("%.1f", hres1.GetMean()*60*60/23.4) << " \xb1 " << Form("%.1f", hres1.GetRMS()*60*60/23.4) << " pix" << endl; 669 cout << "after: " << Form("%.1f", hres2.GetMean()*60*60/23.4) << " \xb1 " << Form("%.1f", hres2.GetRMS()*60*60/23.4) << " pix" << endl; 670 cout << "after: " << Form("%.1f", hres2.GetMean()*16384/360) << " \xb1 " << Form("%.1f", hres2.GetRMS()*16384/360) << " SE" << endl; 671 cout << endl; 672 cout << "backw: " << Form("%.1f", hres3.GetMean()*60) << " \xb1 " << Form("%.1f", hres3.GetRMS()*60) << " arcmin" << endl; 673 cout << endl; // ± 684 cout << endl; // ± 674 685 675 686 … … 870 881 { 871 882 TGLabel *l1 = (TGLabel*)fLabel.At(3*MBending::GetNumPar()+1); 872 l1->SetText(Form("Before: %.1f +- %.1f SE", before ));883 l1->SetText(Form("Before: %.1f +- %.1f SE", before, 0)); 873 884 874 885 TGLabel *l2 = (TGLabel*)fLabel.At(3*MBending::GetNumPar()+2); 875 l2->SetText(Form("After: %.1f +- %.1f SE", after ));886 l2->SetText(Form("After: %.1f +- %.1f SE", after, 0)); 876 887 877 888 TGLabel *l3 = (TGLabel*)fLabel.At(3*MBending::GetNumPar()+3); 878 l3->SetText(Form("Backw: %.1f +- %.1f SE", backw ));889 l3->SetText(Form("Backw: %.1f +- %.1f SE", backw, 0)); 879 890 } 880 891 … … 885 896 gVirtualX->DeleteFont(fFont); 886 897 } 887 MFit() : TGMainFrame(gClient->GetRoot(), 7 40, 370, kHorizontalFrame)898 MFit() : TGMainFrame(gClient->GetRoot(), 750, 370, kHorizontalFrame) 888 899 { 889 900 fCoordinates.SetOwner();
Note:
See TracChangeset
for help on using the changeset viewer.