Ignore:
Timestamp:
11/04/02 10:06:08 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MParContainer.cc

    r1526 r1574  
    435435    arr.Compress();
    436436}
     437
     438// --------------------------------------------------------------------------
     439//
     440// Creates a new instance of this class. The idea is to create a clone of
     441// this class in its initial state.
     442//
     443MParContainer *MParContainer::New() const
     444{
     445    return (MParContainer*)IsA()->New();
     446}
  • trunk/MagicSoft/Mars/mbase/MParContainer.h

    r1525 r1574  
    7070    virtual void        SavePrimitive(ofstream &out, Option_t *o="");
    7171
     72    virtual MParContainer *New() const;
    7273    virtual void   SetLogStream(MLog *lg) { fLog = lg; }
    7374    virtual void   Reset() { }
  • trunk/MagicSoft/Mars/mbase/MTask.cc

    r1540 r1574  
    122122// --------------------------------------------------------------------------
    123123//
     124// Using this overloaded member function you may cascade several branches
     125// in acomma seperated list, eg: "MMcEvt.fTheta,MMcEvt.fEnergy"
     126//
     127// For moredetailed information see AddToBranchList(const char *b);
     128//
     129void MTask::AddToBranchList(const TString &str)
     130{
     131    TString s = str;
     132
     133    while (1)
     134    {
     135        Int_t fst = s.First(',');
     136
     137        if (fst<0)
     138            return;
     139
     140        AddToBranchList(TString(s(0, fst)));
     141
     142        s.Remove(0, fst+1);
     143    }
     144}
     145
     146// --------------------------------------------------------------------------
     147//
    124148// Copy constructor.
    125149//
  • trunk/MagicSoft/Mars/mbase/MTask.h

    r1501 r1574  
    3535protected:
    3636    void AddToBranchList(const char *b);
    37     void AddToBranchList(const TString &str)
    38     {
    39         AddToBranchList((const char*)str);
    40     }
     37    void AddToBranchList(const TString &str);
    4138    void AddToBranchList(const char *master, const char *sub, const UInt_t first, const UInt_t last)
    4239    {
Note: See TracChangeset for help on using the changeset viewer.