Ignore:
Timestamp:
05/27/05 09:46:22 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhbase/MFillH.h

    r6915 r7094  
    6363
    6464    void SetWeight(MParameterD *w)   { fWeight = w; }
    65     void SetWeight(const char *name) { fWeightName = name; }
     65    void SetWeight(const char *name="MWeight") { fWeightName = name; }
    6666
    6767    void      SetDrawOption(Option_t *option="");
  • trunk/MagicSoft/Mars/mhbase/MH3.h

    r6978 r7094  
    2626    Double_t    fScale[3];       // Scale for the three axis (eg unit)
    2727
    28     // TString     fNameProfX;      //! This should make sure, that gROOT doen't confuse the profile with something else
    29     // TString     fNameProfY;      //! This should make sure, that gROOT doen't confuse the profile with something else
    30 
    3128    void StreamPrimitive(ofstream &out) const;
    3229
     
    3633        kIsLogz = BIT(19)
    3734    };
    38 
    39 //    Int_t DistancetoPrimitive(Int_t px, Int_t py);
    40 //    void  ExecuteEvent(Int_t event, Int_t px, Int_t py);
    4135
    4236public:
     
    4842    ~MH3();
    4943
     44    // Setter
    5045    void SetScaleX(Double_t scale) { fScale[0] = scale; }
    5146    void SetScaleY(Double_t scale) { fScale[1] = scale; }
     
    5651    void SetLogz(Bool_t b=kTRUE) { b ? fHist->SetBit(kIsLogz) : fHist->ResetBit(kIsLogz); }
    5752
     53    void Sumw2() const { if (fHist) fHist->Sumw2(); }
     54
     55    // Getter
    5856    Int_t GetDimension() const { return fDimension; }
    5957    Int_t GetNbins() const;
    6058    Int_t FindFixBin(Double_t x, Double_t y=0, Double_t z=0) const;
    6159
    62     void SetName(const char *name);
    63     void SetTitle(const char *title);
    64 
    65     Bool_t SetupFill(const MParList *pList);
    66     Bool_t Fill(const MParContainer *par, const Stat_t w=1);
     60    TH1 &GetHist() { return *fHist; }
     61    const TH1 &GetHist() const { return *fHist; }
    6762
    6863    TString GetDataMember() const;
    6964    TString GetRule(const Char_t axis='x') const;
    7065
    71     TH1 &GetHist() { return *fHist; }
    72     const TH1 &GetHist() const { return *fHist; }
     66    // MH
     67    Bool_t SetupFill(const MParList *pList);
     68    Bool_t Fill(const MParContainer *par, const Stat_t w=1);
    7369
    7470    TH1 *GetHistByName(const TString name="") const { return fHist; }
     
    7975    }
    8076
     77    // MParContainer
     78    MParContainer *New() const;
     79
     80    // TObject
     81    void SetName(const char *name);
     82    void SetTitle(const char *title);
     83
    8184    void SetColors() const;
    8285    void Draw(Option_t *opt=NULL);
    8386    void Paint(Option_t *opt="");
    84 
    85     MParContainer *New() const;
    8687
    8788    ClassDef(MH3, 1) // Generalized 1/2/3D-histogram for Mars variables
Note: See TracChangeset for help on using the changeset viewer.