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

Definition at line 14 of file GCanvas.h.

Public Member Functions

 GMarker ()
 
 GMarker (int tmpX, int tmpY, TH1 *hist)
 
 GMarker (const GMarker &m)
 
 ~GMarker () override
 
void Copy (TObject &object) const override
 
void Draw (Option_t *opt="") override
 
int GetBinX () const
 
int GetBinY () const
 
double GetLocalX () const
 
double GetLocalY () const
 
bool operator< (const GMarker &rhs) const
 
void Print (Option_t *option="") const override
 
void SetBinX (const int &val)
 
void SetBinY (const int &val)
 
void SetColor (Color_t color)
 
void SetHist (const TH1 *val)
 
void SetLineX (double x1, double x2, double y1, double y2)
 
void SetLineY (double x1, double x2, double y1, double y2)
 
void SetLocalX (const double &val)
 
void SetLocalY (const double &val)
 
void SetStyle (Style_t style)
 
void Update (Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax)
 

Private Attributes

const TH1 * fHist
 
TLine * fLineX {nullptr}
 
TLine * fLineY {nullptr}
 

#include <GCanvas.h>

+ Inheritance diagram for GMarker:
+ Collaboration diagram for GMarker:

Constructor & Destructor Documentation

◆ GMarker() [1/3]

GMarker::GMarker ( )
inline

Definition at line 16 of file GCanvas.h.

◆ GMarker() [2/3]

GMarker::GMarker ( int  tmpX,
int  tmpY,
TH1 *  hist 
)

Definition at line 55 of file GCanvas.cxx.

◆ GMarker() [3/3]

GMarker::GMarker ( const GMarker m)
inline

Definition at line 18 of file GCanvas.h.

◆ ~GMarker()

GMarker::~GMarker ( )
inlineoverride

Definition at line 19 of file GCanvas.h.

References fLineX, and fLineY.

Member Function Documentation

◆ Copy()

void GMarker::Copy ( TObject &  object) const
override

Definition at line 77 of file GCanvas.cxx.

References fHist.

◆ Draw()

void GMarker::Draw ( Option_t *  opt = "")
inlineoverride

◆ GetBinX()

int GMarker::GetBinX ( ) const
inline

◆ GetBinY()

int GMarker::GetBinY ( ) const
inline

Definition at line 106 of file GCanvas.h.

References fHist, and fLineY.

◆ GetLocalX()

double GMarker::GetLocalX ( ) const
inline

◆ GetLocalY()

double GMarker::GetLocalY ( ) const
inline

Definition at line 104 of file GCanvas.h.

References fLineY.

◆ operator<()

bool GMarker::operator< ( const GMarker rhs) const
inline

Definition at line 116 of file GCanvas.h.

References fLineX.

◆ Print()

void GMarker::Print ( Option_t *  option = "") const
inlineoverride

Definition at line 33 of file GCanvas.h.

References fLineX, and fLineY.

◆ SetBinX()

void GMarker::SetBinX ( const int &  val)
inline

◆ SetBinY()

void GMarker::SetBinY ( const int &  val)
inline

Definition at line 101 of file GCanvas.h.

References fHist, and SetLineX().

◆ SetColor()

void GMarker::SetColor ( Color_t  color)
inline

◆ SetHist()

void GMarker::SetHist ( const TH1 *  val)
inline

◆ SetLineX()

void GMarker::SetLineX ( double  x1,
double  x2,
double  y1,
double  y2 
)
inline

◆ SetLineY()

void GMarker::SetLineY ( double  x1,
double  x2,
double  y1,
double  y2 
)
inline

Definition at line 87 of file GCanvas.h.

References fLineY.

◆ SetLocalX()

void GMarker::SetLocalX ( const double &  val)
inline

◆ SetLocalY()

void GMarker::SetLocalY ( const double &  val)
inline

Definition at line 99 of file GCanvas.h.

References fLineY.

◆ SetStyle()

void GMarker::SetStyle ( Style_t  style)
inline

Definition at line 55 of file GCanvas.h.

References fLineX, and fLineY.

Referenced by TBGSubtraction::DrawPeakMarkers().

◆ Update()

void GMarker::Update ( Double_t  xmin,
Double_t  xmax,
Double_t  ymin,
Double_t  ymax 
)
inline

Definition at line 64 of file GCanvas.h.

References fLineX, and fLineY.

Member Data Documentation

◆ fHist

const TH1* GMarker::fHist
private

Definition at line 111 of file GCanvas.h.

Referenced by Copy(), GetBinX(), GetBinY(), SetBinX(), SetBinY(), and SetHist().

◆ fLineX

TLine* GMarker::fLineX {nullptr}
private

◆ fLineY

TLine* GMarker::fLineY {nullptr}
private