Changeset 8141
- Timestamp:
- 10/20/06 19:49:53 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8140 r8141 35 35 - if a new cam is added to the intensity cam list the old 36 36 cam is deleted now which fixes the bigges memory leak in callisto 37 38 * mcalib/MCalibrationChargeCalc.[h,cc], 39 mcalib/MCalibrationRelTimeCalc.[h,cc]: 40 - removed fOutputPath and fOutputFile 41 42 * mjobs/MJCalibration.cc, mjobs/MJCalibrateSignal.cc: 43 - removed reference to SetOutputFile 37 44 38 45 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r8132 r8141 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MCalibrationChargeCalc.cc,v 1.16 7 2006-10-19 13:59:08tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MCalibrationChargeCalc.cc,v 1.168 2006-10-20 18:49:53 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 190 190 // + Bool_t fUseExtractorRes; // Include extractor resolution in F-Factor method 191 191 // 192 // ClassVersion 3:192 // ClassVersion 4: 193 193 // + Float_t fUnsuitablesLimit; // Limit for relative number of unsuitable pixels 194 194 // + Float_t fUnreliablesLimit; // Limit for relative number of unreliable pixels 195 195 // + Float_t fExternalNumPhes; // External mean number of photo-electrons set from outside 196 196 // + Float_t fExternalNumPhesRelVar; // External rel. var. number of photo-electrons set from outside 197 // 198 // ClassVersion 5: 199 // - TString fOutputPath 200 // - TString fOutputFile 197 201 // 198 202 ////////////////////////////////////////////////////////////////////////////// … … 317 321 SetLambdaErrLimit (); 318 322 SetNamePedestalCam (); 319 SetOutputPath ();320 SetOutputFile ();321 323 SetPheErrLowerLimit (); 322 324 SetPheErrUpperLimit (); … … 769 771 const Int_t aidx = (*fGeom)[pixid].GetAidx(); 770 772 771 FinalizePedestals( ped,pix,aidx);773 FinalizePedestals(*fSignal, ped,pix,aidx); 772 774 773 775 if (FinalizeCharges(pix,bad,"pixel ")) … … 870 872 // Re-direct the output to an ascii-file from now on: 871 873 // 872 MLog *oldlog = fLog;873 MLog asciilog;874 if (!fOutputFile.IsNull())875 {876 asciilog.SetOutputFile(GetOutputFile(),kTRUE);877 SetLogStream(&asciilog);878 }879 880 874 *fLog << inf << endl; 881 875 *fLog << GetDescriptor() << ": Fatal errors statistics:" << endl; … … 922 916 "Deviating F-Factor: "); 923 917 924 if (!fOutputFile.IsNull())925 SetLogStream(oldlog);926 927 918 chargecam->SetReadyToSave(); 928 919 qecam ->SetReadyToSave(); … … 2287 2278 // -------------------------------------------------------------------------- 2288 2279 // 2289 // Set the path for output file2290 //2291 void MCalibrationChargeCalc::SetOutputPath(TString path)2292 {2293 fOutputPath = path;2294 if (fOutputPath.EndsWith("/"))2295 fOutputPath = fOutputPath(0, fOutputPath.Length()-1);2296 }2297 2298 // --------------------------------------------------------------------------2299 //2300 // Set the output file2301 //2302 void MCalibrationChargeCalc::SetOutputFile(TString file)2303 {2304 fOutputFile = file;2305 }2306 2307 // --------------------------------------------------------------------------2308 //2309 // Get the output file2310 //2311 const char* MCalibrationChargeCalc::GetOutputFile()2312 {2313 return Form("%s/%s", (const char*)fOutputPath, (const char*)fOutputFile);2314 }2315 2316 // --------------------------------------------------------------------------2317 //2318 2280 // Read the environment for the following data members: 2319 2281 // - fChargeLimit -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r7984 r8141 533 533 MCalibrationRelTimeCalc recalc; 534 534 MCalibCalcFromPast pacalc; 535 chcalc.SetOutputFile("");536 recalc.SetOutputFile("");537 535 538 536 pinext.SetPedestals(&pedcamab); -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r8038 r8141 1841 1841 MCalibrationRelTimeCalc timecalc; 1842 1842 calcalc.SetExtractor(fExtractor); 1843 calcalc.SetOutputFile("");1844 timecalc.SetOutputFile("");1845 1843 1846 1844 if (IsDebug())
Note:
See TracChangeset
for help on using the changeset viewer.