Changeset 7193 for trunk/MagicSoft/Mars/mhflux/MHDisp.h
- Timestamp:
- 07/14/05 18:45:35 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhflux/MHDisp.h
r7173 r7193 5 5 #include "MHFalseSource.h" 6 6 #endif 7 #ifndef ROOT_TH2 8 #include <TH2.h> 9 #endif 10 #ifndef ROOT_TVector2 11 #include <TVector2.h> 12 #endif 7 13 8 14 class MParList; 9 15 class MHillasExt; 16 class MHillasSrc; 10 17 class MParameterD; 11 18 … … 13 20 { 14 21 private: 15 MHillasExt *fHilExt; //! 16 MParameterD *fDisp; //! 22 MHillasExt *fHilExt; //! 23 MHillasSrc *fHilSrc; //! 24 MParameterD *fDisp; //! 17 25 18 Double_t fM3lCut; //! 19 Double_t fXi; //! 20 Double_t fXiTheta; //! 26 TH2D fHistBg; 21 27 22 //Bool_t fIsWobble; 28 TH2D fHistBg1; 29 TH2D fHistBg2; 30 31 TVector2 fFormerSrc; 32 Bool_t fHalf; 33 34 Double_t fSmearing; 35 Bool_t fWobble; 23 36 24 37 // MHDisp 25 38 Double_t GetOffSignal(TH1 &h) const; 39 Double_t DeltaPhiSrc(const TVector2 &v) const; 40 41 void Profile(TH1 &h2, const TH2 &h1, Axis_t x0=0, Axis_t y0=0) const; 42 void MakeSignificance(TH2 &s, const TH2 &h1, const TH2 &h2, const Double_t scale=1) const; 43 void MakeDot(TH2 &h2) const; 44 45 Double_t Sq(Double_t x, Double_t y) const { return x*x+y*y; } 26 46 27 47 public: 28 48 MHDisp(const char *name=NULL, const char *title=NULL); 29 49 50 // MHDisp 51 void SetSmearing(Double_t s=-1) { fSmearing=s; } 52 void SetWobble(Bool_t w=kTRUE) { fWobble=w; } 53 54 // MHFalseSource (to be moved!) 55 void SetOffData(const MHFalseSource &fs) 56 { 57 MHFalseSource::SetOffData(fs); 58 if (dynamic_cast<const MHDisp*>(&fs)) 59 { 60 const MHDisp &h = dynamic_cast<const MHDisp&>(fs); 61 fWobble = h.fWobble; 62 fSmearing = h.fSmearing; 63 64 h.fHistBg1.Copy(fHistBg1); 65 h.fHistBg2.Copy(fHistBg2); 66 67 fHistBg1.SetDirectory(0); 68 fHistBg2.SetDirectory(0); 69 } 70 } 71 30 72 // MH 31 73 Bool_t SetupFill(const MParList *pList); 32 74 Bool_t Fill(const MParContainer *par, const Stat_t w=1); 75 Bool_t Finalize(); 33 76 34 77 // TObject … … 37 80 38 81 // MParContainer 39 //Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);82 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE); 40 83 41 ClassDef(MHDisp, 1) //3D-histogram in alpha, x and y84 ClassDef(MHDisp, 2) //Class to provide a Disp map 42 85 }; 43 86
Note:
See TracChangeset
for help on using the changeset viewer.