EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include "TROOT.h"
#include "TChain.h"
#include "TEfficiency.h"
#include "TH1.h"
#include "TGraphErrors.h"
#include "TCut.h"
#include "TCanvas.h"
#include "TStyle.h"
#include "TLegend.h"
#include "TMath.h"
#include "TLine.h"
#include "TLatex.h"
#include "TRatioPlot.h"
#include "TFile.h"
#include <glob.h>
#include <iostream>
#include <iomanip>
#include <vector>
#include "PlotFunctions.h"
Go to the source code of this file.
Functions | |
TEfficiency | DifferentialTaggingEfficiency (TTree *data, plot_config draw_config, TString xvar, TString which="all") |
TH1F * | DifferentialTaggingYield (TTree *data, plot_config draw_config, TString xvar, TString which="all") |
void | DrawTagEfficiencyPlot (TCanvas *pad, TTree *data, plot_config draw_config, TString xvar) |
void | DrawTagYieldPlot (TCanvas *pad, TTree *data, plot_config draw_config, TString xvar) |
float | CutEfficiency (TTree *data, TCut cut, TString cutdesc="") |
void | CharmTagPlots (TString dir, TString input, TString xvar, TString filePattern="*/out.root") |
Variables | |
float | target_xsec = LookupCrossSection("CC_DIS") |
float | target_lumi = 100 * u_fb |
float | n_gen = -1 |
void CharmTagPlots | ( | TString | dir, |
TString | input, | ||
TString | xvar, | ||
TString | filePattern = "*/out.root" |
||
) |
Definition at line 223 of file CharmTagPlots.C.
View newest version in sPHENIX GitHub at line 223 of file CharmTagPlots.C
References CutEfficiency(), plot_config::cuts, charm_jet_strange_helicity::dA, DifferentialTaggingYield(), charm_jet_strange_helicity::draw_config, DrawTagEfficiencyPlot(), DrawTagYieldPlot(), Acts::UnitConstants::e, exit(), eicpy.qaplots::file, eicpy.build::files, fileVector(), getHistUID(), plot_config::htemplate, plot_config::logx, plot_config::logy, make_title(), charm_jet_coverage::n_gen, charm_jet_strange_helicity::polarization, charm_jet_strange_helicity::polarization_e, charm_jet_strange_helicity::polarization_p, rp(), set_axis_range(), smart_legend(), target_lumi, target_xsec, charm_jet_strange_helicity::xbins, plot_config::xlimits, plot_config::xtitle, plot_config::ylimits, and plot_config::ytitle.
float CutEfficiency | ( | TTree * | data, |
TCut | cut, | ||
TString | cutdesc = "" |
||
) |
Definition at line 204 of file CharmTagPlots.C.
View newest version in sPHENIX GitHub at line 204 of file CharmTagPlots.C
References charm_jet_coverage::n_gen.
Referenced by CharmTagPlots().
TEfficiency DifferentialTaggingEfficiency | ( | TTree * | data, |
plot_config | draw_config, | ||
TString | xvar, | ||
TString | which = "all" |
||
) |
Definition at line 31 of file CharmTagPlots.C.
View newest version in sPHENIX GitHub at line 31 of file CharmTagPlots.C
References plot_config::cuts, histUID, and plot_config::htemplate.
Referenced by DrawTagEfficiencyPlot().
TH1F* DifferentialTaggingYield | ( | TTree * | data, |
plot_config | draw_config, | ||
TString | xvar, | ||
TString | which = "all" |
||
) |
Definition at line 69 of file CharmTagPlots.C.
View newest version in sPHENIX GitHub at line 69 of file CharmTagPlots.C
References plot_config::cuts, histUID, plot_config::htemplate, target_lumi, and target_xsec.
Referenced by CharmTagPlots(), and DrawTagYieldPlot().
void DrawTagEfficiencyPlot | ( | TCanvas * | pad, |
TTree * | data, | ||
plot_config | draw_config, | ||
TString | xvar | ||
) |
Definition at line 101 of file CharmTagPlots.C.
View newest version in sPHENIX GitHub at line 101 of file CharmTagPlots.C
References DifferentialTaggingEfficiency(), charm_jet_strange_helicity::draw_config, make_title(), set_axis_range(), smart_legend(), plot_config::xlimits, and plot_config::ylimits.
Referenced by CharmTagPlots().
void DrawTagYieldPlot | ( | TCanvas * | pad, |
TTree * | data, | ||
plot_config | draw_config, | ||
TString | xvar | ||
) |
Definition at line 152 of file CharmTagPlots.C.
View newest version in sPHENIX GitHub at line 152 of file CharmTagPlots.C
References DifferentialTaggingYield(), charm_jet_strange_helicity::draw_config, make_title(), set_axis_range(), and smart_legend().
Referenced by CharmTagPlots().
float n_gen = -1 |
Definition at line 28 of file CharmTagPlots.C.
View newest version in sPHENIX GitHub at line 28 of file CharmTagPlots.C
float target_lumi = 100 * u_fb |
Definition at line 26 of file CharmTagPlots.C.
View newest version in sPHENIX GitHub at line 26 of file CharmTagPlots.C
float target_xsec = LookupCrossSection("CC_DIS") |
Definition at line 24 of file CharmTagPlots.C.
View newest version in sPHENIX GitHub at line 24 of file CharmTagPlots.C