Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
compare_eictree_evtgenana.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file compare_eictree_evtgenana.C
1 int
3 {
4  /* INPUT: EICTree created with eic-smear */
5  TString fname_eictree("/gpfs/mnt/gpfs04/sphenix/user/nfeege/data/copy_eic_data_PYTHIA_ep/TREES/pythia.ep.10x250.1Mevents.RadCor=0.root");
6 
7  /* INPUT: tree generated in Fun4All with DISKinematicsReco (truth) */
8  TString fname_evtgenana("/gpfs/mnt/gpfs04/sphenix/user/nfeege/sphenixsw/devel/analysis/EICAnalysis/data/EventGenAna_pythiaeRHIC_DIS_10x250_1M.root");
9 
10  /* get Fun4All tree from input file */
11  TFile *file_evtgenana = new TFile (fname_evtgenana, "OPEN");
12  TTree *tree_evtgenana = (TTree*)file_evtgenana->Get("event_truth");
13 
14  /* add eic-smear tree as friend */
15  tree_evtgenana->AddFriend("EICTree", fname_eictree);
16 
17  /* plots correlations */
18  TString drawmode("colz");
19  //TString drawmode("");
20 
21  TCanvas *cy = new TCanvas();
22  tree_evtgenana->Draw("evtgen_y:EICTree.trueY","",drawmode);
23 
24  TCanvas *cx = new TCanvas();
25  tree_evtgenana->Draw("evtgen_x:EICTree.trueX","",drawmode);
26 
27  TCanvas *cq2 = new TCanvas();
28  tree_evtgenana->Draw("evtgen_Q2:EICTree.trueQ2","",drawmode);
29 
30  TCanvas *cs = new TCanvas();
31  tree_evtgenana->Draw("evtgen_s:EICTree.sHat","",drawmode);
32 
33  TCanvas *cw = new TCanvas();
34  tree_evtgenana->Draw("evtgen_W*evtgen_W:EICTree.trueW2","",drawmode);
35 
36 }