Ignore:
Timestamp:
10/31/02 15:37:45 (22 years ago)
Author:
wittek
Message:
change type of fVarname and fUnit from *char to TString
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHFlux.cc

    r1422 r1573  
    6262//
    6363MHFlux::MHFlux(const TH2D &h2d,  const Bool_t Draw,
    64                const char *varname, const char *unit)
    65  : fHOrig(), fHUnfold(), fHFlux()
     64               //              const char *varname, const char *unit)
     65               const TString varname, const TString unit)
     66 : fHOrig(), fHUnfold(), fHFlux(), fVarname(), fUnit()
    6667{
    67     if (varname == NULL  ||  unit == NULL)
     68  //    if (varname == NULL  ||  unit == NULL)
     69  if (varname == ""  ||  unit == "")
    6870    {
    6971      *fLog << "MHFlux : varname or unit not defined" << endl;
  • trunk/MagicSoft/Mars/mhist/MHFlux.h

    r1415 r1573  
    2626{
    2727private:
    28     const char *fVarname;
    29     const char *fUnit;
     28  //const char *fVarname;
     29  //const char *fUnit;
     30
     31  TString fVarname;
     32  TString fUnit;
    3033
    3134    TH2D fHOrig;       // original distribution of E-est
     
    3639public:
    3740    MHFlux(const TH2D &h2d, const Bool_t Draw,
    38            const char *varname=NULL, const char *unit=NULL);
     41           //      const char *varname=NULL, const char *unit=NULL);
     42           const TString varname, const TString unit);
    3943
    4044    Bool_t Fill(const MParContainer *par);
Note: See TracChangeset for help on using the changeset viewer.