Changeset 2779 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 01/13/04 09:33:30 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MEventRate.cc
r2590 r2779 27 27 // MEventRate 28 28 // 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) 30 44 // 31 45 ///////////////////////////////////////////////////////////////////////////// -
trunk/MagicSoft/Mars/manalysis/MEventRate.h
r2626 r2779 17 17 void SetRate(Double_t r, UInt_t n) { fRate = r; fNumEvents = n; } 18 18 Double_t GetRate() const { return fRate; } 19 Double_t GetError() const { return TMath::Sqrt(1./fNumEvents); } 19 20 UInt_t GetNumEvents() const { return fNumEvents; } 20 21 -
trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc
r2744 r2779 30 30 // 31 31 // 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 // 32 48 // 33 49 // Input Containers:
Note:
See TracChangeset
for help on using the changeset viewer.