Ignore:
Timestamp:
06/28/04 14:21:08 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/tpoint/gui.C

    r4256 r4357  
    142142{
    143143    TString str;
    144     str.ReadLine(fin);
     144    do
     145    {
     146        str.ReadLine(fin);
     147        if (!fin)
     148            return fin;
     149    } while (str[0]=='#');
    145150
    146151    Float_t v[4];
     
    577582        gdaz.SetMinimum(-absmax1);
    578583        gdzd.SetMinimum(-absmax2);
     584        graz.SetMinimum(0);
     585        grzd.SetMinimum(0);
    579586
    580587        c1=new TCanvas("CanvGraphs", "Graphs");
     
    583590        TLine line;
    584591        line.SetLineColor(kGreen);
     592        line.SetLineWidth(2);
    585593
    586594        c1->cd(1);
     
    660668        cout << "Total Spread of Residual:" << endl;
    661669        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;
    664676        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;
    667683        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; // ±
    674685   
    675686
     
    870881    {
    871882        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));
    873884
    874885        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));
    876887
    877888        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));
    879890    }
    880891
     
    885896            gVirtualX->DeleteFont(fFont);
    886897    }
    887     MFit() : TGMainFrame(gClient->GetRoot(), 740, 370, kHorizontalFrame)
     898    MFit() : TGMainFrame(gClient->GetRoot(), 750, 370, kHorizontalFrame)
    888899    {
    889900        fCoordinates.SetOwner();
Note: See TracChangeset for help on using the changeset viewer.