Line | |
---|
1 | #ifndef MARS_MMultiDimDistCalc
|
---|
2 | #define MARS_MMultiDimDistCalc
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MHMatrix;
|
---|
9 | class MParList;
|
---|
10 | class MDataArray;
|
---|
11 | class MHadronness;
|
---|
12 |
|
---|
13 | class MMultiDimDistCalc : public MTask
|
---|
14 | {
|
---|
15 | private:
|
---|
16 | Int_t fNum; // number of distances used for an avarage
|
---|
17 | Bool_t fUseKernel; // Flag whether kernel method should be used
|
---|
18 |
|
---|
19 | TString fHadronnessName; // Name of container storing hadronness
|
---|
20 |
|
---|
21 | MHMatrix *fMGammas; //! Gammas describing matrix
|
---|
22 | MHMatrix *fMHadrons; //! Hadrons (non gammas) describing matrix
|
---|
23 |
|
---|
24 | MHadronness *fHadronness; //! Output container for calculated hadroness
|
---|
25 |
|
---|
26 | MDataArray *fData; //! Used to store the MDataChains to get the event values
|
---|
27 |
|
---|
28 | void StreamPrimitive(ofstream &out) const;
|
---|
29 |
|
---|
30 | public:
|
---|
31 | MMultiDimDistCalc(const char *name=NULL, const char *title=NULL);
|
---|
32 | ~MMultiDimDistCalc();
|
---|
33 |
|
---|
34 | void SetHadronnessName(const TString name) { fHadronnessName = name; }
|
---|
35 | TString GetHadronnessName() const { return fHadronnessName; }
|
---|
36 |
|
---|
37 | void SetUseNumRows(UShort_t n=0) { fNum = n; }
|
---|
38 | void SetUseKernelMethod(Bool_t k=kTRUE) { fUseKernel = k; }
|
---|
39 |
|
---|
40 | Bool_t PreProcess(MParList *plist);
|
---|
41 | Bool_t Process();
|
---|
42 |
|
---|
43 | ClassDef(MMultiDimDistCalc, 0) // Task to calculate nearest neighbor-/kernel-hadronness
|
---|
44 | };
|
---|
45 |
|
---|
46 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.