Ignore:
Timestamp:
07/14/05 18:45:35 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MHDisp.h

    r7173 r7193  
    55#include "MHFalseSource.h"
    66#endif
     7#ifndef ROOT_TH2
     8#include <TH2.h>
     9#endif
     10#ifndef ROOT_TVector2
     11#include <TVector2.h>
     12#endif
    713
    814class MParList;
    915class MHillasExt;
     16class MHillasSrc;
    1017class MParameterD;
    1118
     
    1320{
    1421private:
    15     MHillasExt  *fHilExt;  //!
    16     MParameterD *fDisp;    //!
     22    MHillasExt   *fHilExt;  //!
     23    MHillasSrc   *fHilSrc;  //!
     24    MParameterD  *fDisp;    //!
    1725
    18     Double_t     fM3lCut;  //!
    19     Double_t     fXi;      //!
    20     Double_t     fXiTheta; //!
     26    TH2D         fHistBg;
    2127
    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;
    2336
    2437    // MHDisp
    2538    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; }
    2646
    2747public:
    2848    MHDisp(const char *name=NULL, const char *title=NULL);
    2949
     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
    3072    // MH
    3173    Bool_t SetupFill(const MParList *pList);
    3274    Bool_t Fill(const MParContainer *par, const Stat_t w=1);
     75    Bool_t Finalize();
    3376
    3477    // TObject
     
    3780
    3881    // 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);
    4083
    41     ClassDef(MHDisp, 1) //3D-histogram in alpha, x and y
     84    ClassDef(MHDisp, 2) //Class to provide a Disp map
    4285};
    4386
Note: See TracChangeset for help on using the changeset viewer.