Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DrawEcal.C File Reference
#include <cmath>
#include <TFile.h>
#include <TString.h>
#include <TLine.h>
#include <TTree.h>
#include <cassert>
#include "SaveCanvas.C"
#include "SetOKStyle.C"
+ Include dependency graph for DrawEcal.C:

Go to the source code of this file.

Functions

void DrawEcal (void)
 
void DrawEnergyDensity (const TString infile="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/sHijing/spacal2d/G4Hits_sPHENIX_sHijing-0-4.4fm_ALL.root_EMCalAna.root", const TString title="HIJING Au+Au 0-10% C + Geant4")
 
void DrawEnergyDensityXY (const TString infile="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/sHijing/spacal2d/G4Hits_sPHENIX_sHijing-0-4.4fm_ALL.root_EMCalAna.root", const TString title="HIJING Au+Au 0-10% C + Geant4")
 
void DrawTower_EMCTrigEff (const TString infile="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/")
 
void DrawTower_EMCTrigEff_SlideingWindow2 (const TString infile="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/")
 
TGraphErrors * Distribution2Efficiency (TH1F *hCEMC3_Max)
 
void DrawTower_EMCDistribution (const TString infile="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/sHijing/spacal2d/G4Hits_sPHENIX_sHijing-0-4.4fm_ALL.root_EMCalAna.root", const TString title="HIJING Au+Au 0-10% C + Geant4 + Digi.")
 
void DrawTower_EMCDistribution5x5 (const TString infile="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/sHijing/spacal2d/G4Hits_sPHENIX_sHijing-0-4.4fm_ALL.root_EMCalAna.root", const TString title="HIJING Au+Au 0-10% C + Geant4 + Digi.")
 
TH1 * DrawTower_Load (const TString infile="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/sHijing/spacal2d/G4Hits_sPHENIX_sHijing-0-4.4fm_ALL.root_EMCalAna.root", const TString hist_name="EMCalAna_h_CEMC_TOWER_1x1")
 
void DrawCluster_Linearality (const TString base="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/", const TString config="")
 
void DrawCluster_Res_2Fit (const TString base="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/", const TString config="")
 
void DrawCluster_Res_2Fit_Electron_NoSVX (const TString base="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/", const TString config="")
 
void DrawCluster_Res_2Fit_1DSpacalNoSVX (const TString base="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/", const TString config="")
 
void DrawCluster_Res_2Fit_1DSpacalNoSVX_Eta3 (const TString base="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/", const TString config="")
 
void DrawCluster_Res_2Fit_2DSpacalNoSVX (const TString base="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/", const TString config="")
 
void DrawCluster_Res (const TString base="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/", const TString config="")
 
TGraphErrors * DrawCluster_AnaP (const TString config="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/spacal1d_1dtower/zerofield/G4Hits_sPHENIX", const TString particle="gamma_eta0.90", bool mean_or_res=false)
 
TVectorD DrawCluster_SingleE (const TString config="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/spacal2d/zerofield/G4Hits_sPHENIX", const TString particle="gamma_eta0", const double e=8)
 
void DrawTowerSum_Res_2Fit_1DSpacalNoSVX (const TString base="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/", const TString config="")
 
void DrawTowerSum_Res_2Fit_1DSpacalNoSVX_Eta3 (const TString base="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/", const TString config="")
 
TGraphErrors * DrawTowerSum_AnaP (const TString config="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/nosvtx/spacal1d/fieldmap/G4Hits_sPHENIX", const TString particle="e-_eta0", bool mean_or_res=false)
 
TVectorD DrawTowerSum_SingleE (const TString config="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/nosvtx/spacal1d/fieldmap/G4Hits_sPHENIX", const TString particle="e-_eta0", const double e=8)
 
void DrawSF (const TString base="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/", const TString config="")
 
TGraphErrors * Load_CurveSet (const TString config="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/spacal2d/zerofield/G4Hits_sPHENIX_gamma", const TString energy="24GeV")
 
TVectorD Load_SF (const TString eta_bin="eta0", const TString config="/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/spacal1d/zerofield/G4Hits_sPHENIX_gamma", const TString energy="24GeV")
 

Function Documentation

TGraphErrors* Distribution2Efficiency ( TH1F *  hCEMC3_Max)

Definition at line 662 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 662 of file DrawEcal.C

References A, assert, i, n, and physmon_track_finding_ttbar::z.

Referenced by DrawTower_EMCTrigEff(), DrawTower_EMCTrigEff_SlideingWindow2(), Edep_Checks(), Edep_LL_Distribution(), Ep_Checks(), EP_LL_Distribution(), GetSimRejCurve(), MakeRadiusCut(), and RejectionCompare().

+ Here is the caller graph for this function:

TGraphErrors* DrawCluster_AnaP ( const TString  config = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/spacal1d_1dtower/zerofield/G4Hits_sPHENIX",
const TString  particle = "gamma_eta0.90",
bool  mean_or_res = false 
)

Definition at line 2069 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 2069 of file DrawEcal.C

References filter::config, DrawCluster_SingleE(), fit(), i, mean(), N, and particle.

Referenced by DrawCluster_Linearality(), DrawCluster_Res(), DrawCluster_Res_2Fit(), DrawCluster_Res_2Fit_1DSpacalNoSVX(), DrawCluster_Res_2Fit_1DSpacalNoSVX_Eta3(), DrawCluster_Res_2Fit_2DSpacalNoSVX(), and DrawCluster_Res_2Fit_Electron_NoSVX().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DrawCluster_Linearality ( const TString  base = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/",
const TString  config = "" 
)

Definition at line 872 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 872 of file DrawEcal.C

References DrawCluster_AnaP(), i, ambiguity_solver_full_chain::idx, merge_hashes::p, and SaveCanvas().

+ Here is the call graph for this function:

void DrawCluster_Res ( const TString  base = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/",
const TString  config = "" 
)

Definition at line 1946 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 1946 of file DrawEcal.C

References DrawCluster_AnaP(), Acts::UnitConstants::e, ambiguity_solver_full_chain::idx, merge_hashes::p, and SaveCanvas().

+ Here is the call graph for this function:

void DrawCluster_Res_2Fit ( const TString  base = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/",
const TString  config = "" 
)

Definition at line 1048 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 1048 of file DrawEcal.C

References DrawCluster_AnaP(), Acts::UnitConstants::e, entry, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), and t.

+ Here is the call graph for this function:

void DrawCluster_Res_2Fit_1DSpacalNoSVX ( const TString  base = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/",
const TString  config = "" 
)

Definition at line 1424 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 1424 of file DrawEcal.C

References DrawCluster_AnaP(), Acts::UnitConstants::e, entry, ambiguity_solver_full_chain::idx, merge_hashes::p, and SaveCanvas().

+ Here is the call graph for this function:

void DrawCluster_Res_2Fit_1DSpacalNoSVX_Eta3 ( const TString  base = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/",
const TString  config = "" 
)

Definition at line 1622 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 1622 of file DrawEcal.C

References DrawCluster_AnaP(), Acts::UnitConstants::e, entry, ambiguity_solver_full_chain::idx, merge_hashes::p, and SaveCanvas().

+ Here is the call graph for this function:

void DrawCluster_Res_2Fit_2DSpacalNoSVX ( const TString  base = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/",
const TString  config = "" 
)

Definition at line 1748 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 1748 of file DrawEcal.C

References DrawCluster_AnaP(), Acts::UnitConstants::e, entry, ambiguity_solver_full_chain::idx, merge_hashes::p, and SaveCanvas().

+ Here is the call graph for this function:

void DrawCluster_Res_2Fit_Electron_NoSVX ( const TString  base = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/",
const TString  config = "" 
)

Definition at line 1240 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 1240 of file DrawEcal.C

References DrawCluster_AnaP(), Acts::UnitConstants::e, entry, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), and t.

+ Here is the call graph for this function:

TVectorD DrawCluster_SingleE ( const TString  config = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/spacal2d/zerofield/G4Hits_sPHENIX",
const TString  particle = "gamma_eta0",
const double  e = 8 
)

Definition at line 2131 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 2131 of file DrawEcal.C

References assert, filter::config, Acts::UnitConstants::e, f, mean(), particle, and rms().

Referenced by DrawCluster_AnaP().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DrawEcal ( void  )

Definition at line 12 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 12 of file DrawEcal.C

References SetOKStyle().

+ Here is the call graph for this function:

void DrawEnergyDensity ( const TString  infile = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/sHijing/spacal2d/G4Hits_sPHENIX_sHijing-0-4.4fm_ALL.root_EMCalAna.root",
const TString  title = "HIJING Au+Au 0-10% C + Geant4" 
)

Definition at line 65 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 65 of file DrawEcal.C

References DrawTower_Load(), ambiguity_solver_full_chain::idx, infile, merge_hashes::p, physmon_track_finding_ttbar::r, SaveCanvas(), t, title, and physmon_track_finding_ttbar::z.

+ Here is the call graph for this function:

void DrawEnergyDensityXY ( const TString  infile = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/sHijing/spacal2d/G4Hits_sPHENIX_sHijing-0-4.4fm_ALL.root_EMCalAna.root",
const TString  title = "HIJING Au+Au 0-10% C + Geant4" 
)

Definition at line 113 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 113 of file DrawEcal.C

References DrawTower_Load(), ambiguity_solver_full_chain::idx, infile, merge_hashes::p, SaveCanvas(), t, and title.

+ Here is the call graph for this function:

void DrawSF ( const TString  base = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/",
const TString  config = "" 
)

Definition at line 2602 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 2602 of file DrawEcal.C

References Acts::UnitConstants::e, ambiguity_solver_full_chain::idx, Load_CurveSet(), merge_hashes::p, and SaveCanvas().

+ Here is the call graph for this function:

void DrawTower_EMCDistribution ( const TString  infile = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/sHijing/spacal2d/G4Hits_sPHENIX_sHijing-0-4.4fm_ALL.root_EMCalAna.root",
const TString  title = "HIJING Au+Au 0-10% C + Geant4 + Digi." 
)

Definition at line 701 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 701 of file DrawEcal.C

References DrawTower_Load(), ambiguity_solver_full_chain::idx, infile, merge_hashes::p, SaveCanvas(), t, and title.

+ Here is the call graph for this function:

void DrawTower_EMCDistribution5x5 ( const TString  infile = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/sHijing/spacal2d/G4Hits_sPHENIX_sHijing-0-4.4fm_ALL.root_EMCalAna.root",
const TString  title = "HIJING Au+Au 0-10% C + Geant4 + Digi." 
)

Definition at line 763 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 763 of file DrawEcal.C

References DrawTower_Load(), ambiguity_solver_full_chain::idx, infile, merge_hashes::p, SaveCanvas(), t, and title.

+ Here is the call graph for this function:

void DrawTower_EMCTrigEff ( const TString  infile = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/")

Definition at line 163 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 163 of file DrawEcal.C

References KFPMath::a, Distribution2Efficiency(), DrawTower_Load(), i, ambiguity_solver_full_chain::idx, infile, merge_hashes::p, SaveCanvas(), t, and y_max.

+ Here is the call graph for this function:

void DrawTower_EMCTrigEff_SlideingWindow2 ( const TString  infile = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/")

Definition at line 412 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 412 of file DrawEcal.C

References KFPMath::a, Distribution2Efficiency(), DrawTower_Load(), i, ambiguity_solver_full_chain::idx, infile, merge_hashes::p, SaveCanvas(), t, and y_max.

+ Here is the call graph for this function:

TH1* DrawTower_Load ( const TString  infile = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/sHijing/spacal2d/G4Hits_sPHENIX_sHijing-0-4.4fm_ALL.root_EMCalAna.root",
const TString  hist_name = "EMCalAna_h_CEMC_TOWER_1x1" 
)

Definition at line 825 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 825 of file DrawEcal.C

References assert, f, h, infile, n, next, and t.

Referenced by DrawEnergyDensity(), DrawEnergyDensityXY(), DrawTower_EMCDistribution(), DrawTower_EMCDistribution5x5(), DrawTower_EMCTrigEff(), and DrawTower_EMCTrigEff_SlideingWindow2().

+ Here is the caller graph for this function:

TGraphErrors* DrawTowerSum_AnaP ( const TString  config = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/nosvtx/spacal1d/fieldmap/G4Hits_sPHENIX",
const TString  particle = "e-_eta0",
bool  mean_or_res = false 
)

Definition at line 2481 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 2481 of file DrawEcal.C

References filter::config, DrawTowerSum_SingleE(), fit(), i, mean(), N, and particle.

Referenced by DrawTowerSum_Res_2Fit_1DSpacalNoSVX(), and DrawTowerSum_Res_2Fit_1DSpacalNoSVX_Eta3().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DrawTowerSum_Res_2Fit_1DSpacalNoSVX ( const TString  base = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/",
const TString  config = "" 
)

Definition at line 2192 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 2192 of file DrawEcal.C

References DrawTowerSum_AnaP(), Acts::UnitConstants::e, entry, ambiguity_solver_full_chain::idx, merge_hashes::p, and SaveCanvas().

+ Here is the call graph for this function:

void DrawTowerSum_Res_2Fit_1DSpacalNoSVX_Eta3 ( const TString  base = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/",
const TString  config = "" 
)

Definition at line 2370 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 2370 of file DrawEcal.C

References DrawTowerSum_AnaP(), Acts::UnitConstants::e, entry, ambiguity_solver_full_chain::idx, merge_hashes::p, and SaveCanvas().

+ Here is the call graph for this function:

TVectorD DrawTowerSum_SingleE ( const TString  config = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/production_analysis/emcstudies/nosvtx/spacal1d/fieldmap/G4Hits_sPHENIX",
const TString  particle = "e-_eta0",
const double  e = 8 
)

Definition at line 2542 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 2542 of file DrawEcal.C

References assert, filter::config, Acts::UnitConstants::e, f, mean(), particle, rms(), and Acts::UnitConstants::T.

Referenced by DrawTowerSum_AnaP().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TGraphErrors* Load_CurveSet ( const TString  config = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/spacal2d/zerofield/G4Hits_sPHENIX_gamma",
const TString  energy = "24GeV" 
)

Definition at line 2674 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 2674 of file DrawEcal.C

References filter::config, energy, etas, Load_SF(), and n.

Referenced by DrawSF().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TVectorD Load_SF ( const TString  eta_bin = "eta0",
const TString  config = "/direct/phenix+sim02/phnxreco/ePHENIX/jinhuang/sPHENIX_work/single_particle/spacal1d/zerofield/G4Hits_sPHENIX_gamma",
const TString  energy = "24GeV" 
)

Definition at line 2720 of file DrawEcal.C.

View newest version in sPHENIX GitHub at line 2720 of file DrawEcal.C

References assert, filter::config, energy, f, mean(), and rms().

Referenced by Load_CurveSet().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: