Ignore:
Timestamp:
10/20/06 19:50:35 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc

    r8015 r8142  
    4343//  + Byte_t fCheckFlags; // Bit-field to hold the possible check flags
    4444//
     45// ClassVersionb 3:
     46//  -  TString fOutputPath;                           //  Path to the output file
     47//  -  TString fOutputFile;                           //  Name of the output file
     48//
    4549//
    4650//  Input Containers:
     
    8993// Initializes:
    9094// - fRelTimeResolutionLimit to fgRelTimeResolutionimit
    91 // - fOutputPath        to "."
    92 // - fOutputFile        to "TimeCalibStat.txt"
    9395//
    9496// Calls:
     
    108110
    109111  SetRelTimeResolutionLimit();
    110   SetOutputPath();
    111   SetOutputFile("");
    112112
    113113  Clear();
     
    249249
    250250  //
    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   //
    261251  // Finalize calibration statistics
    262252  //
     
    282272  PrintUncalibrated(MBadPixelsPix::kRelTimeNotFitted,     
    283273                    "Pixels with unsuccesful Gauss fit to the times:");
    284 
    285   if (asciilog)
    286   {
    287       SetLogStream(&gLog);
    288       delete asciilog;
    289   }
    290274
    291275  return kTRUE;
     
    534518// --------------------------------------------------------------------------
    535519//
    536 // Set the path for output file
    537 //
    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 file
    548 //
    549 const char* MCalibrationRelTimeCalc::GetOutputFile()
    550 {
    551     return Form("%s/%s", (const char*)fOutputPath, (const char*)fOutputFile);
    552 }
    553 
    554 
    555 // --------------------------------------------------------------------------
    556 //
    557520// MCalibrationRelTimeCam.CheckFitResults: Yes
    558521// MCalibrationRelTimeCam.CheckDeviatingBehavior: Yes
Note: See TracChangeset for help on using the changeset viewer.