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 |
|
---|
14 | class MWeight : public MParContainer
|
---|
15 | {
|
---|
16 | private:
|
---|
17 | Double_t fWeight;
|
---|
18 |
|
---|
19 | public:
|
---|
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.