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

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