source: tags/Mars-V0.9.5.1/manalysis/MMultiDimDistCalc.h

Last change on this file was 7130, checked in by tbretz, 20 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 MParameterD;
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 MParameterD *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 Int_t PreProcess(MParList *plist);
30 Int_t Process();
31
32public:
33 MMultiDimDistCalc(const char *name=NULL, const char *title=NULL);
34
35 void SetHadronnessName(const TString name) { fHadronnessName = name; }
36 TString GetHadronnessName() const { return fHadronnessName; }
37
38 void SetUseNumRows(UShort_t n=0) { fNum = n; }
39 void SetUseKernelMethod(Bool_t k=kTRUE) { fUseKernel = k; }
40
41 ClassDef(MMultiDimDistCalc, 1) // Task to calculate nearest neighbor-/kernel-hadronness
42};
43
44#endif
45
46
47
Note: See TracBrowser for help on using the repository browser.