8#include "TGraphErrors.h"
24 void Copy(TObject& obj) const override;
25 void Print(Option_t* opt = "") const override;
26 void Clear(Option_t* opt = "") override;
27 void Draw(Option_t* opt = "") override;
34 TGraphErrors&
MakeEffGraph(
double seconds = 3600.,
double bq = 100000., Option_t* opt =
"draw");
35 std::vector<double>
Calibrate(
double min_figure_of_merit = 0.001);
37 int AddData(TH1* data,
const std::string& source,
double sigma = 2.0,
double threshold = 0.05,
double error = 0.001);
39 int AddData(TH1* data,
TNucleus* source,
double sigma = 2.0,
double threshold = 0.05,
double error = 0.001);
43 void Fit(
int order = 1);
55 void AddPeak(
double cent,
double eng, std::string nuc,
double a = 0.0,
double inten = 0.0);
77 static std::map<double, double>
Match(std::vector<double>, std::vector<double>);
90 static void ResetMap(std::map<double, double>& inmap);
91 static void PrintMap(std::map<double, double>& inmap);
92 static bool CheckMap(
const std::map<double, double>& inmap);
static void PrintMap(std::map< double, double > &inmap)
TGraphErrors & MakeEffGraph(double seconds=3600., double bq=100000., Option_t *opt="draw")
void SetFitOrder(int order)
TCalibrator(TCalibrator &&) noexcept=default
int AddData(TH1 *data, const std::string &source, double sigma=2.0, double threshold=0.05, double error=0.001)
std::vector< double > Calibrate(double min_figure_of_merit=0.001)
static std::map< double, double > Match(std::vector< double >, std::vector< double >)
TCalibrator(const TCalibrator &)=default
double GetParameter(int i=0) const
void Draw(Option_t *opt="") override
void Copy(TObject &obj) const override
std::array< double, 4 > fEffPar
static bool CheckMap(const std::map< double, double > &inmap)
void AddPeak(double cent, double eng, std::string nuc, double a=0.0, double inten=0.0)
double GetEffParameter(int i=0) const
Peak GetPeak(UInt_t i) const
void UpdateTChannel(TChannel *channel)
void Print(Option_t *opt="") const override
std::string PrintEfficency(const char *filename="")
static void ResetMap(std::map< double, double > &inmap)
std::vector< Peak > fPeaks
TGraph & MakeCalibrationGraph(double min_figure_of_merit=0.001)
void Clear(Option_t *opt="") override