source: trunk/MagicSoft/Mars/mranforest/MRanForestCalc.h@ 5138

Last change on this file since 5138 was 2862, checked in by hengsteb, 21 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MRanForestCalc
2#define MARS_MRanForestCalc
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8#ifndef MARS_MHMatrix
9#include "MHMatrix.h"
10#endif
11
12class MParList;
13class MHadronness;
14class MDataArray;
15class MRanTree;
16class MRanForest;
17
18class MRanForestCalc : public MTask
19{
20private:
21 Int_t fNum; // number of trees used to compute hadronness
22
23 TString fHadronnessName; // Name of container storing hadronness
24
25 MHadronness *fHadroness; //! Output container for calculated hadroness
26 MDataArray *fData; //! Used to store the MDataChains to get the event values
27 MRanForest *fRanForest;
28 MRanTree *fRanTree;
29
30 Int_t PreProcess(MParList *plist);
31 Int_t Process();
32
33public:
34 MRanForestCalc(const char *name=NULL, const char *title=NULL);
35 ~MRanForestCalc();
36
37 void SetHadronnessName(const TString name) { fHadronnessName = name; }
38 TString GetHadronnessName() const { return fHadronnessName; }
39
40 void SetUseNumTrees(UShort_t n=100) { fNum = n; }
41
42 Bool_t Grow(MHMatrix *matrixg,MHMatrix *matrixh,Int_t ntree,
43 Int_t numtry,Int_t ndsize,const char* treefile=0,
44 const char* treename=0,const char* contname=0,
45 const char* hgininame=0);
46
47 Bool_t Fill(Int_t ntree,const char* treefile=0,const char* treename=0);
48
49
50 ClassDef(MRanForestCalc, 0) // Task
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.