| 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 |  | 
|---|
| 11 | class MHillas; | 
|---|
| 12 | class MSrcPosCam; | 
|---|
| 13 | class MParameterD; | 
|---|
| 14 |  | 
|---|
| 15 | class MHPhi : public MH | 
|---|
| 16 | { | 
|---|
| 17 | private: | 
|---|
| 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 PaintText(const TH1D &res) const; | 
|---|
| 40 |  | 
|---|
| 41 | // MH | 
|---|
| 42 | Bool_t SetupFill(const MParList *plist); | 
|---|
| 43 | Bool_t Fill(const MParContainer *par, const Stat_t w=1); | 
|---|
| 44 |  | 
|---|
| 45 | public: | 
|---|
| 46 | MHPhi(const char *name=NULL, const char *title=NULL); | 
|---|
| 47 |  | 
|---|
| 48 | // Setter | 
|---|
| 49 | void SetNumBinsSignal(UInt_t n)       { fNumBinsSignal=TMath::Max(n, 1U); } | 
|---|
| 50 | void SetUseAntiPhiCut(Bool_t b=kTRUE) { fUseAntiPhiCut=b; } | 
|---|
| 51 |  | 
|---|
| 52 | // TObject | 
|---|
| 53 | void Draw(Option_t *opt=""); | 
|---|
| 54 | void Paint(Option_t *opt=""); | 
|---|
| 55 |  | 
|---|
| 56 | // MParContainer | 
|---|
| 57 | Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); | 
|---|
| 58 |  | 
|---|
| 59 | ClassDef(MHPhi, 2) // Histogram for ring-method | 
|---|
| 60 | }; | 
|---|
| 61 |  | 
|---|
| 62 | #endif | 
|---|
| 63 |  | 
|---|
| 64 |  | 
|---|