Changeset 1219


Ignore:
Timestamp:
02/21/02 12:12:37 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/NEWS

    r1217 r1219  
    2121   - Added a filter for the alpha parameter (MFilter)
    2222
     23   - it is now possible to write single data members of a class object to
     24     an output stream instead of the whole container only
    2325 
    2426 
  • trunk/MagicSoft/Mars/mbase/MWriteAsciiFile.cc

    r1218 r1219  
    3838// AddContainer.                                                           //
    3939//                                                                         //
     40// You can also write single data members of a container (like fWidth      //
     41// of MHillas). For more details see AddContainer. Make sure, that a       //
     42// getter method for the data member exist. The name of the method         //
     43// must be the same than the data member itself, but the f must be         //
     44// replaced by a Get.                                                      //
     45//                                                                         //
    4046/////////////////////////////////////////////////////////////////////////////
    4147
  • trunk/MagicSoft/Mars/mbase/MWriteAsciiFile.h

    r1176 r1219  
    1616    TObjArray fContNames;
    1717    TObjArray fContainer;
     18    TObjArray fMembers;
    1819
    1920    TString fNameFile;
     
    3334    ~MWriteAsciiFile();
    3435
    35     void AddContainer(const char *cname);
    36     void AddContainer(MParContainer *cont);
     36    void AddContainer(const char *cname, const char *member="");
     37    void AddContainer(MParContainer *cont, const char *member="");
    3738
    3839    ClassDef(MWriteAsciiFile, 0) // Class to write one container to an ascii file
  • trunk/MagicSoft/Mars/mgui/MCamDisplay.cc

    r1210 r1219  
    9393    // Fixme: Divide pnum by the (real) area of the pixel
    9494    //
    95 
    9695    const Float_t ratio = (*fGeomCam)[0].GetA()/(*fGeomCam)[i].GetA();
    9796    const Float_t pnum  = ratio*pix.GetNumPhotons();
  • trunk/MagicSoft/Mars/mhist/MHAlphaEnergyTheta.cc

    r1215 r1219  
    188188    // FIXME: ROOT Binning??? of projection
    189189    // root 3.02: SetRangeUser
     190#if ROOT_VERSION_CODE < ROOT_VERSION(3,02,06)
    190191    axe.SetRange(axe.FindFixBin(lo), axe.FindFixBin(up));
     192#else
     193    axe.SetRangeUser(lo, up);
     194#endif
    191195}
    192196
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx

    r1203 r1219  
    162162}
    163163
    164 
     164/*
    165165void MMcEvt::AsciiWrite(ofstream &fout) const
    166166{
     
    168168    fout << fTheta ;
    169169}
     170*/
    170171
    171172void MMcEvt::Print(Option_t *Option) const {
  • trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.hxx

    r1203 r1219  
    4343             UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, UInt_t ) ;
    4444
    45   virtual void AsciiWrite(ofstream &fout) const;
     45  //virtual void AsciiWrite(ofstream &fout) const;
    4646
    4747  void Print(Option_t *opt=NULL) const;
Note: See TracChangeset for help on using the changeset viewer.