GamR  0.0.0
GammaROOT
Loading...
Searching...
No Matches
GamR::Spect::BackSub2D Class Reference

#include <BackSub.hh>

+ Collaboration diagram for GamR::Spect::BackSub2D:

Public Member Functions

int SetPeak (GamR::TK::Gate x, GamR::TK::Gate y)
 
int SetPeak (double x1, double y1, double x2, double y2)
 
int AddBackX (GamR::TK::Gate x)
 
int AddBackY (GamR::TK::Gate y)
 
int AddBackX (double x1, double x2)
 
int AddBackY (double y1, double y2)
 
int AddBackDiag (GamR::TK::Gate x, GamR::TK::Gate y)
 
int AddBackDiag (double x1, double y1, double x2, double y2)
 
int AddBackBack (GamR::TK::Gate x, GamR::TK::Gate y)
 
int AddBackBack (double x1, double y1, double x2, double y2)
 
 BackSub2D (TH2D *hist)
 
int SetPeak (TCanvas *canvas)
 
int AddBackX (TCanvas *canvas)
 
int AddBackY (TCanvas *canvas)
 
int AddBackBack (TCanvas *canvas)
 
int AddBackDiag (TCanvas *canvas)
 
TH2D * Subtract (TH2D *hist)
 
double GetPeakArea ()
 
double GetPeakAreaError ()
 
double GetPeakCounts ()
 
double GetPeakCountsError ()
 

Public Attributes

GamR::TK::Gate fPeakX
 
GamR::TK::Gate fPeakY
 
std::vector< GamR::TK::GatefBackY
 
std::vector< GamR::TK::GatefBackX
 
std::vector< GamR::TK::GatefBackDiagX
 
std::vector< GamR::TK::GatefBackDiagY
 
std::vector< GamR::TK::GatefBackBackX
 
std::vector< GamR::TK::GatefBackBackY
 
TH1D * y_sub
 
TH1D * x_sub
 
TH2D * unsubtracted
 
TH2D * subtracted
 

Detailed Description

Definition at line 13 of file BackSub.hh.

Constructor & Destructor Documentation

◆ BackSub2D()

GamR::Spect::BackSub2D::BackSub2D ( TH2D * hist)

Definition at line 463 of file BackSub.cc.

References AddBackBack(), AddBackDiag(), AddBackX(), AddBackY(), GetPeakCounts(), GetPeakCountsError(), SetPeak(), and Subtract().

+ Here is the call graph for this function:

Member Function Documentation

◆ AddBackBack() [1/3]

int GamR::Spect::BackSub2D::AddBackBack ( double x1,
double y1,
double x2,
double y2 )
inline

Definition at line 85 of file BackSub.hh.

References AddBackBack().

+ Here is the call graph for this function:

◆ AddBackBack() [2/3]

int GamR::Spect::BackSub2D::AddBackBack ( GamR::TK::Gate x,
GamR::TK::Gate y )
inline

Definition at line 79 of file BackSub.hh.

References fBackBackX, and fBackBackY.

Referenced by BackSub2D(), and AddBackBack().

+ Here is the caller graph for this function:

◆ AddBackBack() [3/3]

int GamR::Spect::BackSub2D::AddBackBack ( TCanvas * canvas)

Definition at line 214 of file BackSub.cc.

References fBackBackX, fBackBackY, GamR::Utils::Clicker::GetClicks(), GamR::Utils::Clicker::xs, and GamR::Utils::Clicker::ys.

+ Here is the call graph for this function:

◆ AddBackDiag() [1/3]

int GamR::Spect::BackSub2D::AddBackDiag ( double x1,
double y1,
double x2,
double y2 )
inline

Definition at line 73 of file BackSub.hh.

References AddBackDiag().

+ Here is the call graph for this function:

◆ AddBackDiag() [2/3]

int GamR::Spect::BackSub2D::AddBackDiag ( GamR::TK::Gate x,
GamR::TK::Gate y )
inline

Definition at line 67 of file BackSub.hh.

References fBackDiagX, and fBackDiagY.

Referenced by BackSub2D(), and AddBackDiag().

+ Here is the caller graph for this function:

◆ AddBackDiag() [3/3]

int GamR::Spect::BackSub2D::AddBackDiag ( TCanvas * canvas)

Definition at line 164 of file BackSub.cc.

References fBackDiagX, fBackDiagY, GamR::Utils::Clicker::GetClicks(), GamR::Utils::Clicker::xs, and GamR::Utils::Clicker::ys.

+ Here is the call graph for this function:

◆ AddBackX() [1/3]

int GamR::Spect::BackSub2D::AddBackX ( double x1,
double x2 )
inline

Definition at line 57 of file BackSub.hh.

References AddBackX().

+ Here is the call graph for this function:

◆ AddBackX() [2/3]

int GamR::Spect::BackSub2D::AddBackX ( GamR::TK::Gate x)
inline

Definition at line 47 of file BackSub.hh.

References fBackX.

Referenced by BackSub2D(), and AddBackX().

+ Here is the caller graph for this function:

◆ AddBackX() [3/3]

int GamR::Spect::BackSub2D::AddBackX ( TCanvas * canvas)

Definition at line 62 of file BackSub.cc.

References fBackX, fPeakY, GamR::Utils::Clicker::GetClicks(), GamR::Utils::Clicker::xs, and GamR::Utils::Clicker::ys.

+ Here is the call graph for this function:

◆ AddBackY() [1/3]

int GamR::Spect::BackSub2D::AddBackY ( double y1,
double y2 )
inline

