1#ifndef GAMR_SPECT_CUT_HH
2#define GAMR_SPECT_CUT_HH
10#include <TSpectrum2.h>
19 TH1D *
ProjX(TH2 *hist,
const char *name);
20 TH1D *
ProjX(TH2 *hist);
21 TH1D *
ProjX(TVirtualPad *canvas,
const char *name);
22 TH1D *
ProjX(TVirtualPad *canvas);
24 TH1D *
ProjY(TH2 *hist,
const char *name);
25 TH1D *
ProjY(TH2 *hist);
26 TH1D *
ProjY(TVirtualPad *canvas,
const char *name);
27 TH1D *
ProjY(TVirtualPad *canvas);
29 TH1D *
GateX(TH2 *hist, GamR::TK::Gate peak,
const char *name);
30 TH1D *
GateX(TH2 *hist, GamR::TK::Gate peak);
31 TH1D *
GateX(TCanvas *canvas,
const char *name);
32 TH1D *
GateX(TCanvas *canvas);
34 TH1D *
GateY(TH2 *hist, GamR::TK::Gate peak,
const char *name);
35 TH1D *
GateY(TH2 *hist, GamR::TK::Gate peak);
36 TH1D *
GateY(TCanvas *canvas,
const char *name);
37 TH1D *
GateY(TCanvas *canvas);
39 TH1D *
BackgroundSubtractX(TH2 *hist, GamR::TK::Gate peak, std::vector<GamR::TK::Gate > background,
const char *name);
40 TH1D *
BackgroundSubtractX(TH2 *hist, GamR::TK::Gate peak, std::vector<GamR::TK::Gate > background);
41 TH1D *
BackgroundSubtractX(TH2 *hist, GamR::TK::Gate peak, GamR::TK::Gate background,
const char *name);
48 TH1D *
BackgroundSubtractY(TH2 *hist, GamR::TK::Gate peak, std::vector<GamR::TK::Gate >background,
const char *name);
49 TH1D *
BackgroundSubtractY(TH2 *hist, GamR::TK::Gate peak, std::vector<GamR::TK::Gate >background);
50 TH1D *
BackgroundSubtractY(TH2 *hist, GamR::TK::Gate peak, GamR::TK::Gate background,
const char *name);
59 TCutG *
DrawCut(TVirtualPad *canvas,
bool verbose=
false, std::string filename=
"",
int ID=-1);
60 TCutG *
DrawCut(std::string cutfile,
int ID, TVirtualPad *canvas);
64 std::shared_ptr<TH2D>
BackgroundEstimate(
const TH2 *hist, Int_t NiterX = 4, Int_t NiterY = 4,
65 Int_t direction = TSpectrum2::kBackIncreasingWindow,
66 Int_t filtertype = TSpectrum2::kBackOneStepFiltering);
TH1D * ProjY(TH2 *hist, const char *name)
TCutG * DrawCut(TVirtualPad *canvas, bool verbose, std::string filename, int ID)
TH1D * BackgroundSubtractY(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, const char *name)
std::shared_ptr< TH2D > BackgroundEstimate(const TH2 *hist, Int_t NiterX, Int_t NiterY, Int_t direction, Int_t filtertype)
TH1D * GateY(TH2 *hist, GamR::TK::Gate peak, const char *name)
TH1D * ProjX(TH2 *hist, const char *name)
TH2D * BackgroundSubtract2D(TH2 *peak, TH2 *background, double scale)
void PrintCut(TCutG *cut)
TH1D * GateX(TH2 *hist, GamR::TK::Gate peak, const char *name)