GamR  0.0.0
GammaROOT
Loading...
Searching...
No Matches
Integral.hh
Go to the documentation of this file.
1#ifndef GAMR_SPECT_CLICKINT_HH
2#define GAMR_SPECT_CLICKINT_HH
3
4#include <vector>
5
6#include <TCanvas.h>
7#include <TF1.h>
8#include <TROOT.h>
9#include <RtypesCore.h>
10
11#include <toolkit/Gate.hh>
12#include <nucleus/Transition.hh>
13
14namespace GamR {
15 namespace Spect {
16 //std::vector<double, double> *ClickInt(TH1 *hist, double peakLow, double
17 // peakHigh, double bg1Low, double bg1high);
18 // TF1 *FitGaussians(TCanvas *canvas = gPad->GetCanvas(), Option_t* foption="", Option_t* option="");
19 std::pair<double, double> Integral(TH1 *hist, GamR::TK::Gate peak);
20 std::pair<double, double> Integral(TH1 *hist, double peakLow, double peakHigh);
21 std::pair<double, double> Integral(TCanvas *canvas = gPad->GetCanvas());
22
23 std::pair<double, double> IntegralBS(TH1 *hist, GamR::Nucleus::Transition transition);
24 std::pair<double, double> IntegralBS(TH1 *hist, GamR::TK::Gate peak, GamR::TK::Gate background);
25 std::pair<double, double> IntegralBS(TH1 *hist, double peakLow, double peakHigh, double backLow, double backHigh);
26 std::pair<double, double> IntegralBS(TCanvas *canvas = gPad->GetCanvas());
27
28 std::pair<double, double> Counts(TH1 *hist, GamR::TK::Gate peak, std::string opt="");
29 std::pair<double, double> Counts(TH1 *hist, double peakLow, double peakHigh, std::string opt="");
30 std::pair<double, double> Counts(TCanvas *canvas = gPad->GetCanvas());
31
32 std::pair<double, double> CountsBS(TH1 *hist, GamR::Nucleus::Transition transition, std::string opt="");
33 std::pair<double, double> CountsBS(TH1 *hist, GamR::TK::Gate peak, GamR::TK::Gate background, std::string opt="");
34 std::pair<double, double> CountsBS(TH1 *hist, GamR::TK::Gate peak, std::vector<GamR::TK::Gate> backgrounds, std::string opt="");
35 std::pair<double, double> CountsBS(TH1 *hist, double peakLow, double peakHigh, double backLow, double backHigh, std::string opt="");
36
37
38 std::pair<double, double> CountsBS(TCanvas *canvas = gPad->GetCanvas());
39 } /* namespace Spect */
40} /* namespace GamR */
41
42#endif //GAMR_SPECT_CLICKINT_HH
std::pair< double, double > IntegralBS(TH1 *hist, GamR::Nucleus::Transition transition)
Definition Integral.cc:40
std::pair< double, double > CountsBS(TH1 *hist, GamR::Nucleus::Transition transition, std::string opt)
Definition Integral.cc:94
std::pair< double, double > Counts(TH1 *hist, GamR::TK::Gate peak, std::string opt)
Definition Integral.cc:69
std::pair< double, double > Integral(TH1 *hist, GamR::TK::Gate peak)
Definition Integral.cc:18
Definition Gain.cc:19