Changeset 1487 for trunk/MagicSoft/Mars/manalysis/MHillasSrcCalc.cc
- Timestamp:
- 08/07/02 14:32:26 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MHillasSrcCalc.cc
r1483 r1487 45 45 ClassImp(MHillasSrcCalc); 46 46 47 static const TString gsDefName = "MHillasSrcCalc"; 48 static const TString gsDefTitle = "Calculate position dependant image parameters"; 49 47 50 // ------------------------------------------------------------------------- 48 51 // … … 55 58 MHillasSrcCalc::MHillasSrcCalc(const char *src, const char *hil, 56 59 const char *name, const char *title) 60 : fHillas(NULL), fSrcPos(NULL), fHillasSrc(NULL) 57 61 { 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(); 60 64 61 65 fSrcName = src; … … 122 126 out << "\"" << fSrcName << "\""; 123 127 128 out << ", "; 129 124 130 if (fHillasSrc) 125 131 out << "&" << fHillasSrc->GetUniqueName(); … … 127 133 out << "\"" << fHillasName << "\""; 128 134 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; 130 142 }
Note:
See TracChangeset
for help on using the changeset viewer.