Changeset 1008 for trunk


Ignore:
Timestamp:
10/29/01 13:23:39 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1007 r1008  
    9898     - changed fName, fTitle from pointer to static object
    9999     - changed to use auto enabling scheme
    100      
     100
     101   * macros/threshold.C, macros/collarea.C, macros/trigrate.C:
     102     - removed UseLeaf
     103
    101104   * mraw/MRawFileWrite.cc:
    102105     - changed fName, fTitle from pointer to static object
  • trunk/MagicSoft/Mars/macros/threshold.C

    r988 r1008  
    7878    //
    7979    MReadTree read("Events", filename);
    80     read.UseLeaf("fEnergy");
    81     read.UseLeaf("fNumFirstLevel");
    82 
    8380    MMcThresholdCalc calc(numtrigcond);
    8481
     
    9996    // Now you can display the results
    10097    //
     98    hists.Print();
     99
    101100    TIter Next(&hists);
    102101    TObject *obj;
  • trunk/MagicSoft/Mars/macros/trigrate.C

    r988 r1008  
    6161    // macro yet)
    6262    //
    63     TObjArray hists(MParList::CreateObjList("MHMcRate", dim));
     63    UInt_t from = dim>0 ?   1 : -dim;
     64    UInt_t to   = dim>0 ? dim : -dim;
     65
     66    Int_t num = to-from+1;
     67
     68    TObjArray hists(MParList::CreateObjList("MHMcRate", num));
    6469    hists.SetOwner();
    6570
     
    6772    // Check if the list really contains the right number of histograms
    6873    //
    69     if (hists.GetEntriesFast() != dim && dim)
     74    if (hists.GetEntriesFast() != num)
    7075        return;
    7176
     
    8388    //
    8489    MReadTree reader("Events", filename);
    85     reader.UseLeaf("fImpact");
    86     reader.UseLeaf("fEnergy");
    87     reader.UseLeaf("fPhi");
    88     reader.UseLeaf("fTheta");
    89     reader.UseLeaf("fNumFirstLevel");
    90     reader.UseLeaf("fPhotElfromShower");
    9190    tasklist.AddToList(&reader);
    9291
    9392    Float_t BgR[10]={660, 4, 0, 0, 0, 0, 0, 0, 0, 0};
    94     cout << "Number of Trigger conditions: " << dim << endl;
     93    cout << "Number of Trigger conditions: " << num << endl;
    9594
    96     MMcTriggerRateCalc rate(dim, 14, BgR, 100000);
     95    MMcTriggerRateCalc rate(num, 14, BgR, 100000);
    9796    tasklist.AddToList(&rate);
    9897
Note: See TracChangeset for help on using the changeset viewer.