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_2017/sim/MuonCalib//1k_Muon_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_2017/sim/MuonCalib//1k_Muon_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, EMCDistribution_Fast(), 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 179 of file DrawEMCalTower.C.

View newest version in sPHENIX GitHub at line 179 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 101 of file DrawEMCalTower.C.

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

+ Here is the call graph for this function:

void EMCDistribution_SUM ( TString  sTOWER = "TOWER_CEMC")

Definition at line 249 of file DrawEMCalTower.C.

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

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

+ Here is the call graph for this function:

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

Definition at line 345 of file DrawEMCalTower.C.

View newest version in sPHENIX GitHub at line 345 of file DrawEMCalTower.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:

TGraphErrors* FitProfile ( const TH2 *  h2)

Definition at line 447 of file DrawEMCalTower.C.

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