Ignore:
Timestamp:
08/03/06 14:45:12 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
2 edited

Legend:

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

    r7115 r7838  
    1818!   Author(s): Thomas Bretz, 11/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2003
     20!   Copyright: MAGIC Software Development, 2000-2006
    2121!
    2222!
     
    104104    TIter NextC(fChains);
    105105    while ((o=NextC()))
    106     {
    107106        delete *GetTime((TChain*)o);
    108         delete  GetTime((TChain*)o);
    109     }
    110107
    111108    delete fTrees;
     
    297294        //
    298295        MTime **tx = new MTime*;
    299         *tx = new MTime;
     296        *tx = 0;//new MTime;
    300297
    301298        TChain *c=new TChain(tree->GetName());
     299
    302300        c->SetBranchStatus("*", 0);
    303301        c->SetBranchAddress(tn, tx);
    304         tn+="*";
    305         c->SetBranchStatus(tn, 1);
     302        c->SetBranchStatus(tn2, 1);
     303
    306304        c->Add((TChain*)tree->fChain);
    307305        c->GetEntry(0);
     
    436434        }
    437435
    438         *fLog << dbg << "Removing chain " << chain->GetName() << " from list." << endl;
     436        *fLog << dbg << "Removing chain " << chain->GetName() << " from list" << flush;
    439437
    440438        delete *GetTime(chain);        // Delete MTime*
    441         delete  GetTime(chain);        // Delete MTime-instance
     439        *fLog << "." << flush;
    442440        delete fChains->Remove(chain); // Remove chain from TList
     441        *fLog << "." << flush;
    443442
    444443        // FIXME: Maybe MTaskList should have a member function to
     
    448447        // corresponds to the correct task in the list.
    449448        const_cast<TList*>(fTrees->GetList())->Remove(task);
     449        *fLog << "." << flush;
    450450        const_cast<TList*>(fTrees->GetList())->AddLast(task);
     451        *fLog << "done." << endl;
    451452    }
    452453
  • trunk/MagicSoft/Mars/mfileio/MReadTree.cc

    r7804 r7838  
    713713    //
    714714    // It seems, that TFile and TTree are not completely independant if
    715     // many times the same file is openes (MReadReports) and some of
     715    // many times the same file is opened (MReadReports) and some of
    716716    // the files in the chains don't have one tree. TChain::fTreeNumber
    717717    // is already set before LoadTree from GetFile is called and
Note: See TracChangeset for help on using the changeset viewer.