Analysis Software
Documentation for sPHENIX simulation software
|
#include <cmath>
#include <TFile.h>
#include <TString.h>
#include <TLine.h>
#include <TTree.h>
#include <TLatex.h>
#include <TGraphErrors.h>
#include <cassert>
#include "SaveCanvas.C"
#include "SetOKStyle.C"
Go to the source code of this file.
Classes | |
class | lin_res |
Functions | |
void | DrawPrototype3ShowerCalib (const TString infile="testbeam_simdata_withposrecal.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") |
void | Get_Res_linear_Summmary_Sim (TString clustype="recalib") |
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 DrawPrototype3ShowerCalib | ( | const TString | infile = "testbeam_simdata_withposrecal.root" | ) |
Definition at line 40 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 40 of file DrawPrototype3ShowerCalib.C
References _file0, assert, cuts, event_sel, Get_Res_linear_Summmary_Sim(), infile, n, SetOKStyle(), t, and Acts::UnitConstants::T.
TGraphErrors* FitProfile | ( | const TH2 * | h2 | ) |
Definition at line 1070 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 1070 of file DrawPrototype3ShowerCalib.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" | ) |
Definition at line 696 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 696 of file DrawPrototype3ShowerCalib.C
References _file0, cuts, GetBeamMom(), GetResolution(), ambiguity_solver_full_chain::idx, leg, merge_hashes::p, and SaveCanvas().
void Get_Res_linear_Summmary_Sim | ( | TString | clustype = "recalib" | ) |
Definition at line 822 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 822 of file DrawPrototype3ShowerCalib.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 931 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 931 of file DrawPrototype3ShowerCalib.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 970 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 970 of file DrawPrototype3ShowerCalib.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 611 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 611 of file DrawPrototype3ShowerCalib.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 496 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 496 of file DrawPrototype3ShowerCalib.C
References _file0, cuts, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.
void LineShapeSim | ( | ) |
Definition at line 583 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 583 of file DrawPrototype3ShowerCalib.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 279 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 279 of file DrawPrototype3ShowerCalib.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 396 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 396 of file DrawPrototype3ShowerCalib.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 653 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 653 of file DrawPrototype3ShowerCalib.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 DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 27 of file DrawPrototype3ShowerCalib.C
TString cuts |
Definition at line 26 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 26 of file DrawPrototype3ShowerCalib.C
TCut event_sel |
Definition at line 25 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 25 of file DrawPrototype3ShowerCalib.C
TTree* T = NULL |
Definition at line 28 of file DrawPrototype3ShowerCalib.C.
View newest version in sPHENIX GitHub at line 28 of file DrawPrototype3ShowerCalib.C