Changeset 8142 for trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc
- Timestamp:
- 10/20/06 19:50:35 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc
r8015 r8142 43 43 // + Byte_t fCheckFlags; // Bit-field to hold the possible check flags 44 44 // 45 // ClassVersionb 3: 46 // - TString fOutputPath; // Path to the output file 47 // - TString fOutputFile; // Name of the output file 48 // 45 49 // 46 50 // Input Containers: … … 89 93 // Initializes: 90 94 // - fRelTimeResolutionLimit to fgRelTimeResolutionimit 91 // - fOutputPath to "."92 // - fOutputFile to "TimeCalibStat.txt"93 95 // 94 96 // Calls: … … 108 110 109 111 SetRelTimeResolutionLimit(); 110 SetOutputPath();111 SetOutputFile("");112 112 113 113 Clear(); … … 249 249 250 250 // 251 // Re-direct the output to an ascii-file from now on:252 //253 MLog *asciilog = fOutputFile.IsNull() ? 0 : new MLog;254 if (asciilog)255 {256 asciilog->SetOutputFile(GetOutputFile(),kTRUE);257 SetLogStream(asciilog);258 }259 260 //261 251 // Finalize calibration statistics 262 252 // … … 282 272 PrintUncalibrated(MBadPixelsPix::kRelTimeNotFitted, 283 273 "Pixels with unsuccesful Gauss fit to the times:"); 284 285 if (asciilog)286 {287 SetLogStream(&gLog);288 delete asciilog;289 }290 274 291 275 return kTRUE; … … 534 518 // -------------------------------------------------------------------------- 535 519 // 536 // Set the path for output file537 //538 void MCalibrationRelTimeCalc::SetOutputPath(TString path)539 {540 fOutputPath = path;541 if (fOutputPath.EndsWith("/"))542 fOutputPath = fOutputPath(0, fOutputPath.Length()-1);543 }544 545 // --------------------------------------------------------------------------546 //547 // Get the output file548 //549 const char* MCalibrationRelTimeCalc::GetOutputFile()550 {551 return Form("%s/%s", (const char*)fOutputPath, (const char*)fOutputFile);552 }553 554 555 // --------------------------------------------------------------------------556 //557 520 // MCalibrationRelTimeCam.CheckFitResults: Yes 558 521 // MCalibrationRelTimeCam.CheckDeviatingBehavior: Yes
Note:
See TracChangeset
for help on using the changeset viewer.