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

Last change on this file since 1942 was 1574, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.3 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 MData;
10class MParList;
11
12class MMap;
13
14class MFillH : public MTask
15{
16private:
17 MParContainer *fParContainer;
18 TString fParContainerName;
19
20 MH* fH;
21 TString fHName;
22
23 MData *fIndex; // MData object describing the 'key' to an automatic index for an MHArray
24 MMap *fMapIdx; //! Map to map key-index-pair for an MHArray (MMap see MFillH.cc)
25
26 TString ExtractName(const char *name) const;
27 TString ExtractClass(const char *name) const;
28
29 void Init(const char *name, const char *title);
30
31 void StreamPrimitive(ofstream &out) const;
32
33public:
34 MFillH();
35 MFillH(const char *hist, const char *par=NULL, const char *name=NULL, const char *title=NULL);
36 MFillH(const char *hist, MParContainer *par, const char *name=NULL, const char *title=NULL);
37 MFillH(MH *hist, const char *par=NULL, const char *name=NULL, const char *title=NULL);
38 MFillH(MH *hist, MParContainer *par, const char *name=NULL, const char *title=NULL);
39
40 ~MFillH();
41
42 void SetRuleForIdx(const TString rule);
43 void SetRuleForIdx(MData *rule);
44
45 Bool_t PreProcess(MParList *pList);
46 Bool_t Process();
47 Bool_t PostProcess();
48
49 ClassDef(MFillH, 1) // Task to fill a histogram with data from a parameter container
50};
51
52#endif
53
Note: See TracBrowser for help on using the repository browser.