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

Last change on this file since 3552 was 3550, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.8 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(); //*MENU*
54
55 void SetAlphaCut(Float_t alpha); //*MENU*
56 void SetAlphaPlus5() { SetAlphaCut(fAlphaCut+5); } //*MENU*
57 void SetAlphaMinus5() { SetAlphaCut(fAlphaCut-5); } //*MENU*
58
59 void SetBgMean(Float_t alpha); //*MENU*
60 void SetBgMeanPlus5() { SetBgMean(fBgMean+5); } //*MENU*
61 void SetBgMeanMinus5() { SetBgMean(fBgMean-5); } //*MENU*
62
63 void Paint(Option_t *opt="");
64 void Draw(Option_t *option="");
65
66 static Double_t Significance(Double_t s, Double_t b);
67
68 ClassDef(MHFalseSource, 1) //3D-histogram in alpha, x and y
69};
70
71#endif
Note: See TracBrowser for help on using the repository browser.