Changeset 7094 for trunk/MagicSoft/Mars/mhbase
- Timestamp:
- 05/27/05 09:46:22 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhbase/MFillH.h
r6915 r7094 63 63 64 64 void SetWeight(MParameterD *w) { fWeight = w; } 65 void SetWeight(const char *name ) { fWeightName = name; }65 void SetWeight(const char *name="MWeight") { fWeightName = name; } 66 66 67 67 void SetDrawOption(Option_t *option=""); -
trunk/MagicSoft/Mars/mhbase/MH3.h
r6978 r7094 26 26 Double_t fScale[3]; // Scale for the three axis (eg unit) 27 27 28 // TString fNameProfX; //! This should make sure, that gROOT doen't confuse the profile with something else29 // TString fNameProfY; //! This should make sure, that gROOT doen't confuse the profile with something else30 31 28 void StreamPrimitive(ofstream &out) const; 32 29 … … 36 33 kIsLogz = BIT(19) 37 34 }; 38 39 // Int_t DistancetoPrimitive(Int_t px, Int_t py);40 // void ExecuteEvent(Int_t event, Int_t px, Int_t py);41 35 42 36 public: … … 48 42 ~MH3(); 49 43 44 // Setter 50 45 void SetScaleX(Double_t scale) { fScale[0] = scale; } 51 46 void SetScaleY(Double_t scale) { fScale[1] = scale; } … … 56 51 void SetLogz(Bool_t b=kTRUE) { b ? fHist->SetBit(kIsLogz) : fHist->ResetBit(kIsLogz); } 57 52 53 void Sumw2() const { if (fHist) fHist->Sumw2(); } 54 55 // Getter 58 56 Int_t GetDimension() const { return fDimension; } 59 57 Int_t GetNbins() const; 60 58 Int_t FindFixBin(Double_t x, Double_t y=0, Double_t z=0) const; 61 59 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; } 67 62 68 63 TString GetDataMember() const; 69 64 TString GetRule(const Char_t axis='x') const; 70 65 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); 73 69 74 70 TH1 *GetHistByName(const TString name="") const { return fHist; } … … 79 75 } 80 76 77 // MParContainer 78 MParContainer *New() const; 79 80 // TObject 81 void SetName(const char *name); 82 void SetTitle(const char *title); 83 81 84 void SetColors() const; 82 85 void Draw(Option_t *opt=NULL); 83 86 void Paint(Option_t *opt=""); 84 85 MParContainer *New() const;86 87 87 88 ClassDef(MH3, 1) // Generalized 1/2/3D-histogram for Mars variables
Note:
See TracChangeset
for help on using the changeset viewer.