Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
plot_sPHENIX_A_N_dp_BUP2020.C File Reference
#include <fstream>
#include <iostream>
#include "stdio.h"
#include <TChain.h>
#include <TFile.h>
#include <TGraphAsymmErrors.h>
#include <TGraphErrors.h>
#include <TLatex.h>
#include <TLegend.h>
#include <TLine.h>
#include <TMath.h>
#include <TROOT.h>
#include <TString.h>
#include <TTree.h>
#include <TVectorD.h>
#include <TVirtualFitter.h>
#include <cassert>
#include <cmath>
#include <vector>
#include "SaveCanvas.C"
#include "sPhenixStyle.C"
+ Include dependency graph for plot_sPHENIX_A_N_dp_BUP2020.C:

Go to the source code of this file.

Functions

TGraphErrors * GraphShiftScaling (TGraphErrors *gr_src, const double x_shift, const double err_scaling)
 
void plot_sPHENIX_A_N_dp_BUP2020 ()
 

Variables

const int NUM_PT_BINS = 4
 
const float BIN_CENTERS [NUM_PT_BINS] = {5.39, 6.69, 8.77, 11.9}
 
const float ASYMMETRY [NUM_PT_BINS]
 
const float STAT_ERR [NUM_PT_BINS]
 
const int NUM_QGQ_PT_BINS = 12
 
const float PT [NUM_QGQ_PT_BINS]
 
const float QGQ [NUM_QGQ_PT_BINS]
 
const float QGQ_ERR [NUM_QGQ_PT_BINS]
 
const double pp_inelastic_crosssec = 42e-3
 
const double pp_rec_3year = 62e12
 
const double pp_rec_5year = pp_rec_3year + 80e12
 
const double pp_beam_pol = 0.57
 

Function Documentation

TGraphErrors* GraphShiftScaling ( TGraphErrors *  gr_src,
const double  x_shift,
const double  err_scaling 
)

Definition at line 51 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 51 of file plot_sPHENIX_A_N_dp_BUP2020.C

References assert, gr, i, vx, vy, and ambiguity_solver_full_chain::x.

void plot_sPHENIX_A_N_dp_BUP2020 ( )

Definition at line 88 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 88 of file plot_sPHENIX_A_N_dp_BUP2020.C

References ASYMMETRY, BIN_CENTERS, GraphShiftScaling(), ambiguity_solver_full_chain::idx, leg, NUM_PT_BINS, NUM_QGQ_PT_BINS, merge_hashes::p, pp_beam_pol, pp_rec_3year, PT, QGQ, QGQ_ERR, SaveCanvas(), SetsPhenixStyle(), and STAT_ERR.

+ Here is the call graph for this function:

Variable Documentation

const float ASYMMETRY[NUM_PT_BINS]
Initial value:
=
{0, 0, 0, 0}

Definition at line 29 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 29 of file plot_sPHENIX_A_N_dp_BUP2020.C

const float BIN_CENTERS[NUM_PT_BINS] = {5.39, 6.69, 8.77, 11.9}

Definition at line 28 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 28 of file plot_sPHENIX_A_N_dp_BUP2020.C

const int NUM_PT_BINS = 4

Definition at line 27 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 27 of file plot_sPHENIX_A_N_dp_BUP2020.C

const int NUM_QGQ_PT_BINS = 12

Definition at line 36 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 36 of file plot_sPHENIX_A_N_dp_BUP2020.C

const double pp_beam_pol = 0.57

Definition at line 49 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 49 of file plot_sPHENIX_A_N_dp_BUP2020.C

const double pp_inelastic_crosssec = 42e-3

Definition at line 46 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 46 of file plot_sPHENIX_A_N_dp_BUP2020.C

const double pp_rec_3year = 62e12

Definition at line 47 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 47 of file plot_sPHENIX_A_N_dp_BUP2020.C

const double pp_rec_5year = pp_rec_3year + 80e12

Definition at line 48 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 48 of file plot_sPHENIX_A_N_dp_BUP2020.C

const float PT[NUM_QGQ_PT_BINS]
Initial value:
=
{4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}

Definition at line 37 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 37 of file plot_sPHENIX_A_N_dp_BUP2020.C

const float QGQ[NUM_QGQ_PT_BINS]
Initial value:
=
{-0.000500, -0.000434, -0.000339, -0.000213, -0.000054, 0.000137, 0.000357,
0.000603, 0.000874, 0.001166, 0.001477, 0.001804}

Definition at line 39 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 39 of file plot_sPHENIX_A_N_dp_BUP2020.C

const float QGQ_ERR[NUM_QGQ_PT_BINS]
Initial value:
=
{0.000077, 0.000070, 0.000072, 0.000079, 0.000091, 0.000113, 0.000146,
0.000191, 0.000250, 0.000321, 0.000405, 0.000501}

Definition at line 42 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 42 of file plot_sPHENIX_A_N_dp_BUP2020.C

const float STAT_ERR[NUM_PT_BINS]
Initial value:
=
{0.0010, 0.0013, 0.0025, 0.0035}

Definition at line 31 of file plot_sPHENIX_A_N_dp_BUP2020.C.

View newest version in sPHENIX GitHub at line 31 of file plot_sPHENIX_A_N_dp_BUP2020.C