source: trunk/MagicSoft/Mars/manalysis/MEventRate.h@ 2777

Last change on this file since 2777 was 2626, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 603 bytes
Line 
1#ifndef MARS_MEventRate
2#define MARS_MEventRate
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MEventRate : public MParContainer
9{
10private:
11 Double_t fRate; // [Hz] Event rate
12 UInt_t fNumEvents; // Number of events correspoding to this rate
13
14public:
15 MEventRate(const char *name=NULL, const char *title=NULL);
16
17 void SetRate(Double_t r, UInt_t n) { fRate = r; fNumEvents = n; }
18 Double_t GetRate() const { return fRate; }
19 UInt_t GetNumEvents() const { return fNumEvents; }
20
21 ClassDef(MEventRate, 1) // Storage Container for the event rate
22};
23
24#endif
25
Note: See TracBrowser for help on using the repository browser.