Ignore:
Timestamp:
08/02/02 15:20:53 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1476 r1477  
    3737#include "MParList.h"
    3838
     39#include "MSrcPosCam.h"
    3940#include "MHillasSrc.h"
    4041
     
    103104// gui elements to a macro-file.
    104105//
    105 void MHillasSrcCalc::SavePrimitive(ofstream &out, Option_t *o)
     106void MHillasSrcCalc::StreamPrimitive(ofstream &out) const
    106107{
    107     out << "   MHillasSrcCalc " << ToLower(fName) << "(\"";
    108     out << fSrcName << "\", \"" << fHillasName << "\", \"";
    109     out << fName << "\", \"" << fTitle << "\");" << endl;
     108    if (fHillas)
     109        fHillas->SavePrimitive(out);
     110
     111    if (fSrcPos)
     112        fSrcPos->SavePrimitive(out);
     113
     114    if (fHillasSrc)
     115        fHillasSrc->SavePrimitive(out);
     116
     117    out << "   MHillasSrcCalc " << ToLower(fName) << "(";
     118
     119    if (fSrcPos)
     120        out << "&" << ToLower(fSrcPos->GetName());
     121    else
     122        out << "\"" << fSrcName << "\"";
     123
     124    if (fHillasSrc)
     125        out << "&" << ToLower(fHillasSrc->GetName());
     126    else
     127        out << "\"" << fHillasName << "\"";
     128
     129    out << ", \"" << fName << "\", \"" << fTitle << "\");" << endl;
    110130}
Note: See TracChangeset for help on using the changeset viewer.