GamR  0.0.0
GammaROOT
Loading...
Searching...
No Matches
GamR::Spect Namespace Reference

Classes

class  BackSub2D
 
struct  Parameter
 
class  PeakFit
 
class  PeakFitGuesses
 

Enumerations

enum class  FFTWindow { BOX , HANN , HAMMING }
 

Functions

std::pair< double, double > TwoClickCalibrate (TVirtualPad *canvas)
 
std::pair< double, double > TwoPointCalibrate (TVirtualPad *canvas, double sigma)
 
std::pair< double, double > TwoPointCalibrate (TVirtualPad *canvas, double lowEn, double highEn, double sigma)
 
std::pair< double, double > TwoPointCalibrate (TH1 *hist, double lowEst, double highEst, double lowEn, double highEn, double sigma)
 
TH1D * ProjX (TH2 *hist, const char *name)
 
TH1D * ProjX (TH2 *hist)
 
TH1D * ProjX (TVirtualPad *canvas, const char *name)
 
TH1D * ProjX (TVirtualPad *canvas)
 
TH1D * ProjY (TH2 *hist, const char *name)
 
TH1D * ProjY (TH2 *hist)
 
TH1D * ProjY (TVirtualPad *canvas, const char *name)
 
TH1D * ProjY (TVirtualPad *canvas)
 
TH1D * GateX (TH2 *hist, GamR::TK::Gate peak, const char *name)
 
TH1D * GateX (TH2 *hist, GamR::TK::Gate peak)
 
TH1D * GateX (TCanvas *canvas, const char *name)
 
TH1D * GateX (TCanvas *canvas)
 
TH1D * GateY (TH2 *hist, GamR::TK::Gate peak, const char *name)
 
TH1D * GateY (TH2 *hist, GamR::TK::Gate peak)
 
TH1D * GateY (TCanvas *canvas, const char *name)
 
TH1D * GateY (TCanvas *canvas)
 
TH1D * BackgroundSubtractX (TH2 *hist, GamR::TK::Gate peak, std::vector< GamR::TK::Gate > background, const char *name)
 
TH1D * BackgroundSubtractX (TH2 *hist, GamR::TK::Gate peak, std::vector< GamR::TK::Gate > background)
 
TH1D * BackgroundSubtractX (TH2 *hist, GamR::TK::Gate peak, GamR::TK::Gate background, const char *name)
 
TH1D * BackgroundSubtractX (TH2 *hist, GamR::TK::Gate peak, GamR::TK::Gate background)
 
TH1D * BackgroundSubtractX (TH2 *hist, GamR::Nucleus::Transition peak, const char *name)
 
TH1D * BackgroundSubtractX (TH2 *hist, GamR::Nucleus::Transition peak)
 
TH1D * BackgroundSubtractX (TCanvas *canvas, const char *name)
 
TH1D * BackgroundSubtractX (TCanvas *canvas)
 
TH1D * BackgroundSubtractY (TH2 *hist, GamR::TK::Gate peak, std::vector< GamR::TK::Gate > background, const char *name)
 
TH1D * BackgroundSubtractY (TH2 *hist, GamR::TK::Gate peak, std::vector< GamR::TK::Gate > background)
 
TH1D * BackgroundSubtractY (TH2 *hist, GamR::TK::Gate peak, GamR::TK::Gate background, const char *name)
 
TH1D * BackgroundSubtractY (TH2 *hist, GamR::TK::Gate peak, GamR::TK::Gate background)
 
TH1D * BackgroundSubtractY (TH2 *hist, GamR::Nucleus::Transition peak, const char *name)
 
TH1D * BackgroundSubtractY (TH2 *hist, GamR::Nucleus::Transition peak)
 
TH1D * BackgroundSubtractY (TCanvas *canvas, const char *name)
 
TH1D * BackgroundSubtractY (TCanvas *canvas)
 
std::shared_ptr< TH2D > BackgroundEstimate (const TH2 *hist, Int_t NiterX, Int_t NiterY, Int_t direction, Int_t filtertype)
 
TH2D * BackgroundSubtract2D (TH2 *peak, TH2 *background, double scale)
 
TCutG * DrawCut (TVirtualPad *canvas, bool verbose, std::string filename, int ID)
 
TCutG * DrawCut (std::string cutfile, int ID, TVirtualPad *canvas)
 
void PrintCut (TCutG *cut)
 
std::vector< TH1 * > List1DSpectra (bool quiet)
 
std::vector< TH2 * > List2DSpectra (bool quiet)
 
void Draw (int i, Option_t *option)
 
void Draw2D (int i, Option_t *option)
 
void OverlaySpectra (std::vector< int > display_indexes, TCanvas *canvas, Option_t *option)
 
void OverlaySpectra (int iStart, int iStop, TCanvas *canvas, Option_t *option)
 
void OverlaySpectra (std::vector< TH1 * > hists, TCanvas *canvas, Option_t *option)
 
void OverlaySpectra (TH2 *hist, int iStart, int iStop, Option_t *option)
 
void OverlaySpectra (TH2 *hist, std::vector< int > indices, Option_t *option)
 
void OverlaySpectra (int i2D, int iStart, int iStop, Option_t *option)
 
void OverlaySpectra (std::vector< std::string > files, std::string name, int iX, Option_t *option)
 
void OverlaySpectra (std::vector< std::string > files, std::string name, int iXstart, int iXstop, Option_t *option)
 
void OverlaySpectra (std::vector< std::string > files, std::string name, Option_t *option)
 
void StackSpectra (std::vector< int > display_indexes, TCanvas *canvas, Option_t *option)
 
void StackSpectra (int iStart, int iStop, TCanvas *canvas, Option_t *option)
 
void StackSpectra (std::vector< TH1 * > hists, TCanvas *canvas, Option_t *option)
 
void StackSpectra (TH2 *hist, int iStart, int iStop, Option_t *option)
 
void StackSpectra (int i2D, int iStart, int iStop, Option_t *option)
 
void StackSpectra (std::vector< std::string > files, std::string name, int iX, Option_t *option)
 
void StackSpectra (std::vector< std::string > files, std::string name, Option_t *option)
 
void ContourCalc (TH2 *hist, int ncontours, double bias)
 
void ContourCalc (TVirtualPad *canvas, int ncontours, double bias)
 
void LinAll (TVirtualPad *canvas)
 
void LogAll (TVirtualPad *canvas)
 
void ZoomAllX (double low, double high, TVirtualPad *canvas)
 
void ZoomAllY (double low, double high, TVirtualPad *canvas)
 
void UnZoomAllX (TVirtualPad *canvas)
 
void UnZoomAllY (TVirtualPad *canvas)
 
void NormSpectra (TVirtualPad *canvas, Option_t *option)
 
void NormSpectraBackSub (TVirtualPad *canvas)
 
void Rename (TVirtualPad *canvas)
 
void Cursor (TVirtualPad *canvas)
 
TH1D * FFT (TH1 *hist, const char *name, double low, double high, FFTWindow wind)
 
