Changeset 4983 for trunk/MagicSoft


Ignore:
Timestamp:
09/13/04 15:41:01 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4977 r4983  
    4141     - took out the "->" for all pointers
    4242             
    43 
     43   * mhcalib/MHCalibrationChargeCam.[h,cc]
     44     - wrote a ReadEnv function
    4445
    4546
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc

    r4980 r4983  
    15541554  leg->Draw();
    15551555}
     1556
     1557Int_t MHCalibrationChargeCam::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     1558{
     1559
     1560  Bool_t rc = kFALSE;
     1561
     1562  if (MHCalibrationCam::ReadEnv(env,prefix,print))
     1563    rc = kTRUE;
     1564 
     1565  if (IsEnvDefined(env, prefix, "LoGainNbins", print))
     1566    {
     1567      SetLoGainNbins(GetEnvValue(env, prefix, "LoGainNbins", fLoGainNbins));
     1568      rc = kTRUE;
     1569    }
     1570 
     1571  if (IsEnvDefined(env, prefix, "LoGainFirst", print))
     1572    {
     1573      SetLoGainFirst(GetEnvValue(env, prefix, "LoGainFirst", fLoGainFirst));
     1574      rc = kTRUE;
     1575    }
     1576 
     1577  if (IsEnvDefined(env, prefix, "LoGainLast", print))
     1578    {
     1579      SetLoGainLast(GetEnvValue(env, prefix, "LoGainLast", fLoGainLast));
     1580      rc = kTRUE;
     1581    }
     1582 
     1583  if (IsEnvDefined(env, prefix, "TimeLowerLimit", print))
     1584    {
     1585      SetTimeLowerLimit(GetEnvValue(env, prefix, "TimeLowerLimit", fTimeLowerLimit));
     1586      rc = kTRUE;
     1587    }
     1588 
     1589  if (IsEnvDefined(env, prefix, "TimeUpperLimit", print))
     1590    {
     1591      SetTimeUpperLimit(GetEnvValue(env, prefix, "TimeUpperLimit", fTimeUpperLimit));
     1592      rc = kTRUE;
     1593    }
     1594 
     1595 
     1596  return rc;
     1597}
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.h

    r4962 r4983  
    9797  void   DrawDataCheckPixel(MHCalibrationChargePix &pix, const Float_t refline[]);
    9898  void   DisplayRefLines   ( const TH1F *hist,           const Float_t refline[]) const;
     99
     100  Int_t ReadEnv        ( const TEnv &env, TString prefix, Bool_t print);
    99101 
    100102public:
Note: See TracChangeset for help on using the changeset viewer.