Changeset 4357
- Timestamp:
- 06/28/04 14:21:08 (21 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r4255 r4357 1 1 -*-*- END -*-*- 2 3 2004/06/28 - Thomas Bretz 4 5 * caos/Ring.[h,cc]: 6 - added magnitude fMag 7 - added interpolation of magnitude 8 9 * main/MStarguider.cc: 10 - added output of magnitudes 11 12 * tpoint/gui.C: 13 - implemented comment lines 14 - changed layout of output 15 16 2 17 3 18 2004/06/01 - Thomas Bretz … … 39 54 40 55 * bending_magic.txt: 41 - last calculated pointing model (stil has the hysteresis56 - last calculated pointing model (still has the hysteresis 42 57 problem) 43 58 -
trunk/MagicSoft/Cosy/caos/Ring.cc
r4107 r4357 62 62 fR = hypot(fX-leds(i).GetX(), fY-leds(i).GetY()); 63 63 64 fMag = (leds(i).GetMag() + leds(j).GetMag() + leds(k).GetMag())/3; 65 64 66 return kTRUE; 65 67 } … … 77 79 fDr=0; 78 80 81 fMag=0; 82 79 83 if (n<1) 80 84 return; … … 84 88 const Ring &ring = rings(i); 85 89 86 fX += ring.GetX(); 87 fY += ring.GetY(); 88 fR += ring.GetR(); 90 fX + = ring.GetX(); 91 fY += ring.GetY(); 92 fR += ring.GetR(); 93 fMag += ring.GetMag(); 89 94 } 90 95 91 fX /= n; 92 fY /= n; 93 fR /= n; 96 fX /= n; 97 fY /= n; 98 fR /= n; 99 fMag /= n; 94 100 95 101 if (n<2) -
trunk/MagicSoft/Cosy/caos/Ring.h
r4107 r4357 22 22 Double_t fDphi; 23 23 24 Double_t fMag; 25 24 26 Double_t sqr(Double_t x) { return x*x; } 25 27 … … 39 41 Double_t GetPhi() const { return fPhi; } 40 42 43 Double_t GetMag() const { return fMag; } 44 41 45 bool CalcCenter(const Leds &leds, Int_t i, Int_t j, Int_t k); 42 46 void InterpolCenters(const Rings &rings); -
trunk/MagicSoft/Cosy/main/MStarguider.cc
r4256 r4357 904 904 // Check wheter star found 905 905 Led *star = (Led*)leds.At(0); 906 if (!star )906 if (!star || leds.GetEntries()<1) 907 907 return; 908 908 … … 993 993 *fOutTp << " " << -dzd << " " << -daz; 994 994 *fOutTp << " " << setprecision(11) << t.GetMjd(); 995 *fOutTp << " " << setprecision(4) << center.GetMag(); 996 *fOutTp << " " << star->GetMag(); 995 997 *fOutTp << endl; 996 998 -
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.