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

Go to the source code of this file.

Functions

void DrawEMCalTower (const TString infile="/phenix/u/jinhuang/links/sPHENIX_work/Prototype_2016/EMCal_sim/./0Degree_1Col_LightCollectionSeanStoll_CrackScan/Prototype_e-_8_SegALL_DSTReader.root")
 
void EMCDistribution_Fast (TString gain="LG", bool log_scale=false)
 
void EMCDistribution (TString gain="LG", bool log_scale=false)
 
void EMCDistribution_SUM (TString sTOWER="TOWER_CEMC")
 
void EMCDistributionVSBeam_SUM (TString sTOWER="TOWER_CEMC", const double z_shift=0, const int n_div=1)
 
TGraphErrors * FitProfile (const TH2 *h2)
 

Variables

TFile * _file0 = NULL
 
TTree * T = NULL
 
TString cuts = ""
 

Function Documentation

void DrawEMCalTower ( const TString  infile = "/phenix/u/jinhuang/links/sPHENIX_work/Prototype_2016/EMCal_sim/./0Degree_1Col_LightCollectionSeanStoll_CrackScan/Prototype_e-_8_SegALL_DSTReader.root")

Definition at line 28 of file DrawEMCalTower.C.

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

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

+ Here is the call graph for this function:

void EMCDistribution ( TString  gain = "LG",
bool  log_scale = false 
)

Definition at line 178 of file DrawEMCalTower.C.

View newest version in sPHENIX GitHub at line 178 of file DrawEMCalTower.C

References _file0, cuts, Acts::UnitConstants::e, gain, h, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, Acts::UnitConstants::T, and QAHistManagerDef::useLogBins().

+ Here is the call graph for this function:

void EMCDistribution_Fast ( TString  gain = "LG",
bool  log_scale = false 
)

Definition at line 100 of file DrawEMCalTower.C.

View newest version in sPHENIX GitHub at line 100 of file DrawEMCalTower.C

References _file0, cuts, Acts::UnitConstants::e, gain, h, h2, ambiguity_solver_full_chain::idx, merge_hashes::p, SaveCanvas(), t, Acts::UnitConstants::T, and QAHistManagerDef::useLogBins().

Referenced by DrawEMCalTower(), DrawPrototype2EMCalTower(), DrawPrototype2MIPAnalysis(), DrawPrototype3EMCalTower(), and DrawPrototype4EMCalTower().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EMCDistribution_SUM ( TString  sTOWER = "TOWER_CEMC")

Definition at line 248 of file DrawEMCalTower.C.

View newest version in sPHENIX GitHub at line 248 of file DrawEMCalTower.C

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

Referenced by DrawPrototype2EMCalTower(), DrawPrototype3EMCalTower(), and DrawPrototype4EMCalTower().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EMCDistributionVSBeam_SUM ( TString  sTOWER = "TOWER_CEMC",
const double  z_shift = 0,
const int  n_div = 1 
)

Definition at line 344 of file DrawEMCalTower.C.

View newest version in sPHENIX GitHub at line 344 of file DrawEMCalTower.C

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

Referenced by DrawEMCalTower().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TGraphErrors* FitProfile ( const TH2 *  h2)

Definition at line 446 of file DrawEMCalTower.C.

View newest version in sPHENIX GitHub at line 446 of file DrawEMCalTower.C

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

Variable Documentation

TFile* _file0 = NULL

Definition at line 23 of file DrawEMCalTower.C.

View newest version in sPHENIX GitHub at line 23 of file DrawEMCalTower.C

TString cuts = ""

Definition at line 25 of file DrawEMCalTower.C.

View newest version in sPHENIX GitHub at line 25 of file DrawEMCalTower.C

TTree* T = NULL

Definition at line 24 of file DrawEMCalTower.C.

View newest version in sPHENIX GitHub at line 24 of file DrawEMCalTower.C