1 | #ifndef MARS_MCT1FindSupercuts
|
---|
2 | #define MARS_MCT1FindSupercuts
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TArrayD
|
---|
9 | #include <TArrayD.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | #include "MFilter.h"
|
---|
13 | #include "MEvtLoop.h"
|
---|
14 | #include "MH3.h"
|
---|
15 | #include "MCT1SupercutsCalc.h"
|
---|
16 | #include "MGeomCam.h"
|
---|
17 | #include "MHMatrix.h"
|
---|
18 |
|
---|
19 |
|
---|
20 | class MCT1FindSupercuts : public MParContainer
|
---|
21 | {
|
---|
22 | private:
|
---|
23 |
|
---|
24 | TString fFilenameTrain;
|
---|
25 | TString fFilenameTest;
|
---|
26 |
|
---|
27 | Int_t fHowManyTrain;
|
---|
28 | Int_t fHowManyTest;
|
---|
29 |
|
---|
30 | TString fFilenameParam;
|
---|
31 |
|
---|
32 | TString fHadronnessName;
|
---|
33 |
|
---|
34 | MCT1SupercutsCalc *fCalcHadTrain;
|
---|
35 | MCT1SupercutsCalc *fCalcHadTest;
|
---|
36 |
|
---|
37 | MHMatrix *fMatrixTrain;
|
---|
38 | MHMatrix *fMatrixTest;
|
---|
39 | MGeomCam *fCam;
|
---|
40 |
|
---|
41 | MEvtLoop *fObjectFit;
|
---|
42 |
|
---|
43 | MFilter *fMatrixFilter;
|
---|
44 |
|
---|
45 | // to comunicate with MINUIT -----------------
|
---|
46 | // attention : dimensions must agree with those in
|
---|
47 | // MMinuitInterface::CallMinuit()
|
---|
48 | char fParName [80][100];
|
---|
49 | Double_t fVinit[80];
|
---|
50 | Double_t fStep[80];
|
---|
51 | Double_t fLimlo[80];
|
---|
52 | Double_t fLimup[80];
|
---|
53 | Int_t fFix[80];
|
---|
54 |
|
---|
55 | UInt_t fNpar;
|
---|
56 |
|
---|
57 | TString fMethod;
|
---|
58 |
|
---|
59 | Double_t fMin, fEdm, fErrdef;
|
---|
60 | Int_t fNpari, fNparx, fIstat;
|
---|
61 | Int_t fErrMinimize;
|
---|
62 | //--------------------------------------------
|
---|
63 |
|
---|
64 |
|
---|
65 | public:
|
---|
66 | MCT1FindSupercuts(const char *name=NULL, const char *title=NULL);
|
---|
67 | ~MCT1FindSupercuts();
|
---|
68 |
|
---|
69 | void SetFilenameTraining(const TString &name, const Int_t howmany)
|
---|
70 | {fFilenameTrain = name; fHowManyTrain = howmany; }
|
---|
71 |
|
---|
72 | void SetFilenameTest(const TString &name, const Int_t howmany)
|
---|
73 | {fFilenameTest = name; fHowManyTest = howmany; }
|
---|
74 |
|
---|
75 | void SetFilenameParam(const TString &name) {fFilenameParam = name;}
|
---|
76 | void SetHadronnessName(const TString &name) {fHadronnessName = name;}
|
---|
77 |
|
---|
78 | void SetMatrixFilter(MFilter *filter) {fMatrixFilter = filter;}
|
---|
79 |
|
---|
80 | Bool_t DefineTrainMatrix(const TString &name, const Int_t howmany,
|
---|
81 | MH3 &href);
|
---|
82 |
|
---|
83 | Bool_t DefineTestMatrix(const TString &name, const Int_t howmany,
|
---|
84 | MH3 &href);
|
---|
85 |
|
---|
86 | Bool_t DefineTrainTestMatrix(const TString &name,
|
---|
87 | const Int_t howmanytrain, MH3 &hreftrain,
|
---|
88 | const Int_t howmanytest, MH3 &hreftest);
|
---|
89 |
|
---|
90 | Bool_t ReadMatrix( TString &filetrain, TString &filetest);
|
---|
91 | Bool_t WriteMatrix(TString &filetrain, TString &filetest);
|
---|
92 |
|
---|
93 | Bool_t FindParams();
|
---|
94 | Bool_t TestParams();
|
---|
95 |
|
---|
96 | ClassDef(MCT1FindSupercuts, 1) // Class for optimization of the Supercuts
|
---|
97 | };
|
---|
98 |
|
---|
99 | #endif
|
---|
100 |
|
---|
101 |
|
---|
102 |
|
---|
103 |
|
---|
104 |
|
---|
105 |
|
---|
106 |
|
---|
107 |
|
---|
108 |
|
---|
109 |
|
---|
110 |
|
---|
111 |
|
---|
112 |
|
---|
113 |
|
---|
114 |
|
---|
115 |
|
---|
116 |
|
---|
117 |
|
---|
118 |
|
---|