Changeset 1527 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 09/17/02 11:06:33 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r1483 r1527 203 203 // -------------------------------------------------------------------------- 204 204 // 205 // Adds all files from another MReadTree to this instance 206 // 207 // Returns the number of file which were added 208 // 209 Int_t MReadTree::AddFiles(const MReadTree &read) 210 { 211 Int_t rc = 0; 212 213 TIter Next(read.fChain->GetListOfFiles()); 214 TObject *obj = NULL; 215 while ((obj=Next())) 216 rc += AddFile(obj->GetTitle()); 217 218 return rc; 219 } 220 221 // -------------------------------------------------------------------------- 222 // 205 223 // This function is called if Branch choosing method should get enabled. 206 224 // Branch choosing means, that only the enabled branches are read into -
trunk/MagicSoft/Mars/mfileio/MReadTree.h
r1477 r1527 60 60 UInt_t GetEntries() const { return fNumEntries; } 61 61 62 TString GetFileName() const;63 Int_t GetFileIndex() const;62 TString GetFileName() const; 63 Int_t GetFileIndex() const; 64 64 65 65 virtual void AddNotify(TObject *obj); … … 68 68 69 69 virtual Int_t AddFile(const char *fname); 70 virtual Int_t AddFiles(const MReadTree &read); 70 71 71 72 virtual Bool_t PreProcess(MParList *pList);
Note:
See TracChangeset
for help on using the changeset viewer.