Changeset 8973 for trunk


Ignore:
Timestamp:
06/18/08 13:06:48 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/Changelog

    r8971 r8973  
    11                                                                  -*-*- END -*-*-
     2
     3 2008/06/18 Thomas Bretz
     4
     5  * telesto.cc, tpoint/TPointGui.[h,cc]:
     6     - added option to start with a pointing model
     7
     8
    29
    310 2008/06/17 Thomas Bretz
  • trunk/MagicSoft/Cosy/telesto.cc

    r8823 r8973  
    4545    gLog << all << endl;
    4646    gLog << "Sorry the usage is:" << endl;
    47     gLog << " telestop [file.txt|file.col]" << endl << endl;
     47    gLog << " telestop [file.txt|file.col [pointing.mod]]" << endl << endl;
    4848    gLog << " Arguments:" << endl;
    49     gLog << "   n/a" << endl;
    50     gLog << "                             For more details see MSequence" << endl;
     49    gLog << "   file.txt|file.col         A collection of files or a file with tpoints" << endl;
     50    gLog << "   pointing.mod              A pointing model to load at startup" << endl << endl;
    5151    gLog << " Root Options:" << endl;
    5252    gLog << "   -b                        Batch mode (no graphical output to screen)" << endl<<endl;
     
    6161    gLog << "                             (Note, that this option can be used multiple times." << endl;
    6262    gLog << endl;
    63 //    gLog << " Input Options:" << endl;
    64 //    gLog << "   -mc                       You must use this for MC files (PRELIMINARY)" << endl << endl;
    6563    gLog << " Output options:" << endl;
    6664//    gLog << "   -q                        Quit when job is finished" << endl;
    6765//    gLog << "   -f                        Force overwrite of existing files" << endl;
    68 //    gLog << "   -ff                       Force execution if not all files found" << endl;
    69 //    gLog << "   --ind=path                Path where to search for the calibrated data (Y)" << endl;
    70 //    gLog << "                             [default=standard path in datacenter]" << endl;
    71 //    gLog << "   --out=path                Path to write the all results to [def=local path]" << endl;
    72 //    gLog << "                             (overwrites --outc and --outy)" << endl;
    73 //    gLog << "   --no-muons                Switch off Muon analysis (for fast tests)" << endl;
    74 //    gLog << "   --print-seq               Print Sequence information" << endl;
    75 //    gLog << "   --print-files             Print Files taken from Sequence" << endl;
    76 //    gLog << "   --print-found             Print Files found from Sequence" << endl;
    77 //    gLog << "   --config=star.rc          Resource file [default=star.rc]" << endl;
    7866    gLog << endl;
    7967    gLog << "   --version, -V             Show startup message with version number" << endl;
     
    123111    // check for the right usage of the program (number of arguments)
    124112    //
    125     if (arg.GetNumArguments()>1)
     113    if (arg.GetNumArguments()>2)
    126114    {
    127115        gLog << warn << "WARNING - Wrong number of arguments..." << endl;
     
    131119
    132120    TString fname=arg.GetArgumentStr(0);
     121    TString mod  =arg.GetArgumentStr(1);
    133122
    134123    //
     
    156145        TObject::SetObjectStat(kTRUE);
    157146
    158     TPointGui *gui = new TPointGui(fname.IsNull()?0:(const char*)fname);
     147    TPointGui *gui = new TPointGui(fname, mod);
    159148    gui->SetExitLoopOnClose();
    160149
  • trunk/MagicSoft/Cosy/tpoint/TPointGui.cc

    r8971 r8973  
    3333using namespace std;
    3434
    35 TPointGui::TPointGui(const char *fname) : TGMainFrame(gClient->GetRoot(), 750, 435, kHorizontalFrame), fExitLoopOnClose(kFALSE),
     35TPointGui::TPointGui(const char *fname, const char *mod) : TGMainFrame(gClient->GetRoot(), 750, 435, kHorizontalFrame), fExitLoopOnClose(kFALSE),
    3636   fAzMin(-180), fAzMax(180), fZdMin(0), fZdMax(90), fLimit(0.05)
    3737{
     
    274274    MapWindow();
    275275
    276     if (fname)
     276    if (!TString(fname).IsNull())
    277277        LoadStars(fname);
     278    if (!TString(mod).IsNull())
     279        fBending.Load(mod);
    278280
    279281    DisplayBending();
     
    310312
    311313        Double_t err = 0.01; // [deg] = 0.25SE
    312         Double_t res = set.GetResidual(); //(&err);
     314        Double_t res = set.GetResidual();//(&err);
    313315        res /= err;
     316
     317        cout << err << endl;
    314318
    315319        f += res*res;
  • trunk/MagicSoft/Cosy/tpoint/TPointGui.h

    r8971 r8973  
    8686
    8787public:
    88     TPointGui(const char *fname=NULL);
     88    TPointGui(const char *fname=NULL, const char *mod=NULL);
    8989    ~TPointGui();
    9090
Note: See TracChangeset for help on using the changeset viewer.