source: trunk/MagicSoft/Mars/mhist/MFillH.h@ 1992

Last change on this file since 1992 was 1992, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MFillH
2#define MARS_MFillH
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MH;
9class MMap;
10class MData;
11class MWeight;
12class MParList;
13
14class TCanvas;
15
16class MFillH : public MTask
17{
18private:
19 MParContainer *fParContainer;
20 TString fParContainerName;
21
22 MH* fH;
23 TString fHName;
24
25 MWeight *fWeight;
26 TString fWeightName;
27
28 MData *fIndex; // MData object describing the 'key' to an automatic index for an MHArray
29 MMap *fMapIdx; //! Map to map key-index-pair for an MHArray (MMap see MFillH.cc)
30
31 TCanvas *fCanvas;
32
33 TString ExtractName(const char *name) const;
34 TString ExtractClass(const char *name) const;
35
36 void Init(const char *name, const char *title);
37
38 void StreamPrimitive(ofstream &out) const;
39
40 Bool_t DrawToDisplay();
41
42public:
43 MFillH();
44 MFillH(const char *hist, const char *par=NULL, const char *name=NULL, const char *title=NULL);
45 MFillH(const char *hist, MParContainer *par, const char *name=NULL, const char *title=NULL);
46 MFillH(MH *hist, const char *par=NULL, const char *name=NULL, const char *title=NULL);
47 MFillH(MH *hist, MParContainer *par, const char *name=NULL, const char *title=NULL);
48 ~MFillH();
49
50 void SetRuleForIdx(const TString rule);
51 void SetRuleForIdx(MData *rule);
52
53 void SetWeight(MWeight *w) { fWeight = w; }
54 void SetWeight(const char *name) { fWeightName = name; }
55
56 Bool_t PreProcess(MParList *pList);
57 Bool_t Process();
58 Bool_t PostProcess();
59
60 ClassDef(MFillH, 1) // Task to fill a histogram with data from a parameter container
61};
62
63#endif
64
Note: See TracBrowser for help on using the repository browser.