Graphical utilities for displaying histograms of Afb, Z spectrum, cos(theta*) and saving the plots.
More...
#include <filesystem>
#include <iostream>
#include <string>
#include <TH2D.h>
#include <TPad.h>
#include <TVirtualPad.h>
#include <TH1D.h>
#include <ROOT/RDataFrame.hxx>
#include <ROOT/RResultPtr.hxx>
#include <ROOT/RVec.hxx>
#include <Math/Vector4Dfwd.h>
#include <Math/Vector4D.h>
#include <TCanvas.h>
#include <TLatex.h>
#include <TStyle.h>
#include <TROOT.h>
#include <TLegend.h>
Go to the source code of this file.
|
void | saveHistogram (TCanvas *c, string namehist, string type) |
|
void | cosHisto (ROOT::RDF::RInterface< ROOT::Detail::RDF::RJittedFilter, void > df_MC, ROOT::RDF::RInterface< ROOT::Detail::RDF::RJittedFilter, void > df_datas, string filename, string rapiditylim, float x1, float y1, float x2, float y2, string canvasname) |
|
void | dmMassHisto (ROOT::RDF::RInterface< ROOT::Detail::RDF::RJittedFilter, void > df_MC, ROOT::RDF::RInterface< ROOT::Detail::RDF::RJittedFilter, void > df_datas, string filename, string rapiditylim, string canvasname) |
|
auto | operationHist (ROOT::RDF::RResultPtr<::TH2D > &histNf, ROOT::RDF::RResultPtr<::TH2D > &histDf, ROOT::RDF::RResultPtr<::TH2D > &histNb, ROOT::RDF::RResultPtr<::TH2D > &histDb) |
|
void | afbHist (ROOT::RDF::RInterface< ROOT::Detail::RDF::RJittedFilter, void > df_MC, ROOT::RDF::RInterface< ROOT::Detail::RDF::RJittedFilter, void > df_datas, int filenumber, string rapiditylim) |
|
Graphical utilities for displaying histograms of Afb, Z spectrum, cos(theta*) and saving the plots.
◆ afbHist()
void afbHist |
( |
ROOT::RDF::RInterface< ROOT::Detail::RDF::RJittedFilter, void > |
df_MC, |
|
|
ROOT::RDF::RInterface< ROOT::Detail::RDF::RJittedFilter, void > |
df_datas, |
|
|
int |
filenumber, |
|
|
string |
rapiditylim |
|
) |
| |
creating Afb histogram
- Parameters
-
df_MC | dataframe of the MonteCarlo datas |
df_datas | dataframe of the RUN datas |
filenumber | number of the rapidity condition |
rapiditylim | limit of rapidity to write on the canvas |
- Returns
- None
◆ cosHisto()
void cosHisto |
( |
ROOT::RDF::RInterface< ROOT::Detail::RDF::RJittedFilter, void > |
df_MC, |
|
|
ROOT::RDF::RInterface< ROOT::Detail::RDF::RJittedFilter, void > |
df_datas, |
|
|
string |
filename, |
|
|
string |
rapiditylim, |
|
|
float |
x1, |
|
|
float |
y1, |
|
|
float |
x2, |
|
|
float |
y2, |
|
|
string |
canvasname |
|
) |
| |
creating cos(theta*) histogram and save
- Parameters
-
df_MC | dataframe of the MonteCarlo datas |
df_datas | dataframe of the Run datas |
filename | name of the final file |
rapiditylim | limit of rapidity to write on the canvas |
x1 | low limit of x for the legend |
y1 | low limit of y for the legend |
x2 | up limit of x for the legend |
y2 | up limit of y for the legend |
canvasname | name of the canvas I create |
- Returns
- None
◆ dmMassHisto()
void dmMassHisto |
( |
ROOT::RDF::RInterface< ROOT::Detail::RDF::RJittedFilter, void > |
df_MC, |
|
|
ROOT::RDF::RInterface< ROOT::Detail::RDF::RJittedFilter, void > |
df_datas, |
|
|
string |
filename, |
|
|
string |
rapiditylim, |
|
|
string |
canvasname |
|
) |
| |
creating Z dimuon spectrum histogram and save
- Parameters
-
df_MC | dataframe of the MonteCarlo datas |
df_datas | dataframe of the Run datas |
filename | name of the final file |
rapiditylim | limit of rapidity to write on the canvas |
canvasname | name of the canvas I create |
- Returns
- None
◆ operationHist()
auto operationHist |
( |
ROOT::RDF::RResultPtr<::TH2D > & |
histNf, |
|
|
ROOT::RDF::RResultPtr<::TH2D > & |
histDf, |
|
|
ROOT::RDF::RResultPtr<::TH2D > & |
histNb, |
|
|
ROOT::RDF::RResultPtr<::TH2D > & |
histDb |
|
) |
| |
making sum, division and rescaling of an histogram
- Parameters
-
histNf | 2D histogram of dimuon mass and rapidity, with costheta>0, weighted with wn |
histDf | 2D histogram of dimuon mass and rapidity, with costheta>0, weighted with wd |
histNb | 2D histogram of dimuon mass and rapidity, with costheta<0, weighted with wn |
histDb | 2D histogram of dimuon mass and rapidity, with costheta<0, weighted with wd |
- Returns
- rescaled histogram
◆ saveHistogram()
void saveHistogram |
( |
TCanvas * |
c, |
|
|
string |
namehist, |
|
|
string |
type |
|
) |
| |
Save histogram in pdf mode and png mode in the folder "images" and in the subfolder "images/type", if don't exist the program creates them
- Parameters
-
c | the canvas I have to save |
namehist | name of the histogram |
type | name of the subfolder |
- Returns
- None