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

Last change on this file since 4921 was 4920, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.8 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 MTime *fTime; //!
30 MParameterDerr *fParam; //!
31
32 TH2D fH2DeltaT; // Counts vs Delta T and Theta
33 TH1D fH1DeltaT; //! Counts vs Delta T (for a time interval)
34
35 TH1D fHEffOnTheta; // Effective On time versus Theta
36 TH1D fHEffOnTime; // Effective On time versus Time
37
38 TH1D fHProbTheta; // Chisq prob fit of Effective On time versus Theta
39 TH1D fHProbTime; // Chisq prob fit of Effective On time versus Time
40
41 TH1D fHN0;
42 TH1D fHLambda;
43
44 Bool_t fIsFinalized;
45
46 Int_t fNumEvents;
47
48 const TString fNameProjDeltaT; //! This should make sure, that gROOT doen't confuse the projection with something else
49 const TString fNameProjTheta; //! This should make sure, that gROOT doen't confuse the projection with something else
50
51 Bool_t FitH(TH1D *h, Double_t *res, Bool_t paint=kFALSE) const;
52 void FitThetaBins();
53 void FitTimeBin();
54 void PaintText(Double_t val, Double_t error) const;
55
56public:
57 MHEffectiveOnTime(const char *name=NULL, const char *title=NULL);
58
59 void SetNumEvents(Int_t i) { fNumEvents=i; }
60
61 Bool_t SetupFill(const MParList *pList);
62 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
63 Bool_t Finalize();
64
65 void Draw(Option_t *option="");
66 void Paint(Option_t *opt="");
67
68 ClassDef(MHEffectiveOnTime, 1) // 2D-histogram to determin effective on-time vs. theta
69};
70
71#endif
72
Note: See TracBrowser for help on using the repository browser.