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
diffCrossSection.h
Go to the documentation of this file.
1
8#ifndef difffCrossection_h
9#define difffCrossection_h
10
11#include "ROOT/RDataFrame.hxx"
12#include "TMath.h"
13#include "RooFitResult.h"
14#include <filesystem>
15#include "TSystem.h"
16#include "RooAbsPdf.h"
17#include "Cuts.h"
18#include "SpectrumPlot.h"
19#include "fitRoo.h"
20#include "optionParse.h"
21#include "diffCrossSection.h"
22#include "TApplication.h"
23#include "TRootCanvas.h"
24#include "TGraph.h"
25#include "TLatex.h"
26#include "TLegend.h"
27#include "TGraphErrors.h"
28#include "TMultiGraph.h"
29#include "SpectrumPlot.h"
30#include "TROOT.h"
31
32
37struct dcsbin {
38 float ptm;
39 float ptM;
40 Double_t
42 Double_t
44 Double_t
46 Double_t ds1;
47 Double_t ds2;
48 Double_t ds3;
49};
50
51
72Double_t diffCrossSec(double N, float wpt);
73
74
89dcsbin setset(float ptm, float ptM, float ym, float yM, ROOT::RDF::RNode &df, std::string nameFile);
90
91
103void PlotDiffCrossSection(ROOT::RDF::RNode &df, float ym = std::nanf("1"), float yM = 1.2, int cr = 0);
104
105#endif /* difffCrossection_h */
Selection of the data. The data are selected to be two muons of opposite charge with an invariant mas...
Function to plot the spectrum of the dataset which is currently used and create an histogram.
Function to calculate and plot the differential cross section for the Y(1S), Y(2S) and Y(3S) in trasv...
void PlotDiffCrossSection(ROOT::RDF::RNode &df, float ym=std::nanf("1"), float yM=1.2, int cr=0)
Plot the differential cross section calculate for each bin for the Y(1S), Y(2S) and Y(3S) as a functi...
dcsbin setset(float ptm, float ptM, float ym, float yM, ROOT::RDF::RNode &df, std::string nameFile)
Create a stucture where it save the edges of the bins and the cross section for each Y resonance.
Double_t diffCrossSec(double N, float wpt)
Calculate the differential cross section given the number of events under the peak of the Y resonance...
Function for fitting the data and displying the canvas.
Handling flags and option parameters.
Structure where are saved the value useful for each bin.
Definition: diffCrossSection.h:37
float ptm
lower edge of the bin
Definition: diffCrossSection.h:38
Double_t s1
value of the differential cross section (multiply by the relative branching ratio) of the Y(1S) reson...
Definition: diffCrossSection.h:41
Double_t s3
value of the differential cross section (multiply by the relative branching ratio) of the Y(3S) reson...
Definition: diffCrossSection.h:45
float ptM
upper edge of the bin
Definition: diffCrossSection.h:39
Double_t ds3
uncertainties on s3
Definition: diffCrossSection.h:48
Double_t ds1
uncertainties on s1
Definition: diffCrossSection.h:46
Double_t s2
value of the differential cross section (multiply by the relative branching ratio) of the Y(2S) reson...
Definition: diffCrossSection.h:43
Double_t ds2
uncertainties on s2
Definition: diffCrossSection.h:47