Ignore:
Timestamp:
02/27/03 14:56:53 (22 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1797 r1800  
    131131        return;
    132132
     133    // Set for each MHMcRate object the trigger condition number in the
     134    // camera file (for the case of camera files with several conditions,
     135    // produced with the trigger_loop option.
     136    //
     137
     138    if (dim < 0)
     139      ((MHMcRate*)(hists[0]))->SetTriggerCondNum((Short_t)(-dim));
     140    else if (dim > 0)
     141      for (Short_t i = from ; i <= to; i++)
     142        ((MHMcRate*)(hists[i-1]))->SetTriggerCondNum(i);
     143
    133144    //
    134145    // Add the histograms to the paramater list.
     
    187198        gStyle->SetOptStat(0);
    188199        rate->Draw();
     200
     201        TFile f("ratehists.root", "recreate");
     202       
     203        rate->GetHist(2)->Write();
     204        rate->GetHist(3)->Write();
     205        rate->GetHist(4)->Write();
    189206      }
     207
     208
    190209}
    191 
    192 
    193 
    194 
Note: See TracChangeset for help on using the changeset viewer.