- Timestamp:
- 06/18/08 13:06:48 (17 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r8971 r8973 1 1 -*-*- 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 2 9 3 10 2008/06/17 Thomas Bretz -
trunk/MagicSoft/Cosy/telesto.cc
r8823 r8973 45 45 gLog << all << endl; 46 46 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; 48 48 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; 51 51 gLog << " Root Options:" << endl; 52 52 gLog << " -b Batch mode (no graphical output to screen)" << endl<<endl; … … 61 61 gLog << " (Note, that this option can be used multiple times." << endl; 62 62 gLog << endl; 63 // gLog << " Input Options:" << endl;64 // gLog << " -mc You must use this for MC files (PRELIMINARY)" << endl << endl;65 63 gLog << " Output options:" << endl; 66 64 // gLog << " -q Quit when job is finished" << endl; 67 65 // 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;78 66 gLog << endl; 79 67 gLog << " --version, -V Show startup message with version number" << endl; … … 123 111 // check for the right usage of the program (number of arguments) 124 112 // 125 if (arg.GetNumArguments()> 1)113 if (arg.GetNumArguments()>2) 126 114 { 127 115 gLog << warn << "WARNING - Wrong number of arguments..." << endl; … … 131 119 132 120 TString fname=arg.GetArgumentStr(0); 121 TString mod =arg.GetArgumentStr(1); 133 122 134 123 // … … 156 145 TObject::SetObjectStat(kTRUE); 157 146 158 TPointGui *gui = new TPointGui(fname .IsNull()?0:(const char*)fname);147 TPointGui *gui = new TPointGui(fname, mod); 159 148 gui->SetExitLoopOnClose(); 160 149 -
trunk/MagicSoft/Cosy/tpoint/TPointGui.cc
r8971 r8973 33 33 using namespace std; 34 34 35 TPointGui::TPointGui(const char *fname ) : TGMainFrame(gClient->GetRoot(), 750, 435, kHorizontalFrame), fExitLoopOnClose(kFALSE),35 TPointGui::TPointGui(const char *fname, const char *mod) : TGMainFrame(gClient->GetRoot(), 750, 435, kHorizontalFrame), fExitLoopOnClose(kFALSE), 36 36 fAzMin(-180), fAzMax(180), fZdMin(0), fZdMax(90), fLimit(0.05) 37 37 { … … 274 274 MapWindow(); 275 275 276 if ( fname)276 if (!TString(fname).IsNull()) 277 277 LoadStars(fname); 278 if (!TString(mod).IsNull()) 279 fBending.Load(mod); 278 280 279 281 DisplayBending(); … … 310 312 311 313 Double_t err = 0.01; // [deg] = 0.25SE 312 Double_t res = set.GetResidual(); 314 Double_t res = set.GetResidual();//(&err); 313 315 res /= err; 316 317 cout << err << endl; 314 318 315 319 f += res*res; -
trunk/MagicSoft/Cosy/tpoint/TPointGui.h
r8971 r8973 86 86 87 87 public: 88 TPointGui(const char *fname=NULL );88 TPointGui(const char *fname=NULL, const char *mod=NULL); 89 89 ~TPointGui(); 90 90
Note:
See TracChangeset
for help on using the changeset viewer.