Changeset 8011 for trunk/MagicSoft/Mars/callisto.cc
- Timestamp:
- 10/07/06 14:57:12 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/callisto.cc
r7989 r8011 33 33 gLog << " Callisto - MARS V" << MARSVER << endl; 34 34 gLog << " MARS -- CALibrate LIght Signals and Time Offsets" << endl; 35 gLog << " Compiled with ROOT v" << ROOT VER<< " on <" << __DATE__ << ">" << endl;35 gLog << " Compiled with ROOT v" << ROOT_RELEASE << " on <" << __DATE__ << ">" << endl; 36 36 gLog << "========================================================" << endl; 37 37 gLog << endl; … … 142 142 int main(int argc, char **argv) 143 143 { 144 if (!MARS::CheckRootVer()) 145 return 0xff; 146 144 147 // 145 148 // Evaluate arguments … … 198 201 kModeC = kTRUE; 199 202 203 // 204 // check for the right usage of the program 205 // 206 if (arg.GetNumArguments()!=1) 207 { 208 Usage(); 209 return 2; 210 } 211 212 if (arg.GetNumOptions()>0) 213 { 214 gLog << warn << "WARNING - Unknown commandline options..." << endl; 215 arg.Print("options"); 216 gLog << endl; 217 return 2; 218 } 219 200 220 if (!kModeC && !kModeY /*&& !kUseTest*/) 201 221 { 202 gLog << err << "Neither calibration (-c) nor signal extraction (-y) or test-mode (--use-test) specified!" << endl; 222 gLog << err << "Neither calibration (-c), signal extraction (-y) or test-mode (--use-test)" << endl; 223 gLog << "specified! You can also give the operation mode by the options defining the" << endl; 224 gLog << "output path --outc, --outy or --out." << endl; 203 225 Usage(); 204 226 return 2; … … 228 250 if (kModeC && kModeY) 229 251 kInpathY = kOutpathC; 230 231 if (arg.GetNumOptions()>0)232 {233 gLog << warn << "WARNING - Unknown commandline options..." << endl;234 arg.Print("options");235 gLog << endl;236 return 2;237 }238 239 //240 // check for the right usage of the program241 //242 if (arg.GetNumArguments()!=1)243 {244 Usage();245 return 2;246 }247 252 248 253 //
Note:
See TracChangeset
for help on using the changeset viewer.