Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Plot-Hits_vs_Eta.C File Reference
#include <iostream>
#include <cstdlib>
#include <memory>
#include <string>
#include <cstring>
#include <vector>
#include <set>
#include <cmath>
#include <utility>
#include <cassert>
#include "TFile.h"
#include "TTree.h"
#include "TCanvas.h"
#include "TLegend.h"
#include "TROOT.h"
#include "TH1F.h"
#include "TColor.h"
#include "TImage.h"
#include "TApplication.h"
#include "TGraphErrors.h"
#include "/sphenix/user/gregtom3/SBU/research/macros/macros/sPHENIXStyle/sPhenixStyle.C"
+ Include dependency graph for Plot-Hits_vs_Eta.C:

Go to the source code of this file.

Macros

#define STR(X)   #X
 
#define XSTR(X)   STR(X)
 
#define NELEMS(a)   (sizeof(a)/sizeof(a[0]))
 

Functions

TTree * load_tree (const char *const file_name, const char *const tree_name)
 
void Plot_Hit_Count ()
 
int main (int argc, char *argv[])
 

Variables

const char *const hitcount_file_path {"/sphenix/user/gregtom3/data/Summer2018/SVTX_studies/hits-per-eta/hitcount.root"}
 
const char *const hit_containers []
 
static const Color_t plot_colors []
 

Macro Definition Documentation

#define NELEMS (   a)    (sizeof(a)/sizeof(a[0]))

Definition at line 26 of file Plot-Hits_vs_Eta.C.

View newest version in sPHENIX GitHub at line 26 of file Plot-Hits_vs_Eta.C

Referenced by Plot_Hit_Count().

#define STR (   X)    #X

Definition at line 24 of file Plot-Hits_vs_Eta.C.

View newest version in sPHENIX GitHub at line 24 of file Plot-Hits_vs_Eta.C

#define XSTR (   X)    STR(X)

Definition at line 25 of file Plot-Hits_vs_Eta.C.

View newest version in sPHENIX GitHub at line 25 of file Plot-Hits_vs_Eta.C

Function Documentation

TTree* load_tree ( const char *const  file_name,
const char *const  tree_name 
)
int main ( int  argc,
char *  argv[] 
)

Definition at line 111 of file Plot-Hits_vs_Eta.C.

View newest version in sPHENIX GitHub at line 111 of file Plot-Hits_vs_Eta.C

References release::app, and Plot_Hit_Count().

+ Here is the call graph for this function:

void Plot_Hit_Count ( )

Definition at line 40 of file Plot-Hits_vs_Eta.C.

View newest version in sPHENIX GitHub at line 40 of file Plot-Hits_vs_Eta.C

References assert, Acts::PhysicalConstants::c, eta, h, hit_containers, hitcount_file_path, i, j, load_tree(), nbins, NELEMS, plot_colors, and SetsPhenixStyle().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const char* const hit_containers[]
Initial value:
{"G4HIT_EGEM_0", "G4HIT_EGEM_1", "G4HIT_EGEM_3",
"G4HIT_FGEM_0", "G4HIT_FGEM_1", "G4HIT_FGEM_2", "G4HIT_FGEM_3","G4HIT_FGEM_4", "G4HIT_MAPS",
"G4HIT_SVTX"}

Definition at line 33 of file Plot-Hits_vs_Eta.C.

View newest version in sPHENIX GitHub at line 33 of file Plot-Hits_vs_Eta.C

Referenced by Plot_Hit_Count().

const char* const hitcount_file_path {"/sphenix/user/gregtom3/data/Summer2018/SVTX_studies/hits-per-eta/hitcount.root"}

Definition at line 31 of file Plot-Hits_vs_Eta.C.

View newest version in sPHENIX GitHub at line 31 of file Plot-Hits_vs_Eta.C

Referenced by Plot_Hit_Count().

const Color_t plot_colors[]
static
Initial value:
= { kBlue, kSpring, kBlack, kYellow, kCyan, kGray, kMagenta, kOrange,
kRed, kGreen + 3, kPink}

Definition at line 36 of file Plot-Hits_vs_Eta.C.

View newest version in sPHENIX GitHub at line 36 of file Plot-Hits_vs_Eta.C

Referenced by Plot_Hit_Count().