YCrossFit 1.0
A C++/ROOT Library for the analysis of the differential cross section of the Y(1S,2S,3S) resonances in two muons
fitRoo.h
Go to the documentation of this file.
1
8#ifndef fitRoo_h
9#define fitRoo_h
10
11#include "RooRealVar.h"
12#include "RooGaussian.h"
13#include "RooPolynomial.h"
14#include "RooBreitWigner.h"
15#include "RooAddPdf.h"
16#include "RooAbsPdf.h"
17#include "TCanvas.h"
18#include "TAxis.h"
19#include "RooPlot.h"
20#include "TH1.h"
21#include "RooGenericPdf.h"
22#include "RooFitResult.h"
23#include "RooDataHist.h"
24#include "RooHist.h"
25#include "TRootCanvas.h"
26#include "TApplication.h"
27#include "TLatex.h"
28#include "SpectrumPlot.h"
29#include "TStyle.h"
30#include "TString.h"
31#include <string.h>
32#include <filesystem>
33#include "TROOT.h"
34
35using namespace RooFit;
36
37
47TString formatPtString(float pmr = std::nanf("1"), float pMr = std::nanf("1"));
48
49
59TString formatYString(float ymr = std::nanf("1"), float yMr = std::nanf("1"));
60
61
85RooFitResult *fitRoo(TH1 *hh, int mr = 0, int fr = 0, float pmr = std::nanf("1"), float pMr = std::nanf("1"),
86 float ymr = std::nanf("1"), float yMr = std::nanf("1"), std::string fnr = "YResonancesFit",
87 int vr = 0, int cr = 0);
88
89#endif
Function to plot the spectrum of the dataset which is currently used and create an histogram.
RooFitResult * fitRoo(TH1 *hh, int mr=0, int fr=0, float pmr=std::nanf("1"), float pMr=std::nanf("1"), float ymr=std::nanf("1"), float yMr=std::nanf("1"), std::string fnr="YResonancesFit", int vr=0, int cr=0)
Implementation of the fit function.
TString formatPtString(float pmr=std::nanf("1"), float pMr=std::nanf("1"))
Formatting the string to be displayed on the canvas regarding the cuts made on pt.
TString formatYString(float ymr=std::nanf("1"), float yMr=std::nanf("1"))
Formatting the string to be displayed on the canvas regarding the cuts made on y.