GamR  0.0.0
GammaROOT
Loading...
Searching...
No Matches
GamR::Utils::Clicker Class Reference

#include <Utilities.hh>

+ Collaboration diagram for GamR::Utils::Clicker:

Public Member Functions

void GetClick (Int_t, Int_t, Int_t, TObject *)
 
void GetDrawClick (Int_t, Int_t, Int_t, TObject *)
 
int GetClicks (TVirtualPad *canvas, int n, std::vector< std::string > &messages, int draw=0, int print=0)
 

Public Attributes

int px
 
int py
 
double cx
 
double cy
 
bool waiting =false
 
TGraph * line
 
std::vector< double > xs
 
std::vector< double > ys
 

Detailed Description

Definition at line 29 of file Utilities.hh.

Member Function Documentation

◆ GetClick()

void GamR::Utils::Clicker::GetClick ( Int_t ,
Int_t ,
Int_t ,
TObject *  )

Definition at line 66 of file Utilities.cc.

References cx, cy, px, py, and waiting.

◆ GetClicks()

int GamR::Utils::Clicker::GetClicks ( TVirtualPad * canvas,
int n,
std::vector< std::string > & messages,
int draw = 0,
int print = 0 )

Definition at line 127 of file Utilities.cc.

References cx, cy, line, waiting, xs, and ys.

Referenced by GamR::Spect::BackSub2D::AddBackBack(), GamR::Spect::BackSub2D::AddBackDiag(), GamR::Spect::BackSub2D::AddBackX(), GamR::Spect::BackSub2D::AddBackY(), GamR::TK::ClickBPeak(), GamR::Spect::Cursor(), GamR::Spect::DrawCut(), GamR::TK::Gate::SetGate(), GamR::Spect::BackSub2D::SetPeak(), and GamR::Spect::TwoClickCalibrate().

+ Here is the caller graph for this function:

◆ GetDrawClick()

void GamR::Utils::Clicker::GetDrawClick ( Int_t ,
Int_t ,
Int_t ,
TObject *  )

Definition at line 90 of file Utilities.cc.

References cx, cy, line, px, py, and waiting.

Member Data Documentation

◆ cx

double GamR::Utils::Clicker::cx

Definition at line 35 of file Utilities.hh.

Referenced by GetClick(), GetClicks(), and GetDrawClick().

◆ cy

double GamR::Utils::Clicker::cy

Definition at line 35 of file Utilities.hh.

Referenced by GetClick(), GetClicks(), and GetDrawClick().

◆ line

TGraph* GamR::Utils::Clicker::line

Definition at line 37 of file Utilities.hh.

Referenced by GamR::Spect::DrawCut(), GetClicks(), and GetDrawClick().

◆ px

int GamR::Utils::Clicker::px

Definition at line 34 of file Utilities.hh.

Referenced by GetClick(), and GetDrawClick().

◆ py

int GamR::Utils::Clicker::py

Definition at line 34 of file Utilities.hh.

Referenced by GetClick(), and GetDrawClick().

◆ waiting

bool GamR::Utils::Clicker::waiting =false

◆ xs

◆ ys


The documentation for this class was generated from the following files: