Changeset 2744 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 12/22/03 20:35:39 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc
r2678 r2744 29 29 // This task calculates the event rates from the event times and numbers. 30 30 // 31 // It is under construction: More information comming soon.... 32 // 31 // The algorithm is explained in Process() 33 32 // 34 33 // Input Containers: … … 38 37 // MEventRate 39 38 // MTimeRate [MTime] (missing) 39 // 40 // FIXME: For convinience we could implement a mode which always takes 41 // n events to calculate the event rate and sets the corresponding 42 // time. This mode could be used to UPADTE files with the event 43 // rate. 40 44 // 41 45 ////////////////////////////////////////////////////////////////////////////// … … 68 72 // 69 73 // The PreProcess searches for the following input containers: 70 // ... 74 // MTime 75 // 76 // The PreProcess searches for the following input containers: 77 // MEventRate 78 // 79 // Reset all times in the buffer 71 80 // 72 81 Int_t MEventRateCalc::PreProcess(MParList *pList) … … 90 99 // -------------------------------------------------------------------------- 91 100 // 101 // Calculate the events rate as (t1-t0)/n while t1 is the n-th event after 102 // t0. If there are not yet enough events in the buffer n is the number 103 // of available events. Otherwise the number setup in SetNumEvents. 92 104 // 93 105 Int_t MEventRateCalc::Process() … … 109 121 fRate->SetReadyToSave(); 110 122 111 // *fLog << inf << " --- Event Rate [Hz]: " << rate << " (" << cnt << ")" << endl;112 113 123 return kTRUE; 114 124 }
Note:
See TracChangeset
for help on using the changeset viewer.