source: trunk/MagicSoft/Mars/mhbase/MWeight.h@ 4858

Last change on this file since 4858 was 2735, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 953 bytes
Line 
1#ifndef MARS_MWeight
2#define MARS_MWeight
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MWeight //
7// //
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef MARS_MParContainer
11#include "MParContainer.h"
12#endif
13
14class MWeight : public MParContainer
15{
16private:
17 Double_t fWeight;
18
19public:
20 MWeight(const char *name=NULL, const char *title=NULL) : fWeight(1)
21 {
22 fName = name ? name : "MWeight";
23 fTitle = title ? title : "A weight for filling histograms";
24 }
25
26 void SetWeight(Double_t weight) { fWeight = weight; }
27 Double_t GetWeight() const { return fWeight; }
28
29 ClassDef(MWeight, 1) // A weight for filling histograms
30};
31
32#endif
Note: See TracBrowser for help on using the repository browser.