Ignore:
Timestamp:
10/24/01 13:57:43 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r971 r984  
    2424
    2525
    26 void trigrate(int dim=0, char *filename = "/big0/Maggi/CamData/Gamma/gamma_15_on.root" )
     26void trigrate(int dim=0, char *filename = "data/camera.root" )
    2727{
    2828    // This macro has two input parameter:
     
    6767    // Check if the list really contains the right number of histograms
    6868    //
    69     if (hists.GetEntriesFast() != dim)
     69    if (hists.GetEntriesFast() != dim && dim)
    7070        return;
    7171
     
    8383    //
    8484    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");
    8591    tasklist.AddToList(&reader);
    8692
     
    8894    cout << "Number of Trigger conditions: " << dim << endl;
    8995
    90     MMcTriggerRateCalc rate(dim, 14, BgR, 100000, 2.75, 10.91e-2);
     96    MMcTriggerRateCalc rate(dim, 14, BgR, 100000);
    9197    tasklist.AddToList(&rate);
    9298
     
    104110
    105111    TIter Next(&hists);
    106     MHMcRate *rate=NULL;
    107     while ((rate=(MHMcRate*)Next()))
    108         rate->Print();
     112    MHMcRate *r=NULL;
     113    while ((r=(MHMcRate*)Next()))
     114        r->Print();
    109115}
Note: See TracChangeset for help on using the changeset viewer.