Changeset 2296 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 07/29/03 13:18:57 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r2247 r2296 125 125 // Add this file as the last entry in the chain 126 126 // 127 void MCT1ReadPreProc::AddFile(const char *txt)127 Int_t MCT1ReadPreProc::AddFile(const char *txt, int) 128 128 { 129 129 const char *name = gSystem->ExpandPathName(txt); … … 135 135 { 136 136 *fLog << warn << "WARNING - Problem reading header... ignored." << endl; 137 return ;137 return 0; 138 138 } 139 139 … … 142 142 { 143 143 *fLog << warn << "WARNING - File contains no data... ignored." << endl; 144 return ;144 return 0; 145 145 } 146 146 … … 150 150 151 151 fFileNames->AddLast(new TNamed(txt, "")); 152 return 1; 152 153 } 153 154 -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.h
r2206 r2296 92 92 ~MCT1ReadPreProc(); 93 93 94 void AddFile(const char *fname);94 Int_t AddFile(const char *fname, int i=0); 95 95 96 96 UInt_t GetEntries() { return fEntries; } -
trunk/MagicSoft/Mars/mfileio/MRead.cc
r2173 r2296 39 39 #include "MLog.h" 40 40 #include "MLogManip.h" 41 42 #include "MDirIter.h" 41 43 42 44 ClassImp(MRead); … … 98 100 return i!=0; 99 101 } 102 103 Int_t MRead::AddFiles(MDirIter &next) 104 { 105 Int_t rc=0; 106 TString n; 107 while (!(n=next()).IsNull()) 108 { 109 const Int_t num = AddFile(n); 110 if (num>0) 111 rc += num; 112 } 113 return rc; 114 } 115 -
trunk/MagicSoft/Mars/mfileio/MRead.h
r2117 r2296 7 7 8 8 class MFilter; 9 class MDirIter; 9 10 10 11 class MRead : public MTask … … 22 23 MFilter *GetSelector() { return fSelector; } 23 24 24 Int_t AddFile(const char *fname, Int_t entries=-1) { return -1; } 25 virtual Int_t AddFile(const char *fname, Int_t entries=-1) { return -1; } 26 Int_t AddFiles(MDirIter &next); 25 27 26 28 Bool_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); -
trunk/MagicSoft/Mars/mfileio/MReadRflFile.cc
r2206 r2296 399 399 // Add this file as the last entry in the chain 400 400 // 401 void MReadRflFile::AddFile(const char *txt)401 Int_t MReadRflFile::AddFile(const char *txt, int) 402 402 { 403 403 const char *name = gSystem->ExpandPathName(txt); … … 424 424 */ 425 425 fFileNames->AddLast(new TNamed(txt, "")); 426 return 1; 426 427 } 427 428 -
trunk/MagicSoft/Mars/mfileio/MReadRflFile.h
r2206 r2296 48 48 ~MReadRflFile(); 49 49 50 void AddFile(const char *fname);50 Int_t AddFile(const char *fname, int i=0); 51 51 52 52 Bool_t Rewind() { fNumFile=0; return kTRUE; } -
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r2206 r2296 121 121 122 122 if (fname) 123 if (fChain->Add(fname)>0) 124 SetBit(kChainWasChanged); 123 AddFile(fname); 124 // if (fChain->Add(fname)>0) 125 // SetBit(kChainWasChanged); 125 126 } 126 127 … … 586 587 if (!GetEntries()) 587 588 { 588 *fLog << warn << dbginf << "No entries found in file(s)" << endl;589 *fLog << warn << GetDescriptor() << ": No entries found in file(s)" << endl; 589 590 return kFALSE; 590 591 }
Note:
See TracChangeset
for help on using the changeset viewer.