9GH2D::GH2D(
const char* name,
const char* title, Int_t nbinsx,
const Double_t* xbins, Int_t nbinsy,
const Double_t* ybins)
10 : TH2D(name, title, nbinsx, xbins, nbinsy, ybins)
14GH2D::GH2D(
const char* name,
const char* title, Int_t nbinsx,
const Float_t* xbins, Int_t nbinsy,
const Float_t* ybins)
15 : TH2D(name, title, nbinsx, xbins, nbinsy, ybins)
19GH2D::GH2D(
const char* name,
const char* title, Int_t nbinsx,
const Double_t* xbins, Int_t nbinsy, Double_t ylow, Double_t yup)
20 : TH2D(name, title, nbinsx, xbins, nbinsy, ylow, yup)
24GH2D::GH2D(
const char* name,
const char* title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, Double_t* ybins)
25 : TH2D(name, title, nbinsx, xlow, xup, nbinsy, ybins)
29GH2D::GH2D(
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 : TH2D(name, title, nbinsx, xlow, xup, nbinsy, ylow, yup)
36 if(obj.InheritsFrom(TH2::Class())) {
52 std::string name = newname;
53 if(name.length() == 0u) {
54 name = Form(
"%s_clone", GetName());
56 return TH2::Clone(name.c_str());
62 if(!sopt.Contains(
"projonly")) {
74 std::string option = opt;
78 TH2D::Draw(option.c_str());
81 gPad->GetFrame()->SetBit(TBox::kCannotMove);
90 std::string option = Form(
"colz [%s]", cut->GetName());
91 TH2D::Draw(option.c_str());
96 TH1*
hist = TH2D::DrawCopy(opt, name_postfix);
99 gPad->GetFrame()->SetBit(TBox::kCannotMove);
106 TH1*
hist = TH2D::DrawNormalized(opt, norm);
107 if(gPad !=
nullptr) {
109 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)
GH1D * ProjectionX(const char *name="_px", int firstbin=0, int lastbin=-1, Option_t *option="")
void Print(Option_t *opt="") const override
TH1 * DrawNormalized(Option_t *opt="", Double_t norm=1) const override
void Draw(Option_t *opt="") override
TH1 * DrawCopy(Option_t *opt="", const char *name_postfix="_copy") const override
void Clear(Option_t *opt="") override
void Copy(TObject &) const override
TObject * Clone(const char *newname="") const override
GH1D * ProjectionY(const char *name="_py", int firstbin=0, int lastbin=-1, Option_t *option="")