Changeset 4133 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
05/22/04 19:45:45 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
4 edited

Legend:

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

    r4131 r4133  
    769769{
    770770
    771   /*
    772   const Float_t mean    = cal.IsHiGainSaturation() ? cal.GetConvertedLoGainMean()    : cal.GetMean();
    773   const Float_t meanerr = cal.IsHiGainSaturation() ? cal.GetConvertedLoGainMeanErr() : cal.GetMeanErr();
    774   const Float_t sigma   = cal.IsHiGainSaturation() ? cal.GetConvertedLoGainSigma()   : cal.GetSigma();
    775   */
     771  if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun))
     772    return kFALSE;
     773
    776774  if (cal.GetMean() < fChargeLimit*cal.GetPedRms())
    777775    {
     
    795793      bad.SetUncalibrated( MBadPixelsPix::kChargeSigmaNotValid );
    796794    }
    797 
    798   if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun))
    799     return kFALSE;
    800795
    801796  if (!cal.CalcReducedSigma())
     
    861856      if (bad.IsUncalibrated( MBadPixelsPix::kDeviatingNumPhes ))
    862857        bad.SetUnsuitable(   MBadPixelsPix::kUnsuitableRun    );
    863       //        bad.SetUnsuitable(   MBadPixelsPix::kUnreliableRun    );
    864858
    865859      if (bad.IsUnsuitable(   MBadPixelsPix::kUnsuitableRun    ))
     
    1003997          bad.SetUnsuitable  ( MBadPixelsPix::kUnsuitableRun    );
    1004998          pix.SetExcluded();
    1005           //          bad.SetUnsuitable  ( MBadPixelsPix::kUnreliableRun    );
    1006999          continue;
    10071000        }
     
    15251518  UInt_t countinner = 0;
    15261519  UInt_t countouter = 0;
     1520
    15271521  for (Int_t i=0; i<fBadPixels->GetSize(); i++)
    15281522    {
     
    15451539// Set the path for output file
    15461540//
    1547 void MCalibrationChargeCalc::SetOutputPath(const char *path)
     1541void MCalibrationChargeCalc::SetOutputPath(TString path)
    15481542{
    15491543  fOutputPath = path;
     
    15521546}
    15531547
     1548void MCalibrationChargeCalc::SetOutputFile(TString file)
     1549{
     1550  fOutputFile        = file;
     1551}
     1552
    15541553// --------------------------------------------------------------------------
    15551554//
    15561555// Get the output file
    15571556//
    1558 TString MCalibrationChargeCalc::GetOutputFile()
     1557const char* MCalibrationChargeCalc::GetOutputFile()
    15591558{
    15601559  return Form("%s/%s", (const char*)fOutputPath, (const char*)fOutputFile);
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h

    r4131 r4133  
    8383
    8484  // functions
    85   TString GetOutputFile();
     85  const char* GetOutputFile();
    8686  void   FinalizePedestals      ( const MPedestalPix &ped, MCalibrationChargePix &cal, const Int_t aidx );
    8787  Bool_t FinalizeCharges        ( MCalibrationChargePix &cal, MBadPixelsPix &bad      );
     
    114114  void SetLambdaErrLimit    ( const Float_t f=fgLambdaErrLimit         ) { fLambdaErrLimit    = f;   }
    115115  void SetLambdaCheckLimit  ( const Float_t f=fgLambdaCheckLimit       ) { fLambdaCheckLimit  = f;   }
    116   void SetOutputPath        ( const char   *path="."                   );
    117   void SetOutputFile        ( const char   *file="ChargeCalibStat.txt" ) { fOutputFile        = file; }
     116  void SetOutputPath        ( TString path="."                   );
     117  void SetOutputFile        ( TString file="ChargeCalibStat.txt" );
    118118  void SetPheErrLimit       ( const Float_t f=fgPheErrLimit            ) { fPheErrLimit       = f;   } 
    119119  void SetPulserColor       ( const MCalibrationCam::PulserColor_t col ) { fPulserColor       = col; }
  • trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc

    r4131 r4133  
    509509// Set the path for output file
    510510//
    511 void MCalibrationRelTimeCalc::SetOutputPath(const char *path)
     511void MCalibrationRelTimeCalc::SetOutputPath(TString path)
    512512{
    513513  fOutputPath = path;
     
    520520// Get the output file
    521521//
    522 TString MCalibrationRelTimeCalc::GetOutputFile()
     522const char* MCalibrationRelTimeCalc::GetOutputFile()
    523523{
    524524  return Form("%s/%s", (const char*)fOutputPath, (const char*)fOutputFile);
  • trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.h

    r4131 r4133  
    5050
    5151  // functions
    52   TString GetOutputFile();
     52  const char* GetOutputFile();
    5353  void   FinalizeAverageResolution();
    5454  void   FinalizeRelTimes     ();
     
    6969  void Clear(const Option_t *o="");
    7070 
    71   void SetOutputPath        ( const char   *path="."                   );
    72   void SetOutputFile        ( const char   *file="TimeCalibStat.txt"   ) { fOutputFile        = file; }
     71  void SetOutputPath        ( TString path="."                   );
     72  void SetOutputFile        ( TString file="TimeCalibStat.txt"   ) { fOutputFile        = file; }
    7373  void SetRelTimeResolutionLimit ( const Float_t f=fgRelTimeResolutionLimit    ) { fRelTimeResolutionLimit = f;   }
    7474
Note: See TracChangeset for help on using the changeset viewer.