Ignore:
Timestamp:
08/07/02 14:32:26 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MHillasSrcCalc.cc

    r1483 r1487  
    4545ClassImp(MHillasSrcCalc);
    4646
     47static const TString gsDefName  = "MHillasSrcCalc";
     48static const TString gsDefTitle = "Calculate position dependant image parameters";
     49
    4750// -------------------------------------------------------------------------
    4851//
     
    5558MHillasSrcCalc::MHillasSrcCalc(const char *src, const char *hil,
    5659                               const char *name, const char *title)
     60    : fHillas(NULL), fSrcPos(NULL), fHillasSrc(NULL)
    5761{
    58     fName  = name  ? name  : "MHillasSrcCalc";
    59     fTitle = title ? title : "add parameters dependent on source position (MHillasSrc)";
     62    fName  = name  ? name  : gsDefName.Data();
     63    fTitle = title ? title : gsDefTitle.Data();
    6064
    6165    fSrcName    = src;
     
    122126        out << "\"" << fSrcName << "\"";
    123127
     128    out << ", ";
     129
    124130    if (fHillasSrc)
    125131        out << "&" << fHillasSrc->GetUniqueName();
     
    127133        out << "\"" << fHillasName << "\"";
    128134
    129     out << ", \"" << fName << "\", \"" << fTitle << "\");" << endl;
     135    if (fName!=gsDefName || fTitle!=gsDefTitle)
     136    {
     137        out << ", \"" << fName << "\"";
     138        if (fTitle!=gsDefTitle)
     139            out << ", \"" << fTitle << "\"";
     140    }
     141    out << ");" << endl;
    130142}
Note: See TracChangeset for help on using the changeset viewer.