source: trunk/MagicSoft/Mars/mjobs/MJSpectrum.h@ 6964

Last change on this file since 6964 was 6958, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MJSpectrum
2#define MARS_MJSpectrum
3
4#ifndef MARS_MJob
5#include <MJob.h>
6#endif
7
8class TH1;
9class TH1D;
10
11class MH3;
12class MTask;
13class MParList;
14class MDataSet;
15class MAlphaFitter;
16
17class MJSpectrum : public MJob
18{
19private:
20 MTask *fCut0;
21 MTask *fCut1;
22 MTask *fCut2;
23 MTask *fCut3;
24 MTask *fEstimateEnergy;
25
26 Bool_t fRefill;
27 Bool_t fSimpleMode;
28
29 Bool_t ReadTask(MTask* &task, const char *name) const;
30 Bool_t ReadInput(const MParList &plist);
31 void PrintSetup(const MAlphaFitter &fit) const;
32 Float_t ReadHistograms(TH1D &h1, TH1D &h2) const;
33 Bool_t ReadOrigMCDistribution(const MDataSet &set, TH1 &h) const;
34 Bool_t GetThetaDistribution(TH1D &temp1, TH1D &temp2) const;
35 void DisplayResult(const MH3 &mh1) const;
36 Bool_t Refill(MParList &plist, TH1D &h) const;
37
38public:
39 MJSpectrum(const char *name=NULL, const char *title=NULL);
40 ~MJSpectrum();
41
42 Bool_t Process(const MDataSet &set);
43
44 void EnableRefilling(Bool_t b=kTRUE) { fRefill=b; }
45 void EnableSimpleMode(Bool_t b=kTRUE) { fSimpleMode=b; }
46
47 ClassDef(MJSpectrum, 0) // Proh'gram to calculate spectrum
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.