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

Definition at line 18 of file GH2Base.h.

Classes

class  iterator
 

Public Member Functions

 GH2Base ()
 
virtual ~GH2Base ()
 
iterator begin ()
 
iterator end ()
 
GH1DGetNext (const GH1D *curr, bool DrawEmpty=true)
 
GH1DGetNextSummary (const GH1D *curr, bool DrawEmpty=false)
 
GH1DGetPrevious (const GH1D *curr, bool DrawEmpty=true)
 
GH1DGetPrevSummary (const GH1D *curr, bool DrawEmpty=false)
 
TList * GetProjections ()
 
bool GetSummary () const
 
EDirection GetSummaryDirection () const
 
TList * GetSummaryProjections ()
 
virtual TH2 * GetTH2 ()=0
 
virtual void GH2Clear (Option_t *opt="")
 
GH1DGH2ProjectionX (const char *name="_px", int firstbin=0, int lastbin=-1, Option_t *option="", bool KeepEmpty=false)
 
GH1DGH2ProjectionY (const char *name="_py", int firstbin=0, int lastbin=-1, Option_t *option="", bool KeepEmpty=false)
 
GH1DProjection_Background (int axis=0, int firstbin=0, int lastbin=-1, int first_bg_bin=0, int last_bg_bin=-1, EBackgroundSubtraction mode=EBackgroundSubtraction::kRegionBackground)
 
GH1DProjectionX_Background (int firstbin=0, int lastbin=-1, int first_bg_bin=0, int last_bg_bin=-1, EBackgroundSubtraction mode=EBackgroundSubtraction::kRegionBackground)
 
GH1DProjectionY_Background (int firstbin=0, int lastbin=-1, int first_bg_bin=0, int last_bg_bin=-1, EBackgroundSubtraction mode=EBackgroundSubtraction::kRegionBackground)
 
void SetSummary (bool is_summary=true)
 
void SetSummaryDirection (EDirection dir)
 

Private Member Functions

 ClassDef (GH2Base, 1)
 
void Init ()
 

Private Attributes

bool fIsSummary {false}
 
TList * fProjections {nullptr}
 
EDirection fSummaryDirection
 
TList * fSummaryProjections {nullptr}
 

#include <GH2Base.h>

+ Inheritance diagram for GH2Base:

Constructor & Destructor Documentation

◆ GH2Base()

GH2Base::GH2Base ( )
inline

Definition at line 21 of file GH2Base.h.

References Init().

◆ ~GH2Base()

GH2Base::~GH2Base ( )
virtual

Definition at line 14 of file GH2Base.cxx.

Member Function Documentation

◆ begin()

iterator GH2Base::begin ( )
inline

Definition at line 97 of file GH2Base.h.

◆ ClassDef()

GH2Base::ClassDef ( GH2Base  ,
 
)
private

◆ end()

iterator GH2Base::end ( )
inline

Definition at line 98 of file GH2Base.h.

◆ GetNext()

GH1D * GH2Base::GetNext ( const GH1D curr,
bool  DrawEmpty = true 
)

Definition at line 222 of file GH2Base.cxx.

References fIsSummary, fProjections, and GetNextSummary().

Referenced by GH1D::GetNext(), and GH2Base::iterator::operator++().

◆ GetNextSummary()

GH1D * GH2Base::GetNextSummary ( const GH1D curr,
bool  DrawEmpty = false 
)

◆ GetPrevious()

GH1D * GH2Base::GetPrevious ( const GH1D curr,
bool  DrawEmpty = true 
)

Definition at line 199 of file GH2Base.cxx.

References fIsSummary, fProjections, and GetPrevSummary().

Referenced by GH1D::GetPrevious().

◆ GetPrevSummary()

GH1D * GH2Base::GetPrevSummary ( const GH1D curr,
bool  DrawEmpty = false 
)

◆ GetProjections()

TList* GH2Base::GetProjections ( )
inline

