Ignore:
Timestamp:
01/11/02 17:32:40 (23 years ago)
Author:
blanch
Message:
The list of MHMcRate is created usinf from and to instead of
only dimension. Otherwise the case of a single trigger option is
not well treated.
File:
1 edited

Legend:

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

    r1008 r1163  
    6666    Int_t num = to-from+1;
    6767
    68     TObjArray hists(MParList::CreateObjList("MHMcRate", num));
     68    TObjArray hists(MParList::CreateObjList("MHMcRate", from, to));
    6969    hists.SetOwner();
    7070
     
    9090    tasklist.AddToList(&reader);
    9191
    92     Float_t BgR[10]={660, 4, 0, 0, 0, 0, 0, 0, 0, 0};
     92    Float_t BgR[10]={0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
    9393    cout << "Number of Trigger conditions: " << num << endl;
    9494
    95     MMcTriggerRateCalc rate(num, 14, BgR, 100000);
     95    MMcTriggerRateCalc rate(dim, 14, BgR, 100000);
    9696    tasklist.AddToList(&rate);
    9797
Note: See TracChangeset for help on using the changeset viewer.