21 GH1D(
const char* name,
const char* title, Int_t nbinsx,
const Float_t* xbins)
25 GH1D(
const char* name,
const char* title, Int_t nbinsx,
const Double_t* xbins)
29 GH1D(
const char* name,
const char* title, Int_t nbinsx, Double_t xlow, Double_t xup)
34 GH1D(
const TF1& function, Int_t nbinsx, Double_t xlow, Double_t xup);
36 explicit GH1D(
const TH1& source);
37 explicit GH1D(
const TH1* source);
44 void SetPad(TVirtualPad* pad);
49 void Clear(Option_t* opt =
"")
override;
50 void Print(Option_t* opt =
"")
const override;
51 void Copy(TObject& obj)
const override;
52 void Draw(Option_t* opt =
"")
override;
53 TH1*
DrawCopy(Option_t* opt =
"",
const char* name_postfix =
"copy")
const override;
54 TH1*
DrawNormalized(Option_t* opt =
"", Double_t norm = 1)
const override;
63 GH1D*
Project(
double value_low,
double value_high)
const;
70 void HandleMovement(Int_t eventType, Int_t eventX, Int_t eventY, TObject* selected);
92 TVirtualPad*
fPad{
nullptr};
107 ClassDefOverride(
GH1D, 1)
128 void Draw(Option_t* opt =
"")
override;
130 void Update(
double startX,
double stopX);
double fStartX
! initial x-position of new region
GH1D * Project_Background(double value_low, double value_high, double bg_value_low, double bg_value_high, EBackgroundSubtraction mode=EBackgroundSubtraction::kRegionBackground) const
TVirtualPad * Pad() const
void SetPad(TVirtualPad *pad)
GH1D(const char *name, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup)
void DrawRegions(Option_t *opt="")
std::array< int, 3 > fRegionColor
TH1 * DrawNormalized(Option_t *opt="", Double_t norm=1) const override
void HandleMovement(Int_t eventType, Int_t eventX, Int_t eventY, TObject *selected)
void RemoveCurrentRegion()
GH1D(const TVectorD &vec)
double fStartY
! initial y-position of new region
GH1D * GetNext(bool DrawEmpty=false) const
static EVerbosity fVerboseLevel
! level of verbosity
void Copy(TObject &obj) const override
size_t fNofRegions
! counts number of regions in this histogram, only used to set the color of the region
void Print(Option_t *opt="") const override
bool WriteDatFile(const char *outFile)
void Clear(Option_t *opt="") override
GH1D(const char *name, const char *title, Int_t nbinsx, const Double_t *xbins)
TBox * fCurrentRegion
! box for the current region
static void VerboseLevel(EVerbosity level)
GH1D * GetPrevious(bool DrawEmpty=false) const
static EVerbosity VerboseLevel()
TVirtualPad * GetPad() const
void HandleEvent(Event_t *event, Window_t window)
GH1D * Project(int bins=-1)
TH1 * DrawCopy(Option_t *opt="", const char *name_postfix="copy") const override
int GetProjectionAxis() const
void SetProjectionAxis(int axis)
void SetParent(TObject *obj)
GH1D(const char *name, const char *title, Int_t nbinsx, const Float_t *xbins)
void RemoveRegion(TRegion *region)
void Draw(Option_t *opt="") override
TObject * GetParent() const
TRegion(const TRegion &)=default
TRegion & operator=(TRegion &&)=default
void Draw(Option_t *opt="") override
TRegion(TRegion &&)=default
TRegion & operator=(const TRegion &)=default