![]() |
GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
![]() |
#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 "TGRSIFunctions.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 > ¶meters, const std::vector< double > &errors, const double &redChiSquare, const char *extraText=nullptr) |
| 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 1087 of file AngularCorrelations.cxx.
References TGRSIFunctions::LegendrePolynomial(), Ac::Np(), and PlotCanvas().
Referenced by main().
| 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 31 of file AngularCorrelations.cxx.
Referenced by main(), and Ac::operator()().
| int main | ( | int | argc, |
| char ** | argv ) |
program to read in 2D matrices from AngularCorrelationHelper project and fit peaks to create angular correlation plots and to create chi-square plots
Definition at line 57 of file AngularCorrelations.cxx.
References A2a4Method(), TPeakFitter::AddPeak(), TSinglePeak::Area(), TSinglePeak::AreaErr(), bgHigh, bgLow, TRWPeak::Centroid(), TRWPeak::CentroidErr(), TPeakFitter::Fit(), TSinglePeak::FWHM(), TSinglePeak::FWHMErr(), TPeakFitter::GetBackground(), TSinglePeak::GetFitFunction(), TSinglePeak::GetReducedChi2(), GetYError(), MixingMethod(), ArgParser::option(), and ArgParser::parse().
Referenced by GRootCanvas::ShowEditor().
| TGraph * MixingMethod | ( | TGraphErrors * | data, |
| TGraphErrors * | z0, | ||
| TGraphErrors * | z2, | ||
| TGraphErrors * | z4, | ||
| int | twoJhigh, | ||
| int | twoJmid, | ||
| int | twoJlow, | ||
| std::vector< double > & | bestParameters, | ||
| std::ofstream & | logFile ) |
Definition at line 873 of file AngularCorrelations.cxx.
References TGRSIFunctions::CalculateA2(), TGRSIFunctions::CalculateA4(), Ac::Np(), and PlotCanvas().
Referenced by main().
| 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 787 of file AngularCorrelations.cxx.
Referenced by A2a4Method(), and MixingMethod().