source: trunk/MagicSoft/Mars/mhist/MHEffectiveOnTime.h@ 4906

Last change on this file since 4906 was 4889, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MHEffectiveOnTime
2#define MARS_MHEffectiveOnTime
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7#ifndef MARS_MTime
8#include "MTime.h"
9#endif
10#ifndef ROOT_TH1
11#include <TH1.h>
12#endif
13#ifndef ROOT_TH2
14#include <TH2.h>
15#endif
16
17class MTime;
18class MPointingPos;
19class MParameterDerr;
20
21class MParList;
22
23class MHEffectiveOnTime : public MH
24{
25private:
26 MPointingPos *fPointPos; //!
27 MTime fLastTime; //!
28
29 Double_t fEffOnTime0; //!
30 Double_t fEffOnErr0; //!
31
32 MTime *fTime; //!
33 MParameterDerr *fParam; //!
34
35 TH2D fHTimeDiff;
36 TH1D fHEffOn;
37 TH1D fHChi2;
38 TH1D fHProb;
39 TH1D fHN0;
40 TH1D fHLambda;
41
42 Bool_t fIsFinalized;
43
44 Int_t fInterval;
45
46 Bool_t FitH(TH1D *h, Double_t *res) const;
47 void FitThetaBins();
48 void Calc();
49
50public:
51 MHEffectiveOnTime(const char *name=NULL, const char *title=NULL);
52
53 void SetInterval(Int_t i) { fInterval=i; }
54
55 Bool_t SetupFill(const MParList *pList);
56 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
57 Bool_t Finalize();
58
59 const TH2D *GetHist() { return &fHTimeDiff; }
60 const TH2D *GetHist() const { return &fHTimeDiff; }
61
62 TH1 *GetHistByName(const TString name) { return &fHTimeDiff; }
63
64 void Draw(Option_t *option="");
65 void Paint(Option_t *opt="");
66
67 ClassDef(MHEffectiveOnTime, 1) // 2D-histogram to determin effective on-time vs. theta
68};
69
70#endif
71
Note: See TracBrowser for help on using the repository browser.