Definition at line 51 of file GH2Base.h.

References fProjections.

Referenced by GCanvas::Process2DKeyboardPress().

◆ GetSummary()

bool GH2Base::GetSummary ( ) const
inline

Definition at line 55 of file GH2Base.h.

References fIsSummary.

◆ GetSummaryDirection()

EDirection GH2Base::GetSummaryDirection ( ) const
inline

Definition at line 58 of file GH2Base.h.

References fSummaryDirection.

◆ GetSummaryProjections()

TList* GH2Base::GetSummaryProjections ( )
inline

Definition at line 52 of file GH2Base.h.

References fSummaryProjections.

◆ GetTH2()

virtual TH2* GH2Base::GetTH2 ( )
pure virtual

◆ GH2Clear()

void GH2Base::GH2Clear ( Option_t *  opt = "")
virtual

Definition at line 28 of file GH2Base.cxx.

References fProjections, and fSummaryProjections.

Referenced by GH2I::Clear(), and GH2D::Clear().

◆ GH2ProjectionX()

GH1D * GH2Base::GH2ProjectionX ( const char *  name = "_px",
int  firstbin = 0,
int  lastbin = -1,
Option_t *  option = "",
bool  KeepEmpty = false 
)

◆ GH2ProjectionY()

GH1D * GH2Base::GH2ProjectionY ( const char *  name = "_py",
int  firstbin = 0,
int  lastbin = -1,
Option_t *  option = "",
bool  KeepEmpty = false 
)

◆ Init()

void GH2Base::Init ( )
private

Definition at line 20 of file GH2Base.cxx.

References fIsSummary, fProjections, fSummaryDirection, fSummaryProjections, and kXDirection.

Referenced by GH2Base().

◆ Projection_Background()

GH1D * GH2Base::Projection_Background ( int  axis = 0,
int  firstbin = 0,
int  lastbin = -1,
int  first_bg_bin = 0,
int  last_bg_bin = -1,
EBackgroundSubtraction  mode = EBackgroundSubtraction::kRegionBackground 
)

Definition at line 35 of file GH2Base.cxx.

References fProjections, GetTH2(), and kNoBackground.

Referenced by ProjectionX_Background(), and ProjectionY_Background().

◆ ProjectionX_Background()

GH1D * GH2Base::ProjectionX_Background ( int  firstbin = 0,
int  lastbin = -1,
int  first_bg_bin = 0,
int  last_bg_bin = -1,
EBackgroundSubtraction  mode = EBackgroundSubtraction::kRegionBackground 
)

Definition at line 139 of file GH2Base.cxx.

References Projection_Background().

Referenced by GH1D::Project_Background().

◆ ProjectionY_Background()

GH1D * GH2Base::ProjectionY_Background ( int  firstbin = 0,
int  lastbin = -1,
int  first_bg_bin = 0,
int  last_bg_bin = -1,
EBackgroundSubtraction  mode = EBackgroundSubtraction::kRegionBackground 
)

Definition at line 193 of file GH2Base.cxx.

References Projection_Background().

Referenced by GH1D::Project_Background().

◆ SetSummary()

void GH2Base::SetSummary ( bool  is_summary = true)
inline

Definition at line 54 of file GH2Base.h.

References fIsSummary.

Referenced by GCanvas::Process2DKeyboardPress().

◆ SetSummaryDirection()

void GH2Base::SetSummaryDirection ( EDirection  dir)
inline

Definition at line 57 of file GH2Base.h.

References fSummaryDirection.

Referenced by GCanvas::Process2DKeyboardPress().

Member Data Documentation

◆ fIsSummary

bool GH2Base::fIsSummary {false}
private

◆ fProjections

TList* GH2Base::fProjections {nullptr}
private

◆ fSummaryDirection

EDirection GH2Base::fSummaryDirection
private

◆ fSummaryProjections

TList* GH2Base::fSummaryProjections {nullptr}
private