Analysis Software
Documentation for sPHENIX simulation software
|
See the main function Example() More...
#include <TFile.h>
#include <TPad.h>
#include <TString.h>
#include <TSystem.h>
#include <TTree.h>
#include <cassert>
#include <cmath>
#include <calobase/RawTower.h>
#include <calobase/RawTowerv1.h>
#include <g4main/PHG4HitEval.h>
#include <g4main/PHG4Particlev1.h>
#include <g4main/PHG4Particlev2.h>
#include <g4main/PHG4VtxPointv1.h>
Go to the source code of this file.
Functions | |
void | CheckItOut () |
First, checkout what is in there. | |
void | AcessGeant4Particles () |
Access information for the truth Geant4 particles. | |
void | WhereIsTheHits () |
void | PlotCalorimeterSamplingFraction () |
void | AccessCalorimeterTowers () |
void | Example (const TString infile="https://www.phenix.bnl.gov/phenix/WWW/sPHENIX/tutorial/G4sPHENIX.root_DSTReader.root") |
Variables | |
TFile * | _file0 = NULL |
TTree * | T = NULL |
void AccessCalorimeterTowers | ( | ) |
void AcessGeant4Particles | ( | ) |
void CheckItOut | ( | ) |
void Example | ( | const TString | infile = "https://www.phenix.bnl.gov/phenix/WWW/sPHENIX/tutorial/G4sPHENIX.root_DSTReader.root" | ) |
Definition at line 148 of file Example.C.
View newest version in sPHENIX GitHub at line 148 of file Example.C
References _file0, AccessCalorimeterTowers(), AcessGeant4Particles(), assert, CheckItOut(), infile, PlotCalorimeterSamplingFraction(), Acts::UnitConstants::T, and WhereIsTheHits().
void PlotCalorimeterSamplingFraction | ( | ) |
void WhereIsTheHits | ( | ) |
X-Y distribution for the hits note, as long as we load libg4eval.so, the compiled functions can be used in T->Draw. Example, I will use PHG4Hit::get_avg_x(), https://www.phenix.bnl.gov/WWW/sPHENIX/doxygen/html/d3/d9e/classPHG4Hit.html#a99663034e71d3f324eb878eb0e3b36ba
Definition at line 76 of file Example.C.
View newest version in sPHENIX GitHub at line 76 of file Example.C
References Acts::UnitConstants::T.
Referenced by Example().
TFile* _file0 = NULL |