Definition at line 62 of file BackSub.hh.

References AddBackY().

+ Here is the call graph for this function:

◆ AddBackY() [2/3]

int GamR::Spect::BackSub2D::AddBackY ( GamR::TK::Gate y)
inline

Definition at line 52 of file BackSub.hh.

References fBackY.

Referenced by BackSub2D(), and AddBackY().

+ Here is the caller graph for this function:

◆ AddBackY() [3/3]

int GamR::Spect::BackSub2D::AddBackY ( TCanvas * canvas)

Definition at line 113 of file BackSub.cc.

References fBackY, fPeakX, GamR::Utils::Clicker::GetClicks(), GamR::Utils::Clicker::xs, and GamR::Utils::Clicker::ys.

+ Here is the call graph for this function:

◆ GetPeakArea()

double GamR::Spect::BackSub2D::GetPeakArea ( )

◆ GetPeakAreaError()

double GamR::Spect::BackSub2D::GetPeakAreaError ( )

◆ GetPeakCounts()

double GamR::Spect::BackSub2D::GetPeakCounts ( )

Definition at line 443 of file BackSub.cc.

References subtracted.

Referenced by BackSub2D().

+ Here is the caller graph for this function:

◆ GetPeakCountsError()

double GamR::Spect::BackSub2D::GetPeakCountsError ( )

Definition at line 453 of file BackSub.cc.

References subtracted.

Referenced by BackSub2D().

+ Here is the caller graph for this function:

◆ SetPeak() [1/3]

int GamR::Spect::BackSub2D::SetPeak ( double x1,
double y1,
double x2,
double y2 )
inline

Definition at line 41 of file BackSub.hh.

References SetPeak().

+ Here is the call graph for this function:

◆ SetPeak() [2/3]

int GamR::Spect::BackSub2D::SetPeak ( GamR::TK::Gate x,
GamR::TK::Gate y )
inline

Definition at line 35 of file BackSub.hh.

References fPeakX, and fPeakY.

Referenced by BackSub2D(), and SetPeak().

+ Here is the caller graph for this function:

◆ SetPeak() [3/3]

int GamR::Spect::BackSub2D::SetPeak ( TCanvas * canvas)

Definition at line 11 of file BackSub.cc.

References fPeakX, fPeakY, GamR::Utils::Clicker::GetClicks(), GamR::Utils::Clicker::xs, and GamR::Utils::Clicker::ys.

+ Here is the call graph for this function:

◆ Subtract()

TH2D * GamR::Spect::BackSub2D::Subtract ( TH2D * hist)

Definition at line 263 of file BackSub.cc.

References fBackBackX, fBackBackY, fBackDiagX, fBackDiagY, fBackX, fBackY, fPeakX, fPeakY, subtracted, unsubtracted, x_sub, and y_sub.

Referenced by BackSub2D().

+ Here is the caller graph for this function:

Member Data Documentation

◆ fBackBackX

std::vector<GamR::TK::Gate > GamR::Spect::BackSub2D::fBackBackX

Definition at line 26 of file BackSub.hh.

Referenced by AddBackBack(), AddBackBack(), and Subtract().

◆ fBackBackY

std::vector<GamR::TK::Gate > GamR::Spect::BackSub2D::fBackBackY

Definition at line 27 of file BackSub.hh.

Referenced by AddBackBack(), AddBackBack(), and Subtract().

◆ fBackDiagX

std::vector<GamR::TK::Gate > GamR::Spect::BackSub2D::fBackDiagX

Definition at line 22 of file BackSub.hh.

Referenced by AddBackDiag(), AddBackDiag(), and Subtract().

◆ fBackDiagY

std::vector<GamR::TK::Gate > GamR::Spect::BackSub2D::fBackDiagY

Definition at line 23 of file BackSub.hh.

Referenced by AddBackDiag(), AddBackDiag(), and Subtract().

◆ fBackX

std::vector<GamR::TK::Gate > GamR::Spect::BackSub2D::fBackX

Definition at line 19 of file BackSub.hh.

Referenced by AddBackX(), AddBackX(), and Subtract().

◆ fBackY

std::vector<GamR::TK::Gate > GamR::Spect::BackSub2D::fBackY

Definition at line 18 of file BackSub.hh.

Referenced by AddBackY(), AddBackY(), and Subtract().

◆ fPeakX

GamR::TK::Gate GamR::Spect::BackSub2D::fPeakX

Definition at line 15 of file BackSub.hh.

Referenced by AddBackY(), SetPeak(), SetPeak(), and Subtract().

◆ fPeakY

GamR::TK::Gate GamR::Spect::BackSub2D::fPeakY

Definition at line 16 of file BackSub.hh.

Referenced by AddBackX(), SetPeak(), SetPeak(), and Subtract().

◆ subtracted

TH2D* GamR::Spect::BackSub2D::subtracted

Definition at line 33 of file BackSub.hh.

Referenced by GetPeakCounts(), GetPeakCountsError(), and Subtract().

◆ unsubtracted

TH2D* GamR::Spect::BackSub2D::unsubtracted

Definition at line 32 of file BackSub.hh.

Referenced by Subtract().

◆ x_sub

TH1D* GamR::Spect::BackSub2D::x_sub

Definition at line 30 of file BackSub.hh.

Referenced by Subtract().

◆ y_sub

TH1D* GamR::Spect::BackSub2D::y_sub

Definition at line 29 of file BackSub.hh.

Referenced by Subtract().


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