Changeset 8226
- Timestamp:
- 12/12/06 13:30:36 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8224 r8226 23 23 - fixed a bug in SetupRuns introduced yesterday which made the 24 24 setup fail if SetupRuns were called more than once. 25 26 * mfileio/MReadTree.[h,cc]: 27 - added function returning the number of files in the chain 28 29 * mfileio/MReadMarsFile.cc: 30 - added a check which correlates the number of entries in 31 RunHeaders with the number of files 25 32 26 33 -
trunk/MagicSoft/Mars/mfileio/MReadMarsFile.cc
r8225 r8226 255 255 } 256 256 257 // Check if really one file conatains one RunHeader 258 // (FIXME: Do the check more properly) 257 259 if (fRun->GetEntries() < fRun->GetNumFiles()) 258 260 { -
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r8133 r8226 1152 1152 // -------------------------------------------------------------------------- 1153 1153 // 1154 // Get number of files in chain. (-1 is returned if chain is not 1155 // initialized. 1156 // 1157 Int_t MReadTree::GetNumFiles() const 1158 { 1159 if (!fChain) 1160 return -1; 1161 1162 return fChain->GetListOfFiles()->GetEntries(); 1163 } 1164 1165 // -------------------------------------------------------------------------- 1166 // 1154 1167 // Return the number of the file in the chain, -1 in case of an error 1155 1168 // -
trunk/MagicSoft/Mars/mfileio/MReadTree.h
r7804 r8226 77 77 TString GetFullFileName() const; 78 78 Int_t GetFileIndex() const; 79 Int_t GetNumFiles() const; 79 80 80 81 virtual void AddNotify(TObject *obj);
Note:
See TracChangeset
for help on using the changeset viewer.