Changeset 7838 for trunk


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7837 r7838  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2006/08/03 Thomas Bretz
     22
     23   * mbase/MTask.cc:
     24     - do not print number of executions if it is (UInt_t)-1
     25
     26   * mfileio/MReadReports.cc:
     27     - do not allocate a MTime container anymore. This can be done
     28       by root automatically which has the advantage that we don't
     29       have to care about its deletion
     30     - added some more debug output, just in case...
     31
     32   * mfileio/MReadTree.cc:
     33     - fixed a typo in a comment
     34
     35
    2036
    2137 2006/08/02 Markus Meyer
  • trunk/MagicSoft/Mars/NEWS

    r7832 r7838  
    2323
    2424   - merpp: didn't recognize files with the extension .raw.gz - fixed.
     25
     26   - callisto: Updated absolute calibration constants (muon calibration)
    2527
    2628   - callisto: Fixed a bug regarding the use of the QE which doesn't
  • trunk/MagicSoft/Mars/mbase/MTask.cc

    r7808 r7838  
    440440    if (HasStreamId())
    441441        *fLog << GetStreamId() << ":";
    442     *fLog << GetDescriptor() << "\t" << dec << GetNumExecutions();
     442    *fLog << GetDescriptor();
     443
     444    if (GetNumExecutions()!=(UInt_t)-1)
     445        *fLog << "\t" << dec << GetNumExecutions();
    443446
    444447    if (fFilter)
  • 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.