GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
AngularCorrelations.cxx File Reference
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <cassert>
#include <fstream>
#include "TFile.h"
#include "TH2.h"
#include "TH1.h"
#include "TGraphErrors.h"
#include "TMultiGraph.h"
#include "TCanvas.h"
#include "TLine.h"
#include "TLegend.h"
#include "Fit/Fitter.h"
#include "TMatrixD.h"
#include "TPaveText.h"
#include "ArgParser.h"
#include "TUserSettings.h"
#include "TGriffinAngles.h"
#include "TPeakFitter.h"
#include "TRWPeak.h"
#include "TRedirect.h"
+ Include dependency graph for AngularCorrelations.cxx:

Go to the source code of this file.

Classes

class  Ac
 

Functions

std::vector< double > A2a4Method (TGraphErrors *data, TGraphErrors *z0, TGraphErrors *z2, TGraphErrors *z4)
 
double GetYError (TGraphErrors *graph, const double &x)
 
int main (int argc, char **argv)
 
TGraph * MixingMethod (TGraphErrors *data, TGraphErrors *z0, TGraphErrors *z2, TGraphErrors *z4, int twoJhigh, int twoJmid, int twoJlow, std::vector< double > &bestParameters, std::ofstream &logFile)
 
TMultiGraph * PlotCanvas (TGraphErrors *data, TGraphErrors *fit, TGraphErrors *residual, const std::vector< double > &parameters, const std::vector< double > &errors, const double &redChiSquare, const char *extraText=nullptr)
 

Function Documentation

◆ A2a4Method()

std::vector< double > A2a4Method ( TGraphErrors * data,
TGraphErrors * z0,
TGraphErrors * z2,
TGraphErrors * z4 )

This method does a free fit of a_0, a_2, and a_4 to get the best possible result. The resulting parameters do not necessarily correspond to a meaningful physical result.

Definition at line 1086 of file AngularCorrelations.cxx.

References TGRSIFunctions::LegendrePolynomial(), Ac::Np(), and PlotCanvas().

Referenced by main().

◆ GetYError()

double GetYError ( TGraphErrors * graph,
const double & x )

general function to get the error of a graph at point x (takes the maximum of the errors of the bracketing points)

Definition at line 30 of file AngularCorrelations.cxx.

Referenced by main(), and Ac::operator()().

◆ main()

◆ MixingMethod()

TGraph * MixingMethod ( TGraphErrors * data,
TGraphErrors * z0,
TGraphErrors * z2,
TGraphErrors * z4,
int twoJhigh,
int twoJmid,
int twoJlow,
std::vector< double > & bestParameters,
std::ofstream & logFile )

◆ PlotCanvas()

TMultiGraph * PlotCanvas ( TGraphErrors * data,
TGraphErrors * fit,
TGraphErrors * residual,
const std::vector< double > & parameters,
const std::vector< double > & errors,
const double & redChiSquare,
const char * extraText = nullptr )

This function plots the data with the fit and residuals on the currently active canvas.

Definition at line 786 of file AngularCorrelations.cxx.

Referenced by A2a4Method(), and MixingMethod().