File indexing completed on 2025-01-18 09:15:01
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef Asymmetry_H
0010 #define Asymmetry_H
0011
0012 #include <vector>
0013 #include "TF1.h"
0014
0015 using namespace std;
0016
0017 class Asymmetry
0018 {
0019 private:
0020
0021 char * root_filepath;
0022
0023 char * AsyNameStr;
0024
0025
0026 int nQsq;
0027 vector<double> Qsq_Vec;
0028 vector<TF1*> AsyFunction;
0029
0030 char * FuncForm;
0031
0032 int nPars;
0033
0034
0035 double Extrap(double x0, double x1, double x2,
0036 double y1, double y2);
0037
0038
0039 public:
0040 Asymmetry(char * in_AsyName, char * in_Func,
0041 vector<double> in_Qsq = vector<double>(),
0042 bool refit = true);
0043
0044 int SetPars(vector<double> in_Qsq);
0045
0046 int Parameterize();
0047
0048 int Parameterize(vector<double> in_Qsq);
0049
0050
0051 double GetAsyAmp(double Qsq, double tp);
0052
0053
0054
0055
0056
0057 void PrintPars();
0058
0059 };
0060 #endif