Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DrawPrototype3ShowerCalib.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 DrawPrototype3ShowerCalib.C:

Go to the source code of this file.

Classes

class  lin_res
 

Functions

void DrawPrototype3ShowerCalib (const TString infile="/sphenix/user/jinhuang/Prototype_2017/ShowerCalib/JointEnergyScan1_Neg.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")
 
void Get_Res_linear_Summmary_Sim ()
 
vector< doubleGetBeamMom ()
 
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
 

Function Documentation

void DrawPrototype3ShowerCalib ( const TString  infile = "/sphenix/user/jinhuang/Prototype_2017/ShowerCalib/JointEnergyScan1_Neg.lst_EMCalCalib.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(), HodoscopeCheck(), infile, n, PositionDependenceData(), SetOKStyle(), t, and Acts::UnitConstants::T.

+ Here is the call graph for this function:

TGraphErrors* FitProfile ( const TH2 *  h2)

Definition at line 1008 of file DrawPrototype3ShowerCalib.C.

View newest version in sPHENIX GitHub at line 1008 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 642 of file DrawPrototype3ShowerCalib.C.

View newest version in sPHENIX GitHub at line 642 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().

+ Here is the call graph for this function:

void Get_Res_linear_Summmary_Sim ( )

Definition at line 768 of file DrawPrototype3ShowerCalib.C.

View newest version in sPHENIX GitHub at line 768 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().

+ Here is the call graph for this function:

vector<double> GetBeamMom ( )

Definition at line 870 of file DrawPrototype3ShowerCalib.C.

View newest version in sPHENIX GitHub at line 870 of file DrawPrototype3ShowerCalib.C

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

+ Here is the call graph for this function:

lin_res GetResolution ( TString  cluster_name,
vector< double beam_mom,
Color_t  col,
TString  e_sum = "sum_E" 
)

Definition at line 909 of file DrawPrototype3ShowerCalib.C.

View newest version in sPHENIX GitHub at line 909 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.

+ Here is the call graph for this function:

void HodoscopeCheck ( )

Definition at line 557 of file DrawPrototype3ShowerCalib.C.

View newest version in sPHENIX GitHub at line 557 of file DrawPrototype3ShowerCalib.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 LineShapeData ( TCut  c2_h = "abs(info.C2_sum)<100",
TCut  c2_e = "(info.C2_sum)>500 && (info.C2_sum)<1300" 
)

Definition at line 442 of file DrawPrototype3ShowerCalib.C.

View newest version in sPHENIX GitHub at line 442 of file DrawPrototype3ShowerCalib.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 529 of file DrawPrototype3ShowerCalib.C.

View newest version in sPHENIX GitHub at line 529 of file DrawPrototype3ShowerCalib.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 228 of file DrawPrototype3ShowerCalib.C.

View newest version in sPHENIX GitHub at line 228 of file DrawPrototype3ShowerCalib.C

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

+ Here is the call 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 342 of file DrawPrototype3ShowerCalib.C.

View newest version in sPHENIX GitHub at line 342 of file DrawPrototype3ShowerCalib.C

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

+ Here is the call graph for this function:

void SimPositionCheck ( const double  shift_z = 0)

Definition at line 599 of file DrawPrototype3ShowerCalib.C.

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