GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
GH2D.h
Go to the documentation of this file.
1#ifndef GH2D__H
2#define GH2D__H
3
4#include <cstdio>
5
6#include <TNamed.h>
7#include <TH2.h>
8#include <TList.h>
9#include <TVirtualPad.h>
10#include <TFrame.h>
11
12#include <TCutG.h>
13#include <GH2Base.h>
14
15class GH1D;
16
17class GH2D : public TH2D, public GH2Base {
18
19public:
20 GH2D() = default;
21 GH2D(const char* name, const char* title, Int_t nbinsx, const Double_t* xbins, Int_t nbinsy, const Double_t* ybins);
22 GH2D(const char* name, const char* title, Int_t nbinsx, const Float_t* xbins, Int_t nbinsy, const Float_t* ybins);
23 GH2D(const char* name, const char* title, Int_t nbinsx, const Double_t* xbins, Int_t nbinsy, Double_t ylow, Double_t yup);
24 GH2D(const char* name, const char* title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, Double_t* ybins);
25 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);
26 explicit GH2D(const TObject&);
27 GH2D(const GH2D&) = default;
28 GH2D(GH2D&&) noexcept = default;
29 GH2D& operator=(const GH2D&) = default;
30 GH2D& operator=(GH2D&&) noexcept = default;
31 ~GH2D();
32
33 void Draw(Option_t* opt = "") override;
34 virtual void Draw(TCutG*);
35 TH1* DrawCopy(Option_t* opt = "", const char* name_postfix = "_copy") const override;
36 TH1* DrawNormalized(Option_t* opt = "", Double_t norm = 1) const override;
37
38 void Clear(Option_t* opt = "") override;
39 void Print(Option_t* opt = "") const override;
40 void Copy(TObject&) const override;
41 TObject* Clone(const char* newname = "") const override;
42
43 GH1D* ProjectionX(const char* name = "_px", int firstbin = 0, int lastbin = -1, Option_t* option = ""); // *MENU*
44
45 GH1D* ProjectionY(const char* name = "_py", int firstbin = 0, int lastbin = -1, Option_t* option = ""); // *MENU*
46
47 TH2* GetTH2() override { return this; }
48
49private:
50 /// /cond CLASSIMP
51 ClassDefOverride(GH2D, 1) // NOLINT(readability-else-after-return)
52 /// /endcond
53};
54
55#endif
Definition GH1D.h:19
Definition GH2D.h:17
GH1D * ProjectionX(const char *name="_px", int firstbin=0, int lastbin=-1, Option_t *option="")
Definition GH2D.cxx:114
void Print(Option_t *opt="") const override
Definition GH2D.cxx:68
GH2D(const GH2D &)=default
GH2D(GH2D &&) noexcept=default
TH1 * DrawNormalized(Option_t *opt="", Double_t norm=1) const override
Definition GH2D.cxx:104
void Draw(Option_t *opt="") override
Definition GH2D.cxx:72
TH1 * DrawCopy(Option_t *opt="", const char *name_postfix="_copy") const override
Definition GH2D.cxx:94
void Clear(Option_t *opt="") override
Definition GH2D.cxx:59
GH2D()=default
void Copy(TObject &) const override
Definition GH2D.cxx:43
TH2 * GetTH2() override
Definition GH2D.h:47
TObject * Clone(const char *newname="") const override
Definition GH2D.cxx:50
GH1D * ProjectionY(const char *name="_py", int firstbin=0, int lastbin=-1, Option_t *option="")
Definition GH2D.cxx:119