EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CharmTagPlots.C File Reference
#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"
+ Include dependency graph for CharmTagPlots.C:

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
 

Function Documentation

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().

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

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