source: trunk/MagicSoft/Mars/mhist/MHFalseSource.h@ 3622

Last change on this file since 3622 was 3597, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 2.0 KB
Line 
1#ifndef MARS_MHFalseSource
2#define MARS_MHFalseSource
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8#ifndef ROOT_TH3
9#include <TH3.h>
10#endif
11
12class TH2D;
13
14class MHillasSrc;
15class MEnergyEst;
16class MParList;
17class MTime;
18class MPointingPos;
19class MObservatory;
20
21class MHFalseSource : public MH
22{
23private:
24 MTime *fTime; //! container to take the event time from
25 MPointingPos *fPointPos; //! container to take pointing position from
26 MObservatory *fObservatory; //! conteiner to take observatory location from
27
28 Float_t fMm2Deg; // conversion factor for display in degrees
29 Bool_t fUseMmScale; // which scale to use?
30
31 Float_t fAlphaCut; // Alpha cut
32 Float_t fBgMean; // Background mean
33
34 TH3D fHist; // Alpha vs. x and y
35
36 Int_t DistancetoPrimitive(Int_t px, Int_t py);
37 void Modified();
38
39 void ProjectOff(TH2D *h);
40 void ProjectOn(TH2D *h);
41
42public:
43 MHFalseSource(const char *name=NULL, const char *title=NULL);
44
45 Bool_t SetupFill(const MParList *pList);
46 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
47
48 void SetMmScale(Bool_t mmscale=kTRUE);
49 void SetMm2Deg(Float_t mmdeg);
50
51 TH1 *GetHistByName(const TString name) { return &fHist; }
52
53 void FitSignificance(Float_t sigint=15, Float_t sigmax=70, Float_t bgmin=40, Float_t bgmax=70, Byte_t polynom=1); //*MENU*
54 void FitSignificanceStd() { FitSignificance(); } //*MENU*
55
56 void SetAlphaCut(Float_t alpha); //*MENU*
57 void SetAlphaPlus5() { SetAlphaCut(fAlphaCut+5); } //*MENU*
58 void SetAlphaMinus5() { SetAlphaCut(fAlphaCut-5); } //*MENU*
59
60 void SetBgMean(Float_t alpha); //*MENU*
61 void SetBgMeanPlus5() { SetBgMean(fBgMean+5); } //*MENU*
62 void SetBgMeanMinus5() { SetBgMean(fBgMean-5); } //*MENU*
63
64 void Paint(Option_t *opt="");
65 void Draw(Option_t *option="");
66
67 static Double_t Significance(Double_t s, Double_t b);
68 static Double_t SignificanceLiMa(Double_t s, Double_t b, Double_t alpha=1);
69
70 ClassDef(MHFalseSource, 1) //3D-histogram in alpha, x and y
71};
72
73#endif
Note: See TracBrowser for help on using the repository browser.