Ignore:
Timestamp:
01/14/05 10:23:13 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MChain.cc

    r4756 r5832  
    3636using namespace std;
    3737
    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
     41Long64_t MChain::LoadTree(Long64_t entry)
     42//#endif
    3943{
    4044    //
     
    5054    SetNotify(this);
    5155
    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);
    5362
    5463    if (rc >= 0 && fNotified && notify)
  • trunk/MagicSoft/Mars/mfileio/MChain.h

    r2173 r5832  
    2020    virtual void   SetNotify(TObject *obj) { fNotify = obj; fNotified = kFALSE; }
    2121
    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
    2327
    2428    ClassDef(MChain, 1) // Class derived from TChain to give access to Notify-return value
  • trunk/MagicSoft/Mars/mfileio/MReadTree.cc

    r5715 r5832  
    217217Bool_t MReadTree::CheckBranchSize()
    218218{
    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());
    223220    Int_t num=0;
    224221
    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();
    253227
    254228    // Check the number of entries of the branches pair-wise
Note: See TracChangeset for help on using the changeset viewer.