Ignore:
Timestamp:
01/13/04 09:33:30 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MEventRate.cc

    r2590 r2779  
    2727// MEventRate
    2828//
    29 // Storage Container for the event rate
     29// Storage Container for the event rate.
     30//
     31//    rate = Number of events / time in which the events were recorded
     32//       r = N / t
     33//       s = t / N  = 1 / r    mean time interval between consecutive events
     34//
     35//    for an exponential distribution of the time differences d between
     36//    consecutive events:
     37//
     38//       s = <d>
     39//       sigma(d)     = <d> = s
     40//       delta(s)     = sigma(d) /sqrt(N) = s / sqrt(N)
     41//       delta(s) / s = 1 / sqrt(N)
     42//
     43//       delta(r) / r = delta(s) / s = 1 / sqrt(N)
    3044//
    3145/////////////////////////////////////////////////////////////////////////////
  • trunk/MagicSoft/Mars/manalysis/MEventRate.h

    r2626 r2779  
    1717    void SetRate(Double_t r, UInt_t n) { fRate = r; fNumEvents = n; }
    1818    Double_t GetRate() const { return fRate; }
     19    Double_t GetError() const { return TMath::Sqrt(1./fNumEvents); }
    1920    UInt_t GetNumEvents() const { return fNumEvents; }
    2021
  • trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc

    r2744 r2779  
    3030//
    3131//  The algorithm is explained in Process()
     32//
     33//
     34//    rate = Number of events / time in which the events were recorded
     35//       r = N / t
     36//       s = t / N  = 1 / r    mean time interval between consecutive events
     37//
     38//    for an exponential distribution of the time differences d between
     39//    consecutive events:
     40//
     41//       s = <d>
     42//       sigma(d)     = <d> = s
     43//       delta(s)     = sigma(d) /sqrt(N) = s / sqrt(N)
     44//       delta(s) / s = 1 / sqrt(N)
     45//
     46//       delta(r) / r = delta(s) / s = 1 / sqrt(N)
     47//
    3248//
    3349//  Input Containers:
Note: See TracChangeset for help on using the changeset viewer.