Ignore:
Timestamp:
08/02/02 15:20:53 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
6 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}
  • trunk/MagicSoft/Mars/manalysis/MHillasSrcCalc.h

    r1474 r1477  
    1313{
    1414private:
    15     MHillas    *fHillas;     //! Pointer to the source independant hillas parameters
    16     MSrcPosCam *fSrcPos;     //! Pointer to the source position
    17     MHillasSrc *fHillasSrc;  //! Pointer to the output container for the source dependant parameters
     15    MHillas    *fHillas;     // Pointer to the source independant hillas parameters
     16    MSrcPosCam *fSrcPos;     // Pointer to the source position
     17    MHillasSrc *fHillasSrc;  // Pointer to the output container for the source dependant parameters
    1818
    1919    TString     fSrcName;
    2020    TString     fHillasName;
     21
     22    void StreamPrimitive(ofstream &out) const;
    2123
    2224public:
     
    2729    Bool_t Process();
    2830
    29     void SavePrimitive(ofstream &out, Option_t *o="");
    30 
    3131    ClassDef(MHillasSrcCalc, 1) // task to calculate the source position depandant hillas parameters
    3232};
  • trunk/MagicSoft/Mars/manalysis/MImgCleanStd.cc

    r1476 r1477  
    414414// gui elements to a macro-file.
    415415//
    416 void MImgCleanStd::SavePrimitive(ofstream &out, Option_t *o)
     416void MImgCleanStd::StreamPrimitive(ofstream &out) const
    417417{
    418418    out << "   MImgCleanStd " << ToLower(fName) << "(";
  • trunk/MagicSoft/Mars/manalysis/MImgCleanStd.h

    r1471 r1477  
    2121
    2222    void CreateGuiElements(MGGroupFrame *f);
     23    void StreamPrimitive(ofstream &out) const;
    2324
    2425public:
     
    3435
    3536    void Print(Option_t *o="") const;
    36     void SavePrimitive(ofstream &out, Option_t *o="");
    3737
    3838    Bool_t ProcessMessage(Int_t msg, Int_t submsg, Long_t param1, Long_t param2);
  • trunk/MagicSoft/Mars/manalysis/MSrcPosCam.cc

    r1476 r1477  
    8888// gui elements to a macro-file.
    8989//
    90 void MSrcPosCam::SavePrimitive(ofstream &out, Option_t *o)
     90void MSrcPosCam::StreamPrimitive(ofstream &out) const
    9191{
    9292    out << "   MSrcPosCam " << ToLower(fName) << "(\"";
  • trunk/MagicSoft/Mars/manalysis/MSrcPosCam.h

    r1471 r1477  
    1111    Float_t fX; // [mm] x position of source in camera
    1212    Float_t fY; // [mm] y position of source in camera
     13
     14    void StreamPrimitive(ofstream &out) const;
    1315
    1416public:
     
    2931    //void AsciiWrite(ofstream &fout) const;
    3032
    31     void SavePrimitive(ofstream &out, Option_t *o="");
    32 
    3333    ClassDef(MSrcPosCam, 1) // container to store source position in the camera plain
    3434};
Note: See TracChangeset for help on using the changeset viewer.