GamR::Spect::PeakFitFitPeaks (TH1 *hist, double Low, double High, std::vector< double > Peaks, Option_t *foption, Option_t *option, std::vector< std::string > FixPeaks)
 
GamR::Spect::PeakFitFitPeaks (TH1 *hist, double Low, double High, std::map< std::string, double > Peaks, Option_t *foption, Option_t *option, std::vector< std::string > FixPeaks)
 
GamR::Spect::PeakFitFitPeaks (TCanvas *canvas, Option_t *foption, Option_t *option)
 
TF1 * FitGaussians (TH1 *hist, double Low, double High, std::vector< double > Peaks, Option_t *foption, Option_t *option)
 
TF1 * FitGaussians (TCanvas *canvas, Option_t *foption, Option_t *option)
 
TSpectrum * FindPeaks (TCanvas *canvas, double sigma, Option_t *option, double threshold)
 
TF1 * FitGaussians (TH1 *hist, double Low, double High, std::map< std::string, double > Peaks, Option_t *foption="", Option_t *option="")
 
int LoadGuesses (std::string path)
 
void Init ()
 
std::pair< double, double > Integral (TH1 *hist, GamR::TK::Gate peak)
 
std::pair< double, double > Integral (TH1 *hist, double peakLow, double peakHigh)
 
std::pair< double, double > Integral (TCanvas *canvas)
 
std::pair< double, double > IntegralBS (TH1 *hist, GamR::Nucleus::Transition transition)
 
std::pair< double, double > IntegralBS (TH1 *hist, GamR::TK::Gate peak, GamR::TK::Gate background)
 
std::pair< double, double > IntegralBS (TH1 *hist, double peakLow, double peakHigh, double backLow, double backHigh)
 
std::pair< double, double > IntegralBS (TCanvas *canvas)
 
std::pair< double, double > Counts (TH1 *hist, GamR::TK::Gate peak, std::string opt)
 
std::pair< double, double > Counts (TH1 *hist, double peakLow, double peakHigh, std::string opt)
 
std::pair< double, double > Counts (TCanvas *canvas)
 
std::pair< double, double > CountsBS (TH1 *hist, GamR::Nucleus::Transition transition, std::string opt)
 
std::pair< double, double > CountsBS (TH1 *hist, GamR::TK::Gate peak, GamR::TK::Gate background, std::string opt)
 
std::pair< double, double > CountsBS (TH1 *hist, GamR::TK::Gate peak, std::vector< GamR::TK::Gate > backgrounds, std::string opt)
 
std::pair< double, double > CountsBS (TH1 *hist, double peakLow, double peakHigh, double backLow, double backHigh, std::string opt)
 
std::pair< double, double > CountsBS (TCanvas *canvas)
 
std::string ToText (const TH1 *h, std::string outfile, std::string delimiter)
 
std::string ToText (const TH2 *h, std::string outfile, std::string delimiter, int binx_lo, int binx_hi, int biny_lo, int biny_hi)
 
std::string ToText (const TGraphErrors *g, std::string outfile, std::string delimiter)
 
std::string ToText (const TGraphAsymmErrors *g, std::string outfile, std::string delimiter)
 
std::string ToText (const TGraph *g, std::string outfile, std::string delimiter)
 
std::string ToText (const TGraph *g, int ID, std::string outfile, std::string delimiter)
 
std::string ToText (const TF1 *f, std::string outfile, std::string delimiter)
 
void ToBin (const TH2 *h, std::string outfile, int padx, int pady)
 
void ToBin (const TH1 *h, std::string outfile)
 
void ToSPE (const TH1 *h, std::string outfile)
 
TH1D * FromText (std::string s, std::string name, bool fill)
 
TH1D * FromBin (std::string s, std::string name, std::string title, int nx, double low, double high, int size)
 
TH2D * FromBin (std::string s, std::string name, std::string title, int nx, double xlow, double xhigh, int ny, double ylow, double yhigh, int size)
 
TCutG * CutFromText (std::string s, std::string name)
 
TH1D Scale (const TH1 *h, TFormula f)
 Scales a histogram along the X axis and dithers to avoid quantization errors.
 
TH1D ScalePoly (const TH1 *h, std::vector< Double_t > pars)
 Scales histogram by a polynomial.
 
void ScaleLabelsLinear (TH1 *h, Double_t m, Double_t c)
 Scales the labels of a histogram. Preferable over GamR::Spect::Scale and GamR::Spect::ScalePoly as it avoids having to regenerate the histogram.
 
void Shift (TH1 &h, Int_t shift)
 
TH1D * Add (TH1 *hist1, TH1 *hist2, const char *name, double c1, double c2)
 
TH1D * Add (std::vector< TH1 * > hists, const char *name)
 
TH1D * Add (std::vector< int > hists, const char *name)
 
TH1D * Add (int iStart, int iStop, const char *name)
 
TH2D * Add (TH2 *hist1, TH2 *hist2, const char *name, double c1, double c2)
 
TH2D * Add (std::vector< TH2 * > hists, const char *name)
 
TH2D * Add2 (std::vector< int > hists, const char *name)
 
TH2D * Add2 (int iStart, int iStop, const char *name)
 
TH1D * Multiply (TH1 *hist1, const char *name, double c1)
 
void Reverse (TH1 *h)
 
TH2D * RotateTH2 (TH2 *hist, float angle, const char *name, TCutG *bananaGate)
 
TH1 * Rebin (TH1 *hist, int rebin)
 
TH2 * RebinX (TH2 *hist, int rebin)
 
TH2 * RebinY (TH2 *hist, int rebin)
 
void RebinX (TVirtualPad *canvas, int rebin)
 
void RebinY (TVirtualPad *canvas, int rebin)
 
void Rebin (TVirtualPad *canvas, int rebin)
 
void Norm (TH1 *hist, TH1 *ref, double low, double high)
 
void NormBackSub (TH1 *hist, TH1 *ref, double low, double high, double backlow, double backhigh)
 

Variables

PeakFitGuessesgFitGuesses
 

Detailed Description

Library of tools spectroscopy tools - transforming histograms, fitting peaks, doing cuts and background subtractions etc.

Enumeration Type Documentation

◆ FFTWindow

enum class GamR::Spect::FFTWindow
strong
Enumerator
BOX 
HANN 
HAMMING 

Definition at line 8 of file FFT.hh.

Function Documentation

◆ Add() [1/6]

TH1D * GamR::Spect::Add ( int iStart,
int iStop,
const char * name )

Definition at line 149 of file Transform.cc.

References Add(), and List1DSpectra().

+ Here is the call graph for this function:

◆ Add() [2/6]

TH1D * GamR::Spect::Add ( std::vector< int > hists,
const char * name )

Definition at line 140 of file Transform.cc.

References Add(), and List1DSpectra().

+ Here is the call graph for this function:

◆ Add() [3/6]

TH1D * GamR::Spect::Add ( std::vector< TH1 * > hists,
const char * name )

Definition at line 131 of file Transform.cc.

◆ Add() [4/6]

TH2D * GamR::Spect::Add ( std::vector< TH2 * > hists,
const char * name )

Definition at line 183 of file Transform.cc.

◆ Add() [5/6]

