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

Go to the source code of this file.

Functions

void DrawPrototype2MIPAnalysis (const TString infile="/phenix/u/jinhuang/links/sPHENIX_work/Prototype_2016/Production_1101_EMCalSet2_HCalPR12/beam_00002187-0000_DSTReader.root", bool plot_all=false, const double momentum=120)
 
void EMCDistribution_Fast (TString gain="CALIB", bool full_gain=false)
 
void EMCDistribution_PeakSample_Fast (bool full_gain=false)
 
void EMCDistribution_ADC (bool log_scale=true)
 

Variables

TFile * _file0 = NULL
 
TTree * T = NULL
 
TString cuts = ""
 
double beam_momentum_selection = 120
 

Function Documentation

void DrawPrototype2MIPAnalysis ( const TString  infile = "/phenix/u/jinhuang/links/sPHENIX_work/Prototype_2016/Production_1101_EMCalSet2_HCalPR12/beam_00002187-0000_DSTReader.root",
bool  plot_all = false,
const double  momentum = 120 
)

Definition at line 31 of file DrawPrototype2MIPAnalysis.C.

View newest version in sPHENIX GitHub at line 31 of file DrawPrototype2MIPAnalysis.C

References _file0, assert, beam_momentum_selection, cuts, EMCDistribution_ADC(), EMCDistribution_Fast(), EMCDistribution_PeakSample_Fast(), event_sel, infile, momentum, n, physmon_simulation::rnd, t, and Acts::UnitConstants::T.

+ Here is the call graph for this function:

void EMCDistribution_ADC ( bool  log_scale = true)

Definition at line 494 of file DrawPrototype2MIPAnalysis.C.

View newest version in sPHENIX GitHub at line 494 of file DrawPrototype2MIPAnalysis.C

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

+ Here is the call graph for this function:

void EMCDistribution_Fast ( TString  gain = "CALIB",
bool  full_gain = false 
)

Definition at line 267 of file DrawPrototype2MIPAnalysis.C.

View newest version in sPHENIX GitHub at line 267 of file DrawPrototype2MIPAnalysis.C

References _file0, cuts, fit(), 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_PeakSample_Fast ( bool  full_gain = false)

Definition at line 389 of file DrawPrototype2MIPAnalysis.C.

View newest version in sPHENIX GitHub at line 389 of file DrawPrototype2MIPAnalysis.C

References _file0, cuts, fit(), 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:

Variable Documentation

TFile* _file0 = NULL

Definition at line 24 of file DrawPrototype2MIPAnalysis.C.

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

double beam_momentum_selection = 120

Definition at line 28 of file DrawPrototype2MIPAnalysis.C.

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

TString cuts = ""

Definition at line 26 of file DrawPrototype2MIPAnalysis.C.

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

TTree* T = NULL

Definition at line 25 of file DrawPrototype2MIPAnalysis.C.

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