GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
GH1D Class Reference

Definition at line 11 of file GH1D.h.

Public Member Functions

 GH1D ()
 
 GH1D (const TVectorD &v)
 
 GH1D (const char *name, const char *title, Int_t nbinsx, const Float_t *xbins)
 
 GH1D (const char *name, const char *title, Int_t nbinsx, const Double_t *xbins)
 
 GH1D (const char *name, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup)
 
 GH1D (const TF1 &function, Int_t nbinsx, Double_t xlow, Double_t xup)
 
 GH1D (const TH1 &source)
 
void Clear (Option_t *opt="") override
 
void Copy (TObject &obj) const override
 
void Draw (Option_t *opt="") override
 
TH1 * DrawCopy (Option_t *opt="", const char *name_postfix="copy") const override
 
TH1 * DrawNormalized (Option_t *opt="", Double_t norm=1) const override
 
GH1DGetNext (bool DrawEmpty=false) const
 
TObject * GetParent () const
 
GH1DGetPrevious (bool DrawEmpty=false) const
 
int GetProjectionAxis () const
 
void Print (Option_t *opt="") const override
 
GH1DProject (int bins=-1)
 
GH1DProject (double value_low, double value_high) const
 
GH1DProject_Background (double value_low, double value_high, double bg_value_low, double bg_value_high, EBackgroundSubtraction mode=EBackgroundSubtraction::kRegionBackground) const
 
void SetParent (TObject *obj)
 
void SetProjectionAxis (int axis)
 
bool WriteDatFile (const char *outFile)
 

Private Attributes

TRef parent
 
int projection_axis
 

#include <GH1D.h>

+ Inheritance diagram for GH1D:
+ Collaboration diagram for GH1D:

Constructor & Destructor Documentation

◆ GH1D() [1/7]

GH1D::GH1D ( )
inline

Definition at line 13 of file GH1D.h.

Referenced by Project().

◆ GH1D() [2/7]

GH1D::GH1D ( const TVectorD &  v)
inline

Definition at line 14 of file GH1D.h.

◆ GH1D() [3/7]

GH1D::GH1D ( const char *  name,
const char *  title,
Int_t  nbinsx,
const Float_t *  xbins 
)
inline

Definition at line 15 of file GH1D.h.

◆ GH1D() [4/7]

GH1D::GH1D ( const char *  name,
const char *  title,
Int_t  nbinsx,
const Double_t *  xbins 
)
inline

Definition at line 19 of file GH1D.h.

◆ GH1D() [5/7]

GH1D::GH1D ( const char *  name,
const char *  title,
Int_t  nbinsx,
Double_t  xlow,
Double_t  xup 
)
inline

Definition at line 23 of file GH1D.h.

◆ GH1D() [6/7]

GH1D::GH1D ( const TF1 &  function,
Int_t  nbinsx,
Double_t  xlow,
Double_t  xup 
)

Definition at line 23 of file GH1D.cxx.

◆ GH1D() [7/7]

GH1D::GH1D ( const TH1 &  source)

Definition at line 18 of file GH1D.cxx.

Member Function Documentation

◆ Clear()

void GH1D::Clear ( Option_t *  opt = "")
override

Definition at line 84 of file GH1D.cxx.

References parent.

◆ Copy()

void GH1D::Copy ( TObject &  obj) const
override

Definition at line 96 of file GH1D.cxx.

References parent.

◆ Draw()

void GH1D::Draw ( Option_t *  opt = "")
override

◆ DrawCopy()

TH1 * GH1D::DrawCopy ( Option_t *  opt = "",
const char *  name_postfix = "copy" 
) const
override

Definition at line 122 of file GH1D.cxx.

◆ DrawNormalized()

TH1 * GH1D::DrawNormalized ( Option_t *  opt = "",
Double_t  norm = 1 
) const
override

Definition at line 133 of file GH1D.cxx.

◆ GetNext()

GH1D * GH1D::GetNext ( bool  DrawEmpty = false) const

Definition at line 156 of file GH1D.cxx.

References GH2Base::GetNext(), and parent.

Referenced by GCanvas::Process1DArrowKeyPress().

◆ GetParent()

TObject* GH1D::GetParent ( ) const
inline

Definition at line 34 of file GH1D.h.

References parent.

Referenced by GCanvas::Process1DKeyboardPress().

◆ GetPrevious()

GH1D * GH1D::GetPrevious ( bool  DrawEmpty = false) const

Definition at line 143 of file GH1D.cxx.

References GH2Base::GetPrevious(), and parent.

Referenced by GCanvas::Process1DArrowKeyPress().

◆ GetProjectionAxis()

int GH1D::GetProjectionAxis ( ) const
inline

Definition at line 37 of file GH1D.h.

References projection_axis.

◆ Print()

void GH1D::Print ( Option_t *  opt = "") const
override

Definition at line 90 of file GH1D.cxx.

References parent.

◆ Project() [1/2]

GH1D * GH1D::Project ( int  bins = -1)

Definition at line 219 of file GH1D.cxx.

References GH1D().

Referenced by GetProjection(), and GCanvas::Process1DKeyboardPress().

◆ Project() [2/2]

GH1D * GH1D::Project ( double  value_low,
double  value_high 
) const

Definition at line 169 of file GH1D.cxx.

References parent, projection_axis, GH2D::ProjectionX(), and GH2D::ProjectionY().

◆ Project_Background()

GH1D * GH1D::Project_Background ( double  value_low,
double  value_high,
double  bg_value_low,
double  bg_value_high,
EBackgroundSubtraction  mode = EBackgroundSubtraction::kRegionBackground 
) const

◆ SetParent()

void GH1D::SetParent ( TObject *  obj)
inline

Definition at line 35 of file GH1D.h.

References parent.

Referenced by GH2Base::GH2ProjectionX(), and GH2Base::GH2ProjectionY().

◆ SetProjectionAxis()

void GH1D::SetProjectionAxis ( int  axis)
inline

Definition at line 38 of file GH1D.h.

References projection_axis.

Referenced by GH2Base::GH2ProjectionX(), and GH2Base::GH2ProjectionY().

◆ WriteDatFile()

bool GH1D::WriteDatFile ( const char *  outFile)

Definition at line 38 of file GH1D.cxx.

Member Data Documentation

◆ parent

TRef GH1D::parent
private

◆ projection_axis

int GH1D::projection_axis
private

Definition at line 66 of file GH1D.h.

Referenced by GetProjectionAxis(), Project(), Project_Background(), and SetProjectionAxis().