GamR  0.0.0
GammaROOT
Loading...
Searching...
No Matches
FitGuesses.hh
Go to the documentation of this file.
1#ifndef GAMR_SPECT_FITGUESSES_HH
2#define GAMR_SPECT_FITGUESSES_HH
3
4#include <vector>
5#include <iostream>
6#include <string>
7#include <fstream>
8
9#include <RtypesCore.h>
10#include <TCanvas.h>
11#include <TF1.h>
12#include <TROOT.h>
13#include <TSpectrum.h>
14
15namespace GamR {
16 namespace Spect {
17 struct Parameter {
18 double val;
19 double low;
20 double high;
21 };
22
24 public:
31 Parameter fScale; //goes between area and counts, only used for printing
32
33
34 public:
36 //default values
37 fWidth = {1.,0.,20.};
38 fStepAmp = {1.,0.,20.};
39 fSkewAmp = {10,0,100};
40 fSkewWidth = {2.5,0,10};
41 fSkewAmp2 = {5,0,100};
42 fSkewWidth2 = {5,0,10};
43 fScale = {1.0, 1.0, 1.0};
44 }
45
46 int Load(std::string filename);
47
48 void Print();
49 void Save(std::string filename);
50 void Save();
51 void Set(int i, double val, double low, double high);
52 void Set();
53
54 };
55
57
58 int LoadGuesses(std::string path);
59
60 void Init();
61 }
62}
63
64#endif
void Set(int i, double val, double low, double high)
void Save(std::string filename)
int Load(std::string filename)
PeakFitGuesses * gFitGuesses
int LoadGuesses(std::string path)
Definition Gain.cc:19