1#ifndef GAMROOT_SPECT_TRANSFORM_HH
2#define GAMROOT_SPECT_TRANSFORM_HH
13#include <TVirtualPad.h>
25 TH1D
Scale(
const TH1 *h, TFormula f);
26 TH1D
ScalePoly(
const TH1 *h, std::vector<Double_t> pars);
28 void Shift(TH1 &h, Int_t shift);
29 TH1D *
Add(TH1 *hist1, TH1 *hist2,
const char *name,
double c1 = 1,
double c2 = 1);
30 TH1D *
Add(std::vector<TH1*> hists,
const char *name);
31 TH1D *
Add(std::vector<int> hists,
const char *name);
32 TH1D *
Add(
int iStart,
int iStop,
const char *name);
33 TH2D *
Add(TH2 *hist1, TH2 *hist2,
const char *name,
double c1 = 1,
double c2 = 1);
34 TH2D *
Add(std::vector<TH2*> hists,
const char *name);
35 TH2D *
Add2(std::vector<int> hists,
const char *name);
36 TH2D *
Add2(
int iStart,
int iStop,
const char *name);
37 TH1 *
Rebin(TH1 *hist,
int rebin);
38 void Rebin(TVirtualPad *canvas,
int rebin);
39 TH2 *
RebinX(TH2 *hist,
int rebin);
40 void RebinX(TVirtualPad *canvas,
int rebin);
41 TH2 *
RebinY(TH2 *hist,
int rebin);
42 void RebinY(TVirtualPad *canvas,
int rebin);
43 TH1D *
Multiply(TH1 *hist1,
const char *name,
double c1 = 1);
45 TH2D *
RotateTH2(TH2 *hist,
float angle,
const char *name, TCutG *bananaGate = 0);
46 void Norm(TH1 *hist, TH1* ref,
double low,
double high);
47 void NormBackSub(TH1 *hist, TH1* ref,
double low,
double high,
double backlow,
double backhigh);
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...
void Shift(TH1 &h, Int_t shift)
TH2 * RebinY(TH2 *hist, int rebin)
TH1 * Rebin(TH1 *hist, int rebin)
TH2D * Add2(std::vector< int > hists, const char *name)
TH1D * Multiply(TH1 *hist1, const char *name, double c1)
TH1D Scale(const TH1 *h, TFormula f)
Scales a histogram along the X axis and dithers to avoid quantization errors.
void NormBackSub(TH1 *hist, TH1 *ref, double low, double high, double backlow, double backhigh)
TH2D * RotateTH2(TH2 *hist, float angle, const char *name, TCutG *bananaGate)
TH1D ScalePoly(const TH1 *h, std::vector< Double_t > pars)
Scales histogram by a polynomial.
TH2 * RebinX(TH2 *hist, int rebin)
TH1D * Add(TH1 *hist1, TH1 *hist2, const char *name, double c1, double c2)
void Norm(TH1 *hist, TH1 *ref, double low, double high)