Analysis Software
Documentation for sPHENIX simulation software
|
#include <TFile.h>
#include <TGraphErrors.h>
#include <TLatex.h>
#include <TLine.h>
#include <TString.h>
#include <TTree.h>
#include <cassert>
#include <cmath>
#include "SaveCanvas.C"
#include "SetOKStyle.C"
Go to the source code of this file.
Classes | |
class | lin_res |
Functions | |
void | DrawPrototype4ShowerCalib (const TString infile="/phenix/u/jinhuang/links/sPHENIX_work/Prototype_2018/Scan2018b1Tower36/dst.lst_EMCalCalib.root") |
void | PositionDependenceData (TString sTOWER="clus_5x5_prod.sum_E", const double z_shift=0, const int n_div=1) |
void | PositionDependenceSim (TString sTOWER="clus_5x5_prod.sum_E", const double z_shift=0, const int n_div=1) |
void | LineShapeData (TCut c2_h="abs(info.C2_sum)<100", TCut c2_e="(info.C2_sum)>500 && (info.C2_sum)<1300") |
void | LineShapeSim () |
void | HodoscopeCheck () |
void | SimPositionCheck (const double shift_z=0) |
void | Get_Res_linear_Summmary (TString e_sum="sum_E", const double max_E=32) |
void | Get_Res_linear_Summmary_Sim () |
vector< double > | GetBeamMom () |
lin_res | GetResolution (TString cluster_name, vector< double > beam_mom, Color_t col, TString e_sum="sum_E") |
TGraphErrors * | FitProfile (const TH2 *h2) |
Variables | |
TCut | event_sel |
TString | cuts |
TFile * | _file0 = NULL |
TTree * | T = NULL |
void DrawPrototype4ShowerCalib | ( | const TString | infile = "/phenix/u/jinhuang/links/sPHENIX_work/Prototype_2018/Scan2018b1Tower36/dst.lst_EMCalCalib.root" | ) |
Definition at line 39 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 39 of file DrawPrototype4ShowerCalib.C
References _file0, assert, cuts, event_sel, Get_Res_linear_Summmary(), HodoscopeCheck(), infile, n, PositionDependenceData(), SetOKStyle(), t, and Acts::UnitConstants::T.
TGraphErrors* FitProfile | ( | const TH2 * | h2 | ) |
Definition at line 950 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 950 of file DrawPrototype4ShowerCalib.C
References std::tr1::f2, h1, i, n, ambiguity_solver_full_chain::x, and y.
void Get_Res_linear_Summmary | ( | TString | e_sum = "sum_E" , |
const double | max_E = 32 |
||
) |
Definition at line 570 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 570 of file DrawPrototype4ShowerCalib.C
References _file0, cuts, lin_res::f_res, GetBeamMom(), GetResolution(), ambiguity_solver_full_chain::idx, leg, lin_res::linearity, lin_res::name, merge_hashes::p, lin_res::resolution, and SaveCanvas().
void Get_Res_linear_Summmary_Sim | ( | ) |
Definition at line 707 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 707 of file DrawPrototype4ShowerCalib.C
References _file0, cuts, lin_res::f_res, GetBeamMom(), GetResolution(), ambiguity_solver_full_chain::idx, leg, lin_res::linearity, lin_res::name, merge_hashes::p, lin_res::resolution, and SaveCanvas().
vector<double> GetBeamMom | ( | ) |
Definition at line 810 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 810 of file DrawPrototype4ShowerCalib.C
References _file0, cuts, momentum, SaveCanvas(), t, and Acts::UnitConstants::T.
lin_res GetResolution | ( | TString | cluster_name, |
vector< double > | beam_mom, | ||
Color_t | col, | ||
TString | e_sum = "sum_E" |
||
) |
Definition at line 846 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 846 of file DrawPrototype4ShowerCalib.C
References _file0, cuts, lin_res::f_res, h, i, ambiguity_solver_full_chain::idx, lin_res::linearity, mean(), lin_res::name, merge_hashes::p, lin_res::resolution, SaveCanvas(), and Acts::UnitConstants::T.
void HodoscopeCheck | ( | ) |
Definition at line 488 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 488 of file DrawPrototype4ShowerCalib.C
References _file0, cuts, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.
void LineShapeData | ( | TCut | c2_h = "abs(info.C2_sum)<100" , |
TCut | c2_e = "(info.C2_sum)>500 && (info.C2_sum)<1300" |
||
) |
Definition at line 379 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 379 of file DrawPrototype4ShowerCalib.C
References _file0, cuts, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.
void LineShapeSim | ( | ) |
Definition at line 463 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 463 of file DrawPrototype4ShowerCalib.C
References _file0, cuts, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.
void PositionDependenceData | ( | TString | sTOWER = "clus_5x5_prod.sum_E" , |
const double | z_shift = 0 , |
||
const int | n_div = 1 |
||
) |
Definition at line 169 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 169 of file DrawPrototype4ShowerCalib.C
References _file0, cuts, FitProfile(), ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.
void PositionDependenceSim | ( | TString | sTOWER = "clus_5x5_prod.sum_E" , |
const double | z_shift = 0 , |
||
const int | n_div = 1 |
||
) |
Definition at line 281 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 281 of file DrawPrototype4ShowerCalib.C
References _file0, cuts, FitProfile(), h, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.
void SimPositionCheck | ( | const double | shift_z = 0 | ) |
Definition at line 528 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 528 of file DrawPrototype4ShowerCalib.C
References _file0, cuts, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.
TFile* _file0 = NULL |
Definition at line 27 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 27 of file DrawPrototype4ShowerCalib.C
TString cuts |
Definition at line 26 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 26 of file DrawPrototype4ShowerCalib.C
TCut event_sel |
Definition at line 25 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 25 of file DrawPrototype4ShowerCalib.C
TTree* T = NULL |
Definition at line 28 of file DrawPrototype4ShowerCalib.C.
View newest version in sPHENIX GitHub at line 28 of file DrawPrototype4ShowerCalib.C