Changeset 5832 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 01/14/05 10:23:13 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MChain.cc
r4756 r5832 36 36 using namespace std; 37 37 38 Int_t MChain::LoadTree(Int_t entry) 38 //#if ROOT_VERSION_CODE < ROOT_VERSION(4,02,00) 39 //Int_t MChain::LoadTree(Int_t entry) 40 //#else 41 Long64_t MChain::LoadTree(Long64_t entry) 42 //#endif 39 43 { 40 44 // … … 50 54 SetNotify(this); 51 55 52 Int_t rc = TChain::LoadTree(entry); 56 //#if ROOT_VERSION_CODE < ROOT_VERSION(4,02,00) 57 // Int_t 58 //#else 59 Long64_t 60 //#endif 61 rc = TChain::LoadTree(entry); 53 62 54 63 if (rc >= 0 && fNotified && notify) -
trunk/MagicSoft/Mars/mfileio/MChain.h
r2173 r5832 20 20 virtual void SetNotify(TObject *obj) { fNotify = obj; fNotified = kFALSE; } 21 21 22 Int_t LoadTree(Int_t entry); 22 //#if ROOT_VERSION_CODE < ROOT_VERSION(4,02,00) 23 Int_t LoadTree(Int_t entry) { return (Int_t)LoadTree((Long64_t)entry); } 24 //#else 25 Long64_t LoadTree(Long64_t entry); 26 //#endif 23 27 24 28 ClassDef(MChain, 1) // Class derived from TChain to give access to Notify-return value -
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r5715 r5832 217 217 Bool_t MReadTree::CheckBranchSize() 218 218 { 219 //if (!fChain) // >FIXME: fTree!=0 220 // return kTRUE; 221 222 TArrayI entries(fChain ? fChain->GetStatus()->GetSize() : fTree->GetListOfBranches()->GetSize()); 219 TArrayI entries(fTree->GetListOfBranches()->GetSize()); 223 220 Int_t num=0; 224 221 225 // Loop over all branches which have a corresponding container 226 /* 227 if (fChain) 228 { 229 TIter Next(fChain->GetStatus()); 230 231 TChainElement *element = NULL; 232 while ((element=(TChainElement*)Next())) 233 { 234 // Get branch name and find pointer to corresponding branch 235 const TString name = element->GetName(); 236 const TBranch *b = fChain->FindBranch(name); 237 238 // Skip element without corresponding branches (like "*") 239 if (!b) 240 continue; 241 242 entries[num++] = (Int_t)b->GetEntries(); 243 } 244 } 245 else */ 246 { 247 TIter Next(fTree->GetListOfBranches()); 248 249 TBranch *element = NULL; 250 while ((element=(TBranch*)Next())) 251 entries[num++] = (Int_t)element->GetEntries(); 252 } 222 TIter Next(fTree->GetListOfBranches()); 223 224 TBranch *element = NULL; 225 while ((element=(TBranch*)Next())) 226 entries[num++] = (Int_t)element->GetEntries(); 253 227 254 228 // Check the number of entries of the branches pair-wise
Note:
See TracChangeset
for help on using the changeset viewer.