9GH2I::GH2I(
const char* name,
const char* title, Int_t nbinsx,
const Double_t* xbins, Int_t nbinsy,
const Double_t* ybins)
10 : TH2I(name, title, nbinsx, xbins, nbinsy, ybins)
14GH2I::GH2I(
const char* name,
const char* title, Int_t nbinsx,
const Float_t* xbins, Int_t nbinsy,
const Float_t* ybins)
15 : TH2I(name, title, nbinsx, xbins, nbinsy, ybins)
19GH2I::GH2I(
const char* name,
const char* title, Int_t nbinsx,
const Double_t* xbins, Int_t nbinsy, Double_t ylow, Double_t yup)
20 : TH2I(name, title, nbinsx, xbins, nbinsy, ylow, yup)
24GH2I::GH2I(
const char* name,
const char* title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, Double_t* ybins)
25 : TH2I(name, title, nbinsx, xlow, xup, nbinsy, ybins)
29GH2I::GH2I(
const char* name,
const char* title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, Double_t ylow, Double_t yup)
30 : TH2I(name, title, nbinsx, xlow, xup, nbinsy, ylow, yup)
36 if(obj.InheritsFrom(TH2::Class())) {
50 std::string name = newname;
51 if(name.length() == 0u) {
52 name = Form(
"%s_clone", GetName());
54 return TH2::Clone(name.c_str());
60 if(!sopt.Contains(
"projonly")) {
72 std::string option = opt;
76 TH2I::Draw(option.c_str());
79 gPad->GetFrame()->SetBit(TBox::kCannotMove);
85 TH1*
hist = TH2I::DrawCopy(opt, name_postfix);
88 gPad->GetFrame()->SetBit(TBox::kCannotMove);
95 TH1*
hist = TH2I::DrawNormalized(opt, norm);
98 gPad->GetFrame()->SetBit(TBox::kCannotMove);
virtual void GH2Clear(Option_t *opt="")
GH1D * GH2ProjectionY(const char *name="_py", int firstbin=0, int lastbin=-1, Option_t *option="", bool KeepEmpty=false)
GH1D * GH2ProjectionX(const char *name="_px", int firstbin=0, int lastbin=-1, Option_t *option="", bool KeepEmpty=false)
TObject * Clone(const char *newname="") const override
void Print(Option_t *opt="") const override
GH1D * ProjectionX(const char *name="_px", int firstbin=0, int lastbin=-1, Option_t *option="")
void Copy(TObject &) const override
TH1 * DrawNormalized(Option_t *opt="", Double_t norm=1) const override
void Clear(Option_t *opt="") override
TH1 * DrawCopy(Option_t *opt="", const char *name_postfix="_copy") const override
GH1D * ProjectionY(const char *name="_py", int firstbin=0, int lastbin=-1, Option_t *option="")
void Draw(Option_t *opt="") override