source: trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.h@ 1910

Last change on this file since 1910 was 1910, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MMultiDimDistCalc
2#define MARS_MMultiDimDistCalc
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MHMatrix;
9class MParList;
10class MDataArray;
11class MHadronness;
12
13class MMultiDimDistCalc : public MTask
14{
15private:
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
30public:
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.