Changeset 8141


Ignore:
Timestamp:
10/20/06 19:49:53 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8140 r8141  
    3535     - if a new cam is added to the intensity cam list the old
    3636       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
    3744
    3845
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r8132 r8141  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MCalibrationChargeCalc.cc,v 1.167 2006-10-19 13:59:08 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MCalibrationChargeCalc.cc,v 1.168 2006-10-20 18:49:53 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    190190//   + Bool_t  fUseExtractorRes;  // Include extractor resolution in F-Factor method
    191191//
    192 //  ClassVersion 3:
     192//  ClassVersion 4:
    193193//   +  Float_t fUnsuitablesLimit;                   // Limit for relative number of unsuitable pixels
    194194//   +  Float_t fUnreliablesLimit;                   // Limit for relative number of unreliable pixels
    195195//   +  Float_t fExternalNumPhes;                    // External mean number of photo-electrons set from outside
    196196//   +  Float_t fExternalNumPhesRelVar;              // External rel. var. number of photo-electrons set from outside 
     197//
     198//  ClassVersion 5:
     199//   -  TString fOutputPath
     200//   -  TString fOutputFile
    197201//
    198202//////////////////////////////////////////////////////////////////////////////
     
    317321  SetLambdaErrLimit    ();
    318322  SetNamePedestalCam   ();
    319   SetOutputPath        ();
    320   SetOutputFile        ();
    321323  SetPheErrLowerLimit  ();
    322324  SetPheErrUpperLimit  ();
     
    769771      const Int_t aidx    = (*fGeom)[pixid].GetAidx();
    770772
    771       FinalizePedestals(ped,pix,aidx);
     773      FinalizePedestals(*fSignal, ped,pix,aidx);
    772774
    773775      if (FinalizeCharges(pix,bad,"pixel  "))
     
    870872  // Re-direct the output to an ascii-file from now on:
    871873  //
    872   MLog *oldlog = fLog;
    873   MLog asciilog;
    874   if (!fOutputFile.IsNull())
    875   {
    876       asciilog.SetOutputFile(GetOutputFile(),kTRUE);
    877       SetLogStream(&asciilog);
    878   }
    879 
    880874  *fLog << inf << endl;
    881875  *fLog << GetDescriptor() << ": Fatal errors statistics:" << endl; 
     
    922916                    "Deviating F-Factor:                     ");
    923917
    924   if (!fOutputFile.IsNull())
    925       SetLogStream(oldlog);
    926 
    927918  chargecam->SetReadyToSave();
    928919  qecam    ->SetReadyToSave();
     
    22872278// --------------------------------------------------------------------------
    22882279//
    2289 // Set the path for output file
    2290 //
    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 file
    2301 //
    2302 void MCalibrationChargeCalc::SetOutputFile(TString file)
    2303 {
    2304   fOutputFile = file;
    2305 }
    2306 
    2307 // --------------------------------------------------------------------------
    2308 //
    2309 // Get the output file
    2310 //
    2311 const char* MCalibrationChargeCalc::GetOutputFile()
    2312 {
    2313   return Form("%s/%s", (const char*)fOutputPath, (const char*)fOutputFile);
    2314 }
    2315 
    2316 // --------------------------------------------------------------------------
    2317 //
    23182280// Read the environment for the following data members:
    23192281// - fChargeLimit
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r7984 r8141  
    533533    MCalibrationRelTimeCalc recalc;
    534534    MCalibCalcFromPast      pacalc;
    535     chcalc.SetOutputFile("");
    536     recalc.SetOutputFile("");
    537535
    538536    pinext.SetPedestals(&pedcamab);
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r8038 r8141  
    18411841    MCalibrationRelTimeCalc  timecalc;
    18421842    calcalc.SetExtractor(fExtractor);
    1843     calcalc.SetOutputFile("");
    1844     timecalc.SetOutputFile("");
    18451843
    18461844    if (IsDebug())
Note: See TracChangeset for help on using the changeset viewer.