TH1D * GamR::Spect::Add ( TH1 * hist1,
TH1 * hist2,
const char * name,
double c1,
double c2 )

Function to add two histograms with correct error handling

Note that the histograms should be of the same dimension. Errors are added in quadrature

Parameters
hist1First histogram
hist2Second histogram
nameName of the output histogram
c1Weight for hist1
c2Weight for hist2
Returns
c1*hist1 + c2*hist2

Definition at line 121 of file Transform.cc.

Referenced by Add(), Add(), add(), add(), add(), Add2(), Add2(), and add2().

+ Here is the caller graph for this function:

◆ Add() [6/6]

TH2D * GamR::Spect::Add ( TH2 * hist1,
TH2 * hist2,
const char * name,
double c1,
double c2 )

Function to add two histograms with correct error handling

Note that the histograms should be of the same dimension. Errors are added in quadrature

Parameters
hist1First histogram
hist2Second histogram
nameName of the output histogram
c1Weight for hist1
c2Weight for hist2
Returns
c1*hist1 + c2*hist2

Definition at line 171 of file Transform.cc.

◆ Add2() [1/2]

TH2D * GamR::Spect::Add2 ( int iStart,
int iStop,
const char * name )

Definition at line 201 of file Transform.cc.

References Add(), and List2DSpectra().

+ Here is the call graph for this function:

◆ Add2() [2/2]

TH2D * GamR::Spect::Add2 ( std::vector< int > hists,
const char * name )

Definition at line 192 of file Transform.cc.

References Add(), and List2DSpectra().

Referenced by add2(), and add2().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BackgroundEstimate()

std::shared_ptr< TH2D > GamR::Spect::BackgroundEstimate ( const TH2 * hist,
Int_t NiterX,
Int_t NiterY,
Int_t direction,
Int_t filtertype )

Implementation of TSpectrum::Background to take a histogram as input. For details refer to the ROOT TSpectrum documentation.

Parameters
[in]hist2D histogram
[in]NiterXMaximal X width of clipping window
[in]NiterYMaximal Y width of clipping window
[in]directionDirection of clipping window: TSpectrum2::kBackIncreasingwindow, TSpectrum2::kBackDecreasingWindow
[in]filtertypeFilter algorithm: TSpectrum2::kBackSuccessiveFiltering, TSpectrum2::kBackOneStepFiltering
Returns
[out] Smart pointer to background estimate of input histogram

Definition at line 430 of file Cut.cc.

◆ BackgroundSubtract2D()

TH2D * GamR::Spect::BackgroundSubtract2D ( TH2 * peak,
TH2 * background,
double scale )

Definition at line 458 of file Cut.cc.

◆ BackgroundSubtractX() [1/8]

TH1D * GamR::Spect::BackgroundSubtractX ( TCanvas * canvas)

Definition at line 270 of file Cut.cc.

References BackgroundSubtractX(), GamR::Utils::GetHist2D(), and GamR::TK::Gate::SetGate().

+ Here is the call graph for this function:

◆ BackgroundSubtractX() [2/8]

TH1D * GamR::Spect::BackgroundSubtractX ( TCanvas * canvas,
const char * name )

Definition at line 247 of file Cut.cc.

References BackgroundSubtractX(), GamR::Utils::GetHist2D(), and GamR::TK::Gate::SetGate().

+ Here is the call graph for this function:

◆ BackgroundSubtractX() [3/8]

TH1D * GamR::Spect::BackgroundSubtractX ( TH2 * hist,
GamR::Nucleus::Transition peak )

Definition at line 242 of file Cut.cc.

References BackgroundSubtractX(), GamR::Nucleus::Transition::GetGate(), and GamR::Nucleus::Transition::GetGateBG().

+ Here is the call graph for this function:

◆ BackgroundSubtractX() [4/8]

TH1D * GamR::Spect::BackgroundSubtractX ( TH2 * hist,
GamR::Nucleus::Transition peak,
const char * name )

Definition at line 237 of file Cut.cc.

References BackgroundSubtractX(), GamR::Nucleus::Transition::GetGate(), and GamR::Nucleus::Transition::GetGateBG().

+ Here is the call graph for this function:

◆ BackgroundSubtractX() [5/8]

TH1D * GamR::Spect::BackgroundSubtractX ( TH2 * hist,
GamR::TK::Gate peak,
GamR::TK::Gate background )

Definition at line 232 of file Cut.cc.

References BackgroundSubtractX().

+ Here is the call graph for this function:

◆ BackgroundSubtractX() [6/8]

TH1D * GamR::Spect::BackgroundSubtractX ( TH2 * hist,
GamR::TK::Gate peak,
GamR::TK::Gate background,
const char * name )

Definition at line 227 of file Cut.cc.

References BackgroundSubtractX().

+ Here is the call graph for this function:

◆ BackgroundSubtractX() [7/8]

TH1D * GamR::Spect::BackgroundSubtractX ( TH2 * hist,
GamR::TK::Gate peak,
std::vector< GamR::TK::Gate > background )

Definition at line 222 of file Cut.cc.

References BackgroundSubtractX().

+ Here is the call graph for this function:

◆ BackgroundSubtractX() [8/8]

TH1D * GamR::Spect::BackgroundSubtractX ( TH2 * hist,
GamR::TK::Gate peak,
std::vector< GamR::TK::Gate > background,
const char * name )

Carries out a rudimentary background subtraction

Subtracts a projection of the background region from a projection of the peak region, with a scaling factor equal to the ratio of the regions' widths.

Gates are applied on the X-axis.

Parameters
hist2D histogram to act on
peakGate object for the peak bounds
backgroundGate object for the background bounds
nameName of the output histogram
Returns
1D histogram containing the background-subtracted projection

Definition at line 185 of file Cut.cc.

References GamR::TK::Gate::ApplyX(), and GamR::TK::Gate::GetBinWidth().

Referenced by BackgroundSubtractX(), BackgroundSubtractX(), BackgroundSubtractX(), BackgroundSubtractX(), BackgroundSubtractX(), BackgroundSubtractX(), BackgroundSubtractX(), bsx(), and bsx().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BackgroundSubtractY() [1/8]

TH1D * GamR::Spect::BackgroundSubtractY ( TCanvas * canvas)

Definition at line 394 of file Cut.cc.

References BackgroundSubtractY(), GamR::Utils::GetHist2D(), and GamR::TK::Gate::SetGate().

+ Here is the call graph for this function:

◆ BackgroundSubtractY() [2/8]

TH1D * GamR::Spect::BackgroundSubtractY ( TCanvas * canvas,
const char * name )

Definition at line 371 of file Cut.cc.

References BackgroundSubtractY(), GamR::Utils::GetHist2D(), and GamR::TK::Gate::SetGate().

+ Here is the call graph for this function:

◆ BackgroundSubtractY() [3/8]

TH1D * GamR::Spect::BackgroundSubtractY ( TH2 * hist,
GamR::Nucleus::Transition peak )

Definition at line 366 of file Cut.cc.

References BackgroundSubtractY(), GamR::Nucleus::Transition::GetGate(), and GamR::Nucleus::Transition::GetGateBG().

+ Here is the call graph for this function:

◆ BackgroundSubtractY() [4/8]

TH1D * GamR::Spect::BackgroundSubtractY ( TH2 * hist,
GamR::Nucleus::Transition peak,
const char * name )

Definition at line 361 of file Cut.cc.

References BackgroundSubtractY(), GamR::Nucleus::Transition::GetGate(), and GamR::Nucleus::Transition::GetGateBG().

+ Here is the call graph for this function:

◆ BackgroundSubtractY() [5/8]

TH1D * GamR::Spect::BackgroundSubtractY ( TH2 * hist,
GamR::TK::Gate peak,
GamR::TK::Gate background )

Definition at line 355 of file Cut.cc.

References BackgroundSubtractY().

+ Here is the call graph for this function:

◆ BackgroundSubtractY() [6/8]

TH1D * GamR::Spect::BackgroundSubtractY ( TH2 * hist,
GamR::TK::Gate peak,
GamR::TK::Gate background,
const char * name )

Definition at line 349 of file Cut.cc.

References BackgroundSubtractY().

+ Here is the call graph for this function:

◆ BackgroundSubtractY() [7/8]

TH1D * GamR::Spect::BackgroundSubtractY ( TH2 * hist,
GamR::TK::Gate peak,
std::vector< GamR::TK::Gate > background )

Definition at line 344 of file Cut.cc.

References BackgroundSubtractY().

+ Here is the call graph for this function:

◆ BackgroundSubtractY() [8/8]

TH1D * GamR::Spect::BackgroundSubtractY ( TH2 * hist,
GamR::TK::Gate peak,
std::vector< GamR::TK::Gate > background,
const char * name )

Carries out a rudimentary background subtraction

Subtracts a projection of the background region from a projection of the peak region, with a scaling factor equal to the ratio of the regions' widths.

Gates are applied on the Y-axis.

Parameters
hist2D histogram to act on
peakGate object for the peak bounds
backgroundGate object for the background bounds
nameName of the output histogram
Returns
1D histogram containing the background-subtracted projection

Definition at line 307 of file Cut.cc.

References GamR::TK::Gate::ApplyY(), and GamR::TK::Gate::GetBinWidth().

Referenced by BackgroundSubtractY(), BackgroundSubtractY(), BackgroundSubtractY(), BackgroundSubtractY(), BackgroundSubtractY(), BackgroundSubtractY(), BackgroundSubtractY(), bsy(), bsy(), and GamR::AngDist::AngCorrFit::SetData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ContourCalc() [1/2]

void GamR::Spect::ContourCalc ( TH2 * hist,
int ncontours,
double bias )

Definition at line 277 of file Display.cc.

References ct().

Referenced by cc(), cc(), and ContourCalc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ContourCalc() [2/2]

void GamR::Spect::ContourCalc ( TVirtualPad * canvas,
int ncontours,
double bias )

Definition at line 353 of file Display.cc.

References ContourCalc(), GamR::Utils::GetHist2D(), and GamR::Utils::GetNPads().

+ Here is the call graph for this function:

◆ Counts() [1/3]

std::pair< double, double > GamR::Spect::Counts ( TCanvas * canvas)

Definition at line 86 of file Integral.cc.

References Counts(), GamR::Utils::GetHist1D(), and GamR::TK::Gate::SetGate().

+ Here is the call graph for this function:

◆ Counts() [2/3]

std::pair< double, double > GamR::Spect::Counts ( TH1 * hist,
double peakLow,
double peakHigh,
std::string opt )

Definition at line 81 of file Integral.cc.

References Counts().

+ Here is the call graph for this function:

◆ Counts() [3/3]

std::pair< double, double > GamR::Spect::Counts ( TH1 * hist,
GamR::TK::Gate peak,
std::string opt )

Definition at line 69 of file Integral.cc.

References GamR::TK::Gate::GetCounts(), and GamR::TK::Gate::GetCountsError().

Referenced by Counts(), Counts(), and ct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CountsBS() [1/5]

std::pair< double, double > GamR::Spect::CountsBS ( TCanvas * canvas)

Definition at line 124 of file Integral.cc.

References CountsBS(), GamR::Utils::GetHist1D(), and GamR::Nucleus::Transition::SetTransition().

+ Here is the call graph for this function:

◆ CountsBS() [2/5]

std::pair< double, double > GamR::Spect::CountsBS ( TH1 * hist,
double peakLow,
double peakHigh,
double backLow,
double backHigh,
std::string opt )

Definition at line 119 of file Integral.cc.

References CountsBS().

+ Here is the call graph for this function:

◆ CountsBS() [3/5]

std::pair< double, double > GamR::Spect::CountsBS ( TH1 * hist,
GamR::Nucleus::Transition transition,
std::string opt )

Definition at line 94 of file Integral.cc.

References GamR::Nucleus::Transition::ApplyCounts(), and GamR::Nucleus::Transition::ApplyCountsError().

Referenced by CountsBS(), CountsBS(), CountsBS(), CountsBS(), and ctbs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CountsBS() [4/5]

std::pair< double, double > GamR::Spect::CountsBS ( TH1 * hist,
GamR::TK::Gate peak,
GamR::TK::Gate background,
std::string opt )

Definition at line 106 of file Integral.cc.

References CountsBS(), GamR::TK::Gate::GetHigh(), and GamR::TK::Gate::GetLow().

+ Here is the call graph for this function:

◆ CountsBS() [5/5]

std::pair< double, double > GamR::Spect::CountsBS ( TH1 * hist,
GamR::TK::Gate peak,
std::vector< GamR::TK::Gate > backgrounds,
std::string opt )

Definition at line 111 of file Integral.cc.

References GamR::Nucleus::Transition::AddBackground(), CountsBS(), GamR::TK::Gate::GetHigh(), and GamR::TK::Gate::GetLow().

+ Here is the call graph for this function:

◆ Cursor()

void GamR::Spect::Cursor ( TVirtualPad * canvas)

Definition at line 588 of file Display.cc.

References GamR::Utils::Clicker::GetClicks().

Referenced by cs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CutFromText()

TCutG * GamR::Spect::CutFromText ( std::string s,
std::string name )

Definition at line 359 of file IO.cc.

References ss().

+ Here is the call graph for this function:

◆ Draw()

void GamR::Spect::Draw ( int i,
Option_t * option )

Definition at line 81 of file Display.cc.

References List1DSpectra().

Referenced by sp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Draw2D()

void GamR::Spect::Draw2D ( int i,
Option_t * option )

Definition at line 85 of file Display.cc.

References List2DSpectra().

Referenced by sp2().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawCut() [1/2]

TCutG * GamR::Spect::DrawCut ( std::string cutfile,
int ID,
TVirtualPad * canvas )

Definition at line 538 of file Cut.cc.

References ct(), and ss().

+ Here is the call graph for this function:

◆ DrawCut() [2/2]

TCutG * GamR::Spect::DrawCut ( TVirtualPad * canvas,
bool verbose,
std::string filename,
int ID )

Definition at line 479 of file Cut.cc.

References GamR::Utils::Clicker::GetClicks(), GamR::Utils::Clicker::line, PrintCut(), GamR::Utils::Clicker::xs, and GamR::Utils::Clicker::ys.

+ Here is the call graph for this function:

◆ FFT()

TH1D * GamR::Spect::FFT ( TH1 * hist,
const char * name,
double low,
double high,
FFTWindow wind )

Definition at line 8 of file FFT.cc.

References HAMMING, HANN, and ScaleLabelsLinear().

+ Here is the call graph for this function:

◆ FindPeaks()

TSpectrum * GamR::Spect::FindPeaks ( TCanvas * canvas,
double sigma,
Option_t * option,
double threshold )

Definition at line 1593 of file Fit.cc.

References GamR::Utils::GetHist1D().

Referenced by fp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FitGaussians() [1/3]

TF1 * GamR::Spect::FitGaussians ( TCanvas * canvas,
Option_t * foption,
Option_t * option )

Definition at line 1587 of file Fit.cc.

References FitPeaks().

+ Here is the call graph for this function:

◆ FitGaussians() [2/3]

TF1 * GamR::Spect::FitGaussians ( TH1 * hist,
double Low,
double High,
std::map< std::string, double > Peaks,
Option_t * foption = "",
Option_t * option = "" )

◆ FitGaussians() [3/3]

TF1 * GamR::Spect::FitGaussians ( TH1 * hist,
double Low,
double High,
std::vector< double > Peaks,
Option_t * foption,
Option_t * option )

Definition at line 1580 of file Fit.cc.

References FitPeaks().

+ Here is the call graph for this function:

◆ FitPeaks() [1/3]

PeakFit * GamR::Spect::FitPeaks ( TCanvas * canvas,
Option_t * foption,
Option_t * option )

Fits an arbitrary number of peaks over a quadratic background, using mouse input.

Click left and right for fitting area, then once for every peak centroid. Any key will start fitting.

Parameters
canvasA pointer to a TCanvas object containing a single histogram. Note that this function has not been tested for canvases containing multiple histograms.

Definition at line 836 of file Fit.cc.

References FitPeaks(), GamR::TK::Gaussian, GamR::Spect::PeakFit::GetBackground(), GamR::Utils::GetHist1D(), GamR::Spect::PeakFit::GetPeakBG(), GamR::Spect::PeakFit::GetPeakGaussBG(), GamR::Spect::PeakFit::GetPeaks(), GamR::Spect::PeakFit::GetPeakStepBG(), GamR::Spect::PeakFit::GetPeakType(), GamR::Spect::PeakFit::GetTotal(), ss(), GamR::TK::StepGaussian, and GamR::Utils::Clicker::waiting.

+ Here is the call graph for this function:

◆ FitPeaks() [2/3]

PeakFit * GamR::Spect::FitPeaks ( TH1 * hist,
double Low,
double High,
std::map< std::string, double > Peaks,
Option_t * foption,
Option_t * option,
std::vector< std::string > FixPeaks )

Definition at line 798 of file Fit.cc.

References GamR::Spect::PeakFit::Fit(), GamR::Spect::PeakFit::GetHigh(), GamR::Spect::PeakFit::GetLow(), GamR::Spect::PeakFit::GetTotal(), GamR::Spect::PeakFit::PrintResults(), GamR::Spect::PeakFit::SetResults(), and GamR::Spect::PeakFit::SetUp().

+ Here is the call graph for this function:

◆ FitPeaks() [3/3]

PeakFit * GamR::Spect::FitPeaks ( TH1 * hist,
double Low,
double High,
std::vector< double > Peaks,
Option_t * foption,
Option_t * option,
std::vector< std::string > FixPeaks )

Fits an arbitrary number of Gaussian peaks over a quadratic background.

Parameters
histHistogram to be fitted to
LowLower bound of fit
HighUpper bound of fit
Peaksstd::vector of doubles containing approximate locations of peak centroids (starting guesses)
Returns
A TF1* which is the fitted function

Definition at line 787 of file Fit.cc.

References FitPeaks().

Referenced by FitGaussians(), FitGaussians(), FitPeaks(), FitPeaks(), and pf().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FromBin() [1/2]

TH1D * GamR::Spect::FromBin ( std::string s,
std::string name,
std::string title,
int nx,
double low,
double high,
int size )

Definition at line 298 of file IO.cc.

References fp().

+ Here is the call graph for this function:

◆ FromBin() [2/2]

TH2D * GamR::Spect::FromBin ( std::string s,
std::string name,
std::string title,
int nx,
double xlow,
double xhigh,
int ny,
double ylow,
double yhigh,
int size )

Definition at line 318 of file IO.cc.

References fp().

+ Here is the call graph for this function:

◆ FromText()

TH1D * GamR::Spect::FromText ( std::string s,
std::string name,
bool fill )

Definition at line 245 of file IO.cc.

References ss().

+ Here is the call graph for this function:

◆ GateX() [1/4]

TH1D * GamR::Spect::GateX ( TCanvas * canvas)

Definition at line 99 of file Cut.cc.

References GateX(), and GamR::Utils::GetHist2D().

+ Here is the call graph for this function:

◆ GateX() [2/4]

TH1D * GamR::Spect::GateX ( TCanvas * canvas,
const char * name )

Definition at line 84 of file Cut.cc.

References GateX(), and GamR::Utils::GetHist2D().

+ Here is the call graph for this function:

◆ GateX() [3/4]

TH1D * GamR::Spect::GateX ( TH2 * hist,
GamR::TK::Gate peak )

Definition at line 77 of file Cut.cc.

References GamR::TK::Gate::ApplyX().

+ Here is the call graph for this function:

◆ GateX() [4/4]

TH1D * GamR::Spect::GateX ( TH2 * hist,
GamR::TK::Gate peak,
const char * name )

Carries out a gate and projection

Gates are applied on the X-axis.

Parameters
hist2D histogram to act on
peakGate object for the peak bounds
nameName of the output histogram
Returns
1D histogram containing the gated projection

Definition at line 70 of file Cut.cc.

References GamR::TK::Gate::ApplyX().

Referenced by GateX(), GateX(), and gx().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GateY() [1/4]

TH1D * GamR::Spect::GateY ( TCanvas * canvas)

Definition at line 154 of file Cut.cc.

References GateY(), and GamR::Utils::GetHist2D().

+ Here is the call graph for this function:

◆ GateY() [2/4]

TH1D * GamR::Spect::GateY ( TCanvas * canvas,
const char * name )

Definition at line 139 of file Cut.cc.

References GateY(), and GamR::Utils::GetHist2D().

+ Here is the call graph for this function:

◆ GateY() [3/4]

TH1D * GamR::Spect::GateY ( TH2 * hist,
GamR::TK::Gate peak )

Definition at line 132 of file Cut.cc.

References GamR::TK::Gate::ApplyY().

+ Here is the call graph for this function:

◆ GateY() [4/4]

TH1D * GamR::Spect::GateY ( TH2 * hist,
GamR::TK::Gate peak,
const char * name )

Carries out a gate and projection

Gates are applied on the Y-axis.

Parameters
hist2D histogram to act on
peakGate object for the peak bounds
nameName of the output histogram
Returns
1D histogram containing the gated projection

Definition at line 125 of file Cut.cc.

References GamR::TK::Gate::ApplyY().

Referenced by GateY(), GateY(), and gy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Init()

void GamR::Spect::Init ( )

◆ Integral() [1/3]

std::pair< double, double > GamR::Spect::Integral ( TCanvas * canvas)

Definition at line 32 of file Integral.cc.

References GamR::Utils::GetHist1D(), Integral(), and GamR::TK::Gate::SetGate().

+ Here is the call graph for this function:

◆ Integral() [2/3]

std::pair< double, double > GamR::Spect::Integral ( TH1 * hist,
double peakLow,
double peakHigh )

Definition at line 27 of file Integral.cc.

References Integral().

+ Here is the call graph for this function:

◆ Integral() [3/3]

std::pair< double, double > GamR::Spect::Integral ( TH1 * hist,
GamR::TK::Gate peak )

Definition at line 18 of file Integral.cc.

References GamR::TK::Gate::GetIntegral(), and GamR::TK::Gate::GetIntegralError().

Referenced by ig(), Integral(), and Integral().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IntegralBS() [1/4]

std::pair< double, double > GamR::Spect::IntegralBS ( TCanvas * canvas)

Definition at line 59 of file Integral.cc.

References GamR::Utils::GetHist1D(), IntegralBS(), and GamR::Nucleus::Transition::SetTransition().

+ Here is the call graph for this function:

◆ IntegralBS() [2/4]

std::pair< double, double > GamR::Spect::IntegralBS ( TH1 * hist,
double peakLow,
double peakHigh,
double backLow,
double backHigh )

Definition at line 54 of file Integral.cc.

References IntegralBS().

+ Here is the call graph for this function:

◆ IntegralBS() [3/4]

std::pair< double, double > GamR::Spect::IntegralBS ( TH1 * hist,
GamR::Nucleus::Transition transition )

Definition at line 40 of file Integral.cc.

References GamR::Nucleus::Transition::Apply(), and GamR::Nucleus::Transition::ApplyError().

Referenced by igbs(), IntegralBS(), IntegralBS(), and IntegralBS().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IntegralBS() [4/4]

std::pair< double, double > GamR::Spect::IntegralBS ( TH1 * hist,
GamR::TK::Gate peak,
GamR::TK::Gate background )

Definition at line 49 of file Integral.cc.

References GamR::TK::Gate::GetHigh(), GamR::TK::Gate::GetLow(), and IntegralBS().

+ Here is the call graph for this function:

◆ LinAll()

void GamR::Spect::LinAll ( TVirtualPad * canvas)

Definition at line 372 of file Display.cc.

References GamR::Utils::GetNPads(), and LinAll().

Referenced by lin(), and LinAll().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ List1DSpectra()

std::vector< TH1 * > GamR::Spect::List1DSpectra ( bool quiet)

Definition at line 16 of file Display.cc.

Referenced by Add(), Add(), Draw(), ls(), OverlaySpectra(), OverlaySpectra(), StackSpectra(), and StackSpectra().

+ Here is the caller graph for this function:

◆ List2DSpectra()

std::vector< TH2 * > GamR::Spect::List2DSpectra ( bool quiet)

Definition at line 53 of file Display.cc.

Referenced by Add2(), Add2(), Draw2D(), ls2(), OverlaySpectra(), and StackSpectra().

+ Here is the caller graph for this function:

◆ LoadGuesses()

int GamR::Spect::LoadGuesses ( std::string path)

◆ LogAll()

void GamR::Spect::LogAll ( TVirtualPad * canvas)

Definition at line 388 of file Display.cc.

References GamR::Utils::GetNPads(), and LogAll().

Referenced by log(), and LogAll().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Multiply()

TH1D * GamR::Spect::Multiply ( TH1 * hist1,
const char * name,
double c1 )

Function to multiply a histogram with correct error handling

Errors are multiplied by the same constant

Parameters
hist1Histogram input
nameName of the output histogram
c1Factor to multiply
Returns
c1*hist1

Definition at line 220 of file Transform.cc.

◆ Norm()

void GamR::Spect::Norm ( TH1 * hist,
TH1 * ref,
double low,
double high )

Definition at line 382 of file Transform.cc.

References GamR::TK::Gate::Norm().

+ Here is the call graph for this function:

◆ NormBackSub()

void GamR::Spect::NormBackSub ( TH1 * hist,
TH1 * ref,
double low,
double high,
double backlow,
double backhigh )

Definition at line 387 of file Transform.cc.

References GamR::TK::Gate::NormBackSub().

+ Here is the call graph for this function:

◆ NormSpectra()

void GamR::Spect::NormSpectra ( TVirtualPad * canvas,
Option_t * option )

Definition at line 513 of file Display.cc.

References GamR::Utils::GetHists1D(), GamR::TK::Gate::Norm(), and GamR::TK::Gate::SetGate().

Referenced by ns().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NormSpectraBackSub()

void GamR::Spect::NormSpectraBackSub ( TVirtualPad * canvas)

Definition at line 547 of file Display.cc.

References GamR::Utils::GetHists1D(), GamR::TK::Gate::NormBackSub(), and GamR::TK::Gate::SetGate().

Referenced by nsbs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OverlaySpectra() [1/9]

void GamR::Spect::OverlaySpectra ( int i2D,
int iStart,
int iStop,
Option_t * option )

Definition at line 160 of file Display.cc.

References List2DSpectra(), and OverlaySpectra().

+ Here is the call graph for this function:

◆ OverlaySpectra() [2/9]

void GamR::Spect::OverlaySpectra ( int iStart,
int iStop,
TCanvas * canvas,
Option_t * option )

Definition at line 99 of file Display.cc.

References List1DSpectra(), and OverlaySpectra().

+ Here is the call graph for this function:

◆ OverlaySpectra() [3/9]

void GamR::Spect::OverlaySpectra ( std::vector< int > display_indexes,
TCanvas * canvas,
Option_t * option )

Definition at line 90 of file Display.cc.

References List1DSpectra(), and OverlaySpectra().

Referenced by os(), os(), os(), os(), os(), os(), os(), os(), os(), OverlaySpectra(), OverlaySpectra(), OverlaySpectra(), OverlaySpectra(), OverlaySpectra(), OverlaySpectra(), OverlaySpectra(), and OverlaySpectra().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OverlaySpectra() [4/9]

void GamR::Spect::OverlaySpectra ( std::vector< std::string > files,
std::string name,
int iX,
Option_t * option )

Definition at line 165 of file Display.cc.

References OverlaySpectra().

+ Here is the call graph for this function:

◆ OverlaySpectra() [5/9]

void GamR::Spect::OverlaySpectra ( std::vector< std::string > files,
std::string name,
int iXstart,
int iXstop,
Option_t * option )

Definition at line 176 of file Display.cc.

References OverlaySpectra().

+ Here is the call graph for this function:

◆ OverlaySpectra() [6/9]

void GamR::Spect::OverlaySpectra ( std::vector< std::string > files,
std::string name,
Option_t * option )

Definition at line 187 of file Display.cc.

References OverlaySpectra().

+ Here is the call graph for this function:

◆ OverlaySpectra() [7/9]

void GamR::Spect::OverlaySpectra ( std::vector< TH1 * > hists,
TCanvas * canvas,
Option_t * option )

Definition at line 108 of file Display.cc.

◆ OverlaySpectra() [8/9]

void GamR::Spect::OverlaySpectra ( TH2 * hist,
int iStart,
int iStop,
Option_t * option )

Definition at line 141 of file Display.cc.

References OverlaySpectra().

+ Here is the call graph for this function:

◆ OverlaySpectra() [9/9]

void GamR::Spect::OverlaySpectra ( TH2 * hist,
std::vector< int > indices,
Option_t * option )

Definition at line 150 of file Display.cc.

References OverlaySpectra().

+ Here is the call graph for this function:

◆ PrintCut()

void GamR::Spect::PrintCut ( TCutG * cut)

Definition at line 591 of file Cut.cc.

Referenced by DrawCut().

+ Here is the caller graph for this function:

◆ ProjX() [1/4]

TH1D * GamR::Spect::ProjX ( TH2 * hist)

Definition at line 15 of file Cut.cc.

◆ ProjX() [2/4]

TH1D * GamR::Spect::ProjX ( TH2 * hist,
const char * name )

Definition at line 11 of file Cut.cc.

Referenced by ProjX(), ProjX(), and px().

+ Here is the caller graph for this function:

◆ ProjX() [3/4]

TH1D * GamR::Spect::ProjX ( TVirtualPad * canvas)

Definition at line 27 of file Cut.cc.

References GamR::Utils::GetHist2D(), and ProjX().

+ Here is the call graph for this function:

◆ ProjX() [4/4]

TH1D * GamR::Spect::ProjX ( TVirtualPad * canvas,
const char * name )

Definition at line 19 of file Cut.cc.

References GamR::Utils::GetHist2D(), and ProjX().

+ Here is the call graph for this function:

◆ ProjY() [1/4]

TH1D * GamR::Spect::ProjY ( TH2 * hist)

Definition at line 39 of file Cut.cc.

◆ ProjY() [2/4]

TH1D * GamR::Spect::ProjY ( TH2 * hist,
const char * name )

Definition at line 35 of file Cut.cc.

Referenced by ProjY(), ProjY(), and py().

+ Here is the caller graph for this function:

◆ ProjY() [3/4]

TH1D * GamR::Spect::ProjY ( TVirtualPad * canvas)

Definition at line 51 of file Cut.cc.

References GamR::Utils::GetHist2D(), and ProjY().

+ Here is the call graph for this function:

◆ ProjY() [4/4]

TH1D * GamR::Spect::ProjY ( TVirtualPad * canvas,
const char * name )

Definition at line 43 of file Cut.cc.

References GamR::Utils::GetHist2D(), and ProjY().

+ Here is the call graph for this function:

◆ Rebin() [1/2]

TH1 * GamR::Spect::Rebin ( TH1 * hist,
int rebin )

Definition at line 306 of file Transform.cc.

Referenced by rb(), rb(), and Rebin().

+ Here is the caller graph for this function:

◆ Rebin() [2/2]

void GamR::Spect::Rebin ( TVirtualPad * canvas,
int rebin )

Definition at line 359 of file Transform.cc.

References GamR::Utils::GetHists1D(), GamR::Utils::GetNPads(), and Rebin().

+ Here is the call graph for this function:

◆ RebinX() [1/2]

TH2 * GamR::Spect::RebinX ( TH2 * hist,
int rebin )

Definition at line 311 of file Transform.cc.

Referenced by rbx(), rbx(), and RebinX().

+ Here is the caller graph for this function:

◆ RebinX() [2/2]

void GamR::Spect::RebinX ( TVirtualPad * canvas,
int rebin )

Definition at line 321 of file Transform.cc.

References GamR::Utils::GetHist2D(), GamR::Utils::GetNPads(), and RebinX().

+ Here is the call graph for this function:

◆ RebinY() [1/2]

TH2 * GamR::Spect::RebinY ( TH2 * hist,
int rebin )

Definition at line 316 of file Transform.cc.

Referenced by rby(), rby(), and RebinY().

+ Here is the caller graph for this function:

◆ RebinY() [2/2]

void GamR::Spect::RebinY ( TVirtualPad * canvas,
int rebin )

Definition at line 340 of file Transform.cc.

References GamR::Utils::GetHist2D(), GamR::Utils::GetNPads(), and RebinY().

+ Here is the call graph for this function:

◆ Rename()

void GamR::Spect::Rename ( TVirtualPad * canvas)

Definition at line 569 of file Display.cc.

References GamR::Utils::GetHists1D().

Referenced by rn().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Reverse()

void GamR::Spect::Reverse ( TH1 * h)

Reverses histogram in place (flips X-axis). Since in ROOT axis cannot run backwards, the axis labels are not changed.

Parameters
hHistogram to be acted upon
Returns
Reversed histogram

Definition at line 236 of file Transform.cc.

◆ RotateTH2()

TH2D * GamR::Spect::RotateTH2 ( TH2 * hist,
float angle,
const char * name,
TCutG * bananaGate )

rotates TH2 spectrum anticlocwise by angle (degrees) applying the optional cut of bananaGate if required.

Parameters
histHistogram to be rotated
angleAngle to rotate by
nameName of output histogram
bananaGateOptional TCutG cut
Returns
Rotated histogram

Definition at line 255 of file Transform.cc.

◆ Scale()

TH1D GamR::Spect::Scale ( const TH1 * h,
TFormula f )

Scales a histogram along the X axis and dithers to avoid quantization errors.

Parameters
hInput histogram
fFunction
Returns
Scaled copy of histogram

Definition at line 21 of file Transform.cc.

Referenced by ScalePoly().

+ Here is the caller graph for this function:

◆ ScaleLabelsLinear()

void GamR::Spect::ScaleLabelsLinear ( TH1 * h,
Double_t m,
Double_t c )

Scales the labels of a histogram. Preferable over GamR::Spect::Scale and GamR::Spect::ScalePoly as it avoids having to regenerate the histogram.

Parameters
hHistogram to be scaled.
mFirst derivative / Gain
cShift / Offset

Definition at line 64 of file Transform.cc.

Referenced by FFT(), and TwoPointCalibrate().

+ Here is the caller graph for this function:

◆ ScalePoly()

TH1D GamR::Spect::ScalePoly ( const TH1 * h,
std::vector< Double_t > pars )

Scales histogram by a polynomial.

If first order, use GamR::Spect::ScaleLabelsLinear to avoid a significant amount overhead.

Parameters
hInput histogram
parsPolynomial coefficients (zeroth = constant)
Returns
Scaled copy of histogram

Definition at line 45 of file Transform.cc.

References Scale().

+ Here is the call graph for this function:

◆ Shift()

void GamR::Spect::Shift ( TH1 & h,
Int_t shift )

Shifts the contents of a histogram (in place) by a specified number of bins

Parameters
hHistogram to be acted upon
shiftNumber of bins to shift contents (positive = right shift)

Definition at line 80 of file Transform.cc.

◆ StackSpectra() [1/7]

void GamR::Spect::StackSpectra ( int i2D,
int iStart,
int iStop,
Option_t * option )

Definition at line 250 of file Display.cc.

References List2DSpectra(), and StackSpectra().

+ Here is the call graph for this function:

◆ StackSpectra() [2/7]

void GamR::Spect::StackSpectra ( int iStart,
int iStop,
TCanvas * canvas,
Option_t * option )

Definition at line 207 of file Display.cc.

References List1DSpectra(), and StackSpectra().

+ Here is the call graph for this function:

◆ StackSpectra() [3/7]

void GamR::Spect::StackSpectra ( std::vector< int > display_indexes,
TCanvas * canvas,
Option_t * option )

Definition at line 198 of file Display.cc.

References List1DSpectra(), and StackSpectra().

Referenced by ss(), ss(), ss(), ss(), ss(), ss(), ss(), StackSpectra(), StackSpectra(), StackSpectra(), StackSpectra(), StackSpectra(), and StackSpectra().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ StackSpectra() [4/7]

void GamR::Spect::StackSpectra ( std::vector< std::string > files,
std::string name,
int iX,
Option_t * option )

Definition at line 255 of file Display.cc.

References StackSpectra().

+ Here is the call graph for this function:

◆ StackSpectra() [5/7]

void GamR::Spect::StackSpectra ( std::vector< std::string > files,
std::string name,
Option_t * option )

Definition at line 266 of file Display.cc.

References StackSpectra().

+ Here is the call graph for this function:

◆ StackSpectra() [6/7]

void GamR::Spect::StackSpectra ( std::vector< TH1 * > hists,
TCanvas * canvas,
Option_t * option )

Definition at line 216 of file Display.cc.

◆ StackSpectra() [7/7]

void GamR::Spect::StackSpectra ( TH2 * hist,
int iStart,
int iStop,
Option_t * option )

Definition at line 241 of file Display.cc.

References StackSpectra().

+ Here is the call graph for this function:

◆ ToBin() [1/2]

void GamR::Spect::ToBin ( const TH1 * h,
std::string outfile )

Definition at line 202 of file IO.cc.

◆ ToBin() [2/2]

void GamR::Spect::ToBin ( const TH2 * h,
std::string outfile,
int padx,
int pady )

Definition at line 187 of file IO.cc.

◆ ToSPE()

void GamR::Spect::ToSPE ( const TH1 * h,
std::string outfile )

Definition at line 212 of file IO.cc.

References W.

◆ ToText() [1/7]

std::string GamR::Spect::ToText ( const TF1 * f,
std::string outfile,
std::string delimiter )

Definition at line 164 of file IO.cc.

References ss().

+ Here is the call graph for this function:

◆ ToText() [2/7]

std::string GamR::Spect::ToText ( const TGraph * g,
int ID,
std::string outfile,
std::string delimiter )

Definition at line 140 of file IO.cc.

References ss().

+ Here is the call graph for this function:

◆ ToText() [3/7]

std::string GamR::Spect::ToText ( const TGraph * g,
std::string outfile,
std::string delimiter )

Definition at line 117 of file IO.cc.

References ss().

+ Here is the call graph for this function:

◆ ToText() [4/7]

std::string GamR::Spect::ToText ( const TGraphAsymmErrors * g,
std::string outfile,
std::string delimiter )

Definition at line 92 of file IO.cc.

References ss().

+ Here is the call graph for this function:

◆ ToText() [5/7]

std::string GamR::Spect::ToText ( const TGraphErrors * g,
std::string outfile,
std::string delimiter )

Definition at line 68 of file IO.cc.

References ss().

+ Here is the call graph for this function:

◆ ToText() [6/7]

std::string GamR::Spect::ToText ( const TH1 * h,
std::string outfile,
std::string delimiter )

Definition at line 12 of file IO.cc.

References ss().

+ Here is the call graph for this function:

◆ ToText() [7/7]

std::string GamR::Spect::ToText ( const TH2 * h,
std::string outfile,
std::string delimiter,
int binx_lo,
int binx_hi,
int biny_lo,
int biny_hi )

Definition at line 34 of file IO.cc.

References ss().

+ Here is the call graph for this function:

◆ TwoClickCalibrate()

std::pair< double, double > GamR::Spect::TwoClickCalibrate ( TVirtualPad * canvas)

Definition at line 14 of file Calibrate.cc.

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

Referenced by ca2().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TwoPointCalibrate() [1/3]

std::pair< double, double > GamR::Spect::TwoPointCalibrate ( TH1 * hist,
double lowEst,
double highEst,
double lowEn,
double highEn,
double sigma )

Definition at line 326 of file Calibrate.cc.

◆ TwoPointCalibrate() [2/3]

std::pair< double, double > GamR::Spect::TwoPointCalibrate ( TVirtualPad * canvas,
double lowEn,
double highEn,
double sigma )

Definition at line 198 of file Calibrate.cc.

References GamR::Utils::GetHist1D(), and GamR::Utils::Clicker::waiting.

+ Here is the call graph for this function:

◆ TwoPointCalibrate() [3/3]

std::pair< double, double > GamR::Spect::TwoPointCalibrate ( TVirtualPad * canvas,
double sigma )

Definition at line 52 of file Calibrate.cc.

References GamR::Utils::GetHist1D(), ScaleLabelsLinear(), and GamR::Utils::Clicker::waiting.

Referenced by ca(), and ca().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UnZoomAllX()

void GamR::Spect::UnZoomAllX ( TVirtualPad * canvas)

Definition at line 457 of file Display.cc.

References GamR::Utils::GetHist1D(), GamR::Utils::GetHist2D(), GamR::Utils::GetNPads(), and UnZoomAllX().

Referenced by UnZoomAllX(), uz(), and uzx().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UnZoomAllY()

void GamR::Spect::UnZoomAllY ( TVirtualPad * canvas)

Definition at line 485 of file Display.cc.

References GamR::Utils::GetHist1D(), GamR::Utils::GetHist2D(), GamR::Utils::GetNPads(), and UnZoomAllY().

Referenced by UnZoomAllY(), uz(), and uzy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ZoomAllX()

void GamR::Spect::ZoomAllX ( double low,
double high,
TVirtualPad * canvas )

Definition at line 405 of file Display.cc.

References GamR::Utils::GetHist1D(), GamR::Utils::GetHist2D(), GamR::Utils::GetNPads(), and ZoomAllX().

Referenced by ZoomAllX(), and zx().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ZoomAllY()

void GamR::Spect::ZoomAllY ( double low,
double high,
TVirtualPad * canvas )

Definition at line 431 of file Display.cc.

References GamR::Utils::GetHist1D(), GamR::Utils::GetHist2D(), GamR::Utils::GetNPads(), and ZoomAllY().

Referenced by ZoomAllY(), and zy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ gFitGuesses