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