Skip to content
Snippets Groups Projects
Commit 3cb79140 authored by Charlie Paxman's avatar Charlie Paxman
Browse files

* e793s - tweak

parent b1aa1817
No related branches found
No related tags found
No related merge requests found
Pipeline #160914 passed
/* Predefine functions */
vector<vector<double>> ExpDiffCross(double Energy);
TH1F* PullThetaLabHist(int i, double minTheta, double gatesize);
void Scale(TGraph* g , TGraphErrors* ex);
......@@ -5,11 +6,13 @@ TGraph* TWOFNR(double E, double J0, double J, double n, double l, double j);
double ToMininize(const double* parameter);
TGraph* FindNormalisation(TGraph* theory, TGraphErrors* experiment);
/* Global variables */
vector<Double_t> anglecentres, anglewidth;
TGraph* currentThry;
TGraphErrors* staticExp;
int indexE;
/* Output volume toggle */
bool loud = 0;
////////////////////////////////////////////////////////////////////////////////
......@@ -21,6 +24,12 @@ void CS(double Energy, double Spin, double spdf, double angmom, double nodes){
// J0 is incident spin, which is 47K g.s. therefore J0 = 1/2
double J0 = 0.5;
/* Clean global variables, in case of multiple runs */
indexE = 100;
anglecentres.clear();
anglewidth.clear();
/* Retrieve array index of the entered peak energy */
/* numpeaks and Energy[] defined globally in KnownPeakFitter.h */
bool found = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment