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

Go to the source code of this file.

Classes

class  lin_res
 

Functions

void DrawPrototype2ShowerCalib (const TString infile="/phenix/u/jinhuang/links/sPHENIX_work/Prototype_2017/sim/EMCalOnly_0Tilt_FlatLightCollection/Prototype_e-_ALL_SegA_ALL_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 ()
 
void Get_Res_linear_Summmary_Sim ()
 
vector< doubleGetBeamMom ()
 
lin_res GetResolution (TString cluster_name, vector< double > beam_mom, Color_t col)
 
TGraphErrors * FitProfile (const TH2 *h2)
 

Variables

TCut event_sel
 
TString cuts
 
TFile * _file0 = NULL
 
TTree * T = NULL
 

Function Documentation

void DrawPrototype2ShowerCalib ( const TString  infile = "/phenix/u/jinhuang/links/sPHENIX_work/Prototype_2017/sim/EMCalOnly_0Tilt_FlatLightCollection/Prototype_e-_ALL_SegA_ALL_EMCalCalib.root")

Definition at line 40 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 40 of file DrawPrototype2ShowerCalib.C

References _file0, assert, cuts, event_sel, Get_Res_linear_Summmary_Sim(), infile, n, PositionDependenceSim(), SetOKStyle(), t, and Acts::UnitConstants::T.

+ Here is the call graph for this function:

TGraphErrors* FitProfile ( const TH2 *  h2)

Definition at line 971 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 971 of file DrawPrototype2ShowerCalib.C

References std::tr1::f2, h1, i, n, ambiguity_solver_full_chain::x, and y.

void Get_Res_linear_Summmary ( )

Definition at line 608 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 608 of file DrawPrototype2ShowerCalib.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().

Referenced by DrawPrototype3ShowerCalib(), and DrawPrototype4ShowerCalib().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Get_Res_linear_Summmary_Sim ( )

Definition at line 733 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 733 of file DrawPrototype2ShowerCalib.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().

Referenced by DrawPrototype2ShowerCalib(), and DrawPrototype3ShowerCalib().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

vector<double> GetBeamMom ( )

Definition at line 835 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 835 of file DrawPrototype2ShowerCalib.C

References _file0, cuts, momentum, SaveCanvas(), t, and Acts::UnitConstants::T.

Referenced by Get_Res_linear_Summmary(), and Get_Res_linear_Summmary_Sim().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

lin_res GetResolution ( TString  cluster_name,
vector< double beam_mom,
Color_t  col 
)

Definition at line 874 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 874 of file DrawPrototype2ShowerCalib.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.

+ Here is the call graph for this function:

void HodoscopeCheck ( )

Definition at line 523 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 523 of file DrawPrototype2ShowerCalib.C

References _file0, cuts, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.

Referenced by DrawPrototype3ShowerCalib(), and DrawPrototype4ShowerCalib().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void LineShapeData ( TCut  c2_h = "abs(info.C2_sum)<100",
TCut  c2_e = "(info.C2_sum)>500 && (info.C2_sum)<1300" 
)

Definition at line 408 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 408 of file DrawPrototype2ShowerCalib.C

References _file0, cuts, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.

+ Here is the call graph for this function:

void LineShapeSim ( )

Definition at line 495 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 495 of file DrawPrototype2ShowerCalib.C

References _file0, cuts, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.

+ Here is the call graph for this function:

void PositionDependenceData ( TString  sTOWER = "clus_5x5_prod.sum_E",
const double  z_shift = 0,
const int  n_div = 1 
)

Definition at line 208 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 208 of file DrawPrototype2ShowerCalib.C

References _file0, cuts, FitProfile(), h, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.

Referenced by DrawPrototype3ShowerCalib(), and DrawPrototype4ShowerCalib().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PositionDependenceSim ( TString  sTOWER = "clus_5x5_prod.sum_E",
const double  z_shift = 0,
const int  n_div = 1 
)

Definition at line 308 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 308 of file DrawPrototype2ShowerCalib.C

References _file0, cuts, FitProfile(), h, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.

Referenced by DrawPrototype2ShowerCalib().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SimPositionCheck ( const double  shift_z = 0)

Definition at line 565 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 565 of file DrawPrototype2ShowerCalib.C

References _file0, cuts, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, and Acts::UnitConstants::T.

+ Here is the call graph for this function:

Variable Documentation

TFile* _file0 = NULL

Definition at line 27 of file DrawPrototype2ShowerCalib.C.

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

TString cuts

Definition at line 26 of file DrawPrototype2ShowerCalib.C.

View newest version in sPHENIX GitHub at line 26 of file DrawPrototype2ShowerCalib.C

TTree* T = NULL

Definition at line 28 of file DrawPrototype2ShowerCalib.C.

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