Ignore:
Timestamp:
09/28/01 10:51:06 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/getRate.C

    r948 r954  
    6161    // macro yet)
    6262    //
    63     TObjArray *hists = new TObjArray(MParList::CreateObjList("MHMcRate", dim));
     63    TObjArray hists(MParList::CreateObjList("MHMcRate", dim));
     64    hists.SetOwner();
    6465
    6566    //
    6667    // Check if the list really contains the right number of histograms
    6768    //
    68     if (hists->GetEntriesFast() != dim)
     69    if (hists.GetEntriesFast() != dim)
    6970        return;
    7071
     
    7273    // Add the histograms to the paramater list.
    7374    //
    74     parlist.AddToList(hists);
     75    parlist.AddToList(&hists);
    7576
    7677    //
     
    99100    // Start to loop over all events
    100101    //
    101     magic.Eventloop();
     102    if (!magic.Eventloop())
     103        return;
    102104
     105    TIter Next(&hists);
     106    MHMcRate *rate=NULL;
     107    while ((rate=(MHMcRate*)Next()))
     108        rate->Print();
    103109}
Note: See TracChangeset for help on using the changeset viewer.