Ignore:
Timestamp:
10/26/01 10:11:30 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmain/MMonteCarlo.cc

    r989 r991  
    290290    // macro yet)
    291291    //
    292     TObjArray hists(MParList::CreateObjList("MHMcRate", dim));
     292    const UInt_t from = dim>0 ?   1 : -dim;
     293    const UInt_t to   = dim>0 ? dim : -dim;
     294    const Int_t  num  = to-from+1;
     295
     296    TObjArray hists(MParList::CreateObjList("MHMcRate", from, to));
    293297    hists.SetOwner();
    294298
     
    296300    // Check if the list really contains the right number of histograms
    297301    //
    298     if (hists.GetEntriesFast() != dim && dim)
     302    if (hists.GetEntriesFast() != num)
    299303        return;
    300304
     
    367371    // and store the histograms in an TObjArray
    368372    //
    369     TObjArray hists(MParList::CreateObjList("MHMcEnergy", dim));
     373    const UInt_t from = dim>0 ?   1 : -dim;
     374    const UInt_t to   = dim>0 ? dim : -dim;
     375    const Int_t  num  = to-from+1;
     376
     377    TObjArray hists(MParList::CreateObjList("MHMcEnergy", from, to));
    370378    hists.SetOwner();
    371379
     
    373381    // Check if the list really contains the right number of histograms
    374382    //
    375     if (hists.GetEntriesFast() != dim)
     383    if (hists.GetEntriesFast() != num)
    376384        return;
    377385
     
    391399    //
    392400    MReadTree read("Events", fInputFile);
    393     read.VetoBranch("MRawEvtData");
    394     read.VetoBranch("MRawEvtHeader");
     401    read.UseLeaf("fEnergy");
     402    read.UseLeaf("fNumFirstLevel");
    395403
    396404    MMcThresholdCalc calc(dim);
Note: See TracChangeset for help on using the changeset viewer.