Changeset 1574 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 11/04/02 10:06:08 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r1526 r1574 435 435 arr.Compress(); 436 436 } 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 // 443 MParContainer *MParContainer::New() const 444 { 445 return (MParContainer*)IsA()->New(); 446 } -
trunk/MagicSoft/Mars/mbase/MParContainer.h
r1525 r1574 70 70 virtual void SavePrimitive(ofstream &out, Option_t *o=""); 71 71 72 virtual MParContainer *New() const; 72 73 virtual void SetLogStream(MLog *lg) { fLog = lg; } 73 74 virtual void Reset() { } -
trunk/MagicSoft/Mars/mbase/MTask.cc
r1540 r1574 122 122 // -------------------------------------------------------------------------- 123 123 // 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 // 129 void 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 // 124 148 // Copy constructor. 125 149 // -
trunk/MagicSoft/Mars/mbase/MTask.h
r1501 r1574 35 35 protected: 36 36 void AddToBranchList(const char *b); 37 void AddToBranchList(const TString &str) 38 { 39 AddToBranchList((const char*)str); 40 } 37 void AddToBranchList(const TString &str); 41 38 void AddToBranchList(const char *master, const char *sub, const UInt_t first, const UInt_t last) 42 39 {
Note:
See TracChangeset
for help on using the changeset viewer.