Changeset 4131
- Timestamp:
- 05/22/04 18:49:31 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4130 r4131 54 54 - replaced the relative limit for acceptance of the time resolution 55 55 by an absolute limit 56 57 * mcalib/MCalibrationChargeCalc.cc 56 - set up output statistics logging (data written into DB) 57 58 * mcalib/MCalibrationChargeCalc.[h,cc] 58 59 - moved limit for acceptance of number of phe;s from 5 to 8 60 - set up output statistics logging (data written into DB) 61 62 * mjobs/MJCalibration.cc 63 - set up output statistics logging (data written into DB) 59 64 60 65 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4130 r4131 251 251 // - fPheErrLimit to fgPheErrLimit 252 252 // - fPulserColor to MCalibrationCam::kCT1 253 // - fOutputPath to "." 254 // - fOutputFile to "ChargeCalibStat.txt" 253 255 // 254 256 // Calls: … … 276 278 SetPheErrLimit(); 277 279 SetPulserColor(MCalibrationCam::kNONE); 280 SetOutputPath(); 281 SetOutputFile(); 278 282 279 283 Clear(); … … 650 654 FinalizePINDiodeQECam(); 651 655 656 // 657 // Re-direct the output to an ascii-file from now on: 658 // 659 MLog asciilog; 660 asciilog.SetOutputFile(GetOutputFile(),kTRUE); 661 SetLogStream(&asciilog); 652 662 // 653 663 // Finalize calibration statistics … … 694 704 "Pixels with unsuccesful Gauss fit to the Lo Gain: "); 695 705 706 SetLogStream(&gLog); 707 696 708 return kTRUE; 697 709 } … … 1540 1552 } 1541 1553 1554 // -------------------------------------------------------------------------- 1555 // 1556 // Get the output file 1557 // 1558 TString MCalibrationChargeCalc::GetOutputFile() 1559 { 1560 return Form("%s/%s", (const char*)fOutputPath, (const char*)fOutputFile); 1561 } -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r4130 r4131 67 67 68 68 TString fOutputPath; // Path to the output file 69 TString fOutputFile; // Name of the output file 69 70 70 71 // Pointers … … 82 83 83 84 // functions 85 TString GetOutputFile(); 84 86 void FinalizePedestals ( const MPedestalPix &ped, MCalibrationChargePix &cal, const Int_t aidx ); 85 87 Bool_t FinalizeCharges ( MCalibrationChargePix &cal, MBadPixelsPix &bad ); … … 113 115 void SetLambdaCheckLimit ( const Float_t f=fgLambdaCheckLimit ) { fLambdaCheckLimit = f; } 114 116 void SetOutputPath ( const char *path="." ); 117 void SetOutputFile ( const char *file="ChargeCalibStat.txt" ) { fOutputFile = file; } 115 118 void SetPheErrLimit ( const Float_t f=fgPheErrLimit ) { fPheErrLimit = f; } 116 119 void SetPulserColor ( const MCalibrationCam::PulserColor_t col ) { fPulserColor = col; } -
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc
r4130 r4131 81 81 // Initializes: 82 82 // - fRelTimeResolutionLimit to fgRelTimeResolutionimit 83 // - fOutputPath to "." 84 // - fOutputFile to "TimeCalibStat.txt" 83 85 // 84 86 // Calls: … … 93 95 94 96 SetRelTimeResolutionLimit(); 97 SetOutputPath(); 98 SetOutputFile(); 95 99 96 100 Clear(); … … 226 230 FinalizeBadPixels(); 227 231 232 // 233 // Re-direct the output to an ascii-file from now on: 234 // 235 MLog asciilog; 236 asciilog.SetOutputFile(GetOutputFile(),kTRUE); 237 SetLogStream(&asciilog); 228 238 // 229 239 // Finalize calibration statistics … … 243 253 PrintUncalibrated(MBadPixelsPix::kRelTimeNotFitted, 244 254 "Pixels with unsuccesful Gauss fit to the times: "); 255 256 SetLogStream(&gLog); 257 245 258 return kTRUE; 246 259 } … … 348 361 upplim [aidx] = areasum [aidx] + fRelTimeResolutionLimit; 349 362 350 *fLog << endl;351 *fLog << inf << GetDescriptor() << ": Limits for acceptance of time resolution: ["352 << Form("%4.2f%s%4.2f",lowlim[aidx],",",upplim[aidx]) << "] in area index " << aidx;353 363 } 354 364 *fLog << endl; … … 495 505 } 496 506 507 // -------------------------------------------------------------------------- 508 // 509 // Set the path for output file 510 // 511 void MCalibrationRelTimeCalc::SetOutputPath(const char *path) 512 { 513 fOutputPath = path; 514 if (fOutputPath.EndsWith("/")) 515 fOutputPath = fOutputPath(0, fOutputPath.Length()-1); 516 } 517 518 // -------------------------------------------------------------------------- 519 // 520 // Get the output file 521 // 522 TString MCalibrationRelTimeCalc::GetOutputFile() 523 { 524 return Form("%s/%s", (const char*)fOutputPath, (const char*)fOutputFile); 525 } -
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.h
r4130 r4131 38 38 Byte_t fFlags; // Bit-field for the flags 39 39 40 TString fOutputPath; // Path to the output file 41 TString fOutputFile; // Name of the output file 42 40 43 // Pointers 41 44 MBadPixelsCam *fBadPixels; // Bad Pixels … … 47 50 48 51 // functions 52 TString GetOutputFile(); 49 53 void FinalizeAverageResolution(); 50 54 void FinalizeRelTimes (); … … 65 69 void Clear(const Option_t *o=""); 66 70 71 void SetOutputPath ( const char *path="." ); 72 void SetOutputFile ( const char *file="TimeCalibStat.txt" ) { fOutputFile = file; } 67 73 void SetRelTimeResolutionLimit ( const Float_t f=fgRelTimeResolutionLimit ) { fRelTimeResolutionLimit = f; } 68 74 -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r4109 r4131 801 801 TString MJCalibration::GetOutputFile() const 802 802 { 803 803 804 if (!fRuns) 804 805 return ""; … … 918 919 MExtractTimeSpline timespline; 919 920 MCalibrationChargeCalc calcalc; 921 calcalc.SetOutputPath(fOutputPath); 922 calcalc.SetOutputFile(Form("%s-ChargeCalibStat.txt",fRuns->GetRunsAsFileName().Data())); 923 920 924 MCalibrationRelTimeCalc timecalc; 925 timecalc.SetOutputPath(fOutputPath); 926 timecalc.SetOutputFile(Form("%s-TimeCalibStat.txt",fRuns->GetRunsAsFileName().Data())); 921 927 922 928 //
Note:
See TracChangeset
for help on using the changeset viewer.