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