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

Last change on this file since 6976 was 6966, 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;
10class TH2D;
11
12class MH3;
13class MTask;
14class MParList;
15class MDataSet;
16class MAlphaFitter;
17
18class MJSpectrum : public MJob
19{
20private:
21 MTask *fCut0;
22 MTask *fCut1;
23 MTask *fCut2;
24 MTask *fCut3;
25 MTask *fEstimateEnergy;
26
27 Bool_t fRefill;
28 Bool_t fSimpleMode;
29
30 Bool_t ReadTask(MTask* &task, const char *name) const;
31 Bool_t ReadInput(const MParList &plist);
32 void PrintSetup(const MAlphaFitter &fit) const;
33 Float_t ReadHistograms(TH1D &h1, TH1D &h2) const;
34 Bool_t ReadOrigMCDistribution(const MDataSet &set, TH1 &h) const;
35 Bool_t GetThetaDistribution(TH1D &temp1, TH1D &temp2) const;
36 void DisplayResult(const TH2D &mh1) const;
37 Bool_t Refill(MParList &plist, TH1D &h) const;
38
39public:
40 MJSpectrum(const char *name=NULL, const char *title=NULL);
41 ~MJSpectrum();
42
43 Bool_t Process(const MDataSet &set);
44
45 void EnableRefilling(Bool_t b=kTRUE) { fRefill=b; }
46 void EnableSimpleMode(Bool_t b=kTRUE) { fSimpleMode=b; }
47
48 ClassDef(MJSpectrum, 0) // Proh'gram to calculate spectrum
49};
50
51#endif
Note: See TracBrowser for help on using the repository browser.