source: trunk/MagicSoft/Mars/mhflux/MHPhi.h@ 7594

Last change on this file since 7594 was 7594, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.8 KB
Line 
1#ifndef MARS_MHPhi
2#define MARS_MHPhi
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7#ifndef ROOT_TH1
8#include <TH1.h>
9#endif
10
11class MHillas;
12class MSrcPosCam;
13class MParameterD;
14
15class MHPhi : public MH
16{
17private:
18 TH1D fHPhi; // Phi plot of the signal w.r.t. source
19 TH1D fHPhiOff; // Phi plot of the signal w.r.t. source+180deg
20 TH1D fHTemplate; // Template how the background should look in the ideal case
21
22 TH1D fHInhom; // Phi plot off the signal w.r.t. source (out of the ring with the signal)
23 TH1D fHInhomOff; // Phi plot off the signal w.r.t. source+180deg (out of the ring with the signal)
24
25 MHillas *fHillas; //! Pointer to input container "MHillas"
26 MSrcPosCam *fSrcPos; //! Pointer to input container "MSrcPosCam"
27 MParameterD *fDisp; //! Pointer to input container "Disp"
28
29 Double_t fConvMm2Deg; //! Conversion factor from camera geometry
30
31 Int_t fNumBinsSignal; // Number of bins for signal region
32 Float_t fThetaCut; // Theta cut
33 Float_t fDistSrc; // Nominal distance of source from center in wobble
34
35 Bool_t fUseAntiPhiCut; // Whether to use a anti-phi cut or not
36
37 // Paint
38 void PaintUpdate() const;
39 void PaintResult() const;
40 void PaintText(const TH1D &res) const;
41
42 // MH
43 Bool_t SetupFill(const MParList *plist);
44 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
45
46public:
47 MHPhi(const char *name=NULL, const char *title=NULL);
48
49 // Setter
50 void SetNumBinsSignal(UInt_t n) { fNumBinsSignal=TMath::Max(n, 1U); }
51 void SetUseAntiPhiCut(Bool_t b=kTRUE) { fUseAntiPhiCut=b; }
52
53 // TObject
54 void Draw(Option_t *opt="");
55 void Paint(Option_t *opt="");
56
57 // MParContainer
58 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
59
60 ClassDef(MHPhi, 2) // Histogram for ring-method
61};
62
63#endif
64
65
Note: See TracBrowser for help on using the repository browser.