ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
plot.C File Reference

Go to the source code of this file.

Typedefs

using Table = map< int, array< map< int, double >, 2 >>
 
using ResultTable = map< int, array< vector< int >, 2 >>
 

Functions

gStyle SetPalette (1)
 
gROOT SetStyle ("Plain")
 
 system ("rm -rf output.root")
 
 system ("hadd output.root output_*.root")
 
TFile f ("output.root")
 
tPhys SetBranchAddress ("x",&xphy)
 
tPhys SetBranchAddress ("y",&yphy)
 
tPhys SetBranchAddress ("z",&zphy)
 
tPhys SetBranchAddress ("edep",&EnergyDeposit)
 
tPhys SetBranchAddress ("diffKin",&kineticEnergyDifference)
 
tPhys SetBranchAddress ("volumeName",&flagVolume)
 
tPhys SetBranchAddress ("CopyNumber",&copyN)
 
tPhys SetBranchAddress ("EventID",&EventIDp)
 
 for (decltype(entryPhyNumber) i=0;i< entryPhyNumber;++i)
 
ofstream ofile ("SDDFormat.txt")
 
 if (ofile.is_open())
 
ofile close ()
 

Variables

TRandom rdomN
 
vector< MoleculefMolecules = molecule()
 
double xphy
 
double yphy
 
double zphy
 
double xChe
 
double yChe
 
double zChe
 
double xrad
 
double yrad
 
double zrad
 
map< int, intCopyNumTable
 
Table physTable
 
ResultTable resultPhysTable
 
ResultTable resultChemTable
 
ResultTable MergedResultTable
 
double EnergyDeposit
 
double kineticEnergyDifference
 
int flagVolume
 
double copyN
 
int EventIDp
 
int EventIDc
 
TDirectoryFile * d = dynamic_cast<TDirectoryFile*>(f.Get("ntuple") )
 
TTree * tPhys = dynamic_cast<TTree*> (d->Get("ntuple_1") )
 
auto entryPhyNumber = tPhys->GetEntries()
 
bool addCopyN = true
 
TTree * tChem = dynamic_cast<TTree*> (d->Get("ntuple_2") )
 
auto entryNChem = tChem->GetEntries()
 

Typedef Documentation

using ResultTable = map<int,array<vector<int>, 2>>

Definition at line 19 of file plot.C.

View newest version in sPHENIX GitHub at line 19 of file plot.C

using Table = map<int,array<map<int,double>, 2>>

Definition at line 18 of file plot.C.

View newest version in sPHENIX GitHub at line 18 of file plot.C

Function Documentation

ofile close ( )
TFile f ( "output.root"  )
for ( )

Definition at line 66 of file plot.C.

View newest version in sPHENIX GitHub at line 66 of file plot.C

References copyN, deoxyribose1, deoxyribose1_water, deoxyribose2, deoxyribose2_water, EnergyDeposit, EventIDp, flagVolume, histone, phosphate1, phosphate1_water, phosphate2, and phosphate2_water.

if ( ofile.  is_open())

Definition at line 209 of file plot.C.

View newest version in sPHENIX GitHub at line 209 of file plot.C

References e, and ofile.

ofstream ofile ( "SDDFormat.txt"  )
tPhys SetBranchAddress ( "x"  ,
xphy 
)
tPhys SetBranchAddress ( "y"  ,
yphy 
)
tPhys SetBranchAddress ( "z"  ,
zphy 
)
tPhys SetBranchAddress ( "edep"  ,
EnergyDeposit 
)
tPhys SetBranchAddress ( "diffKin"  ,
kineticEnergyDifference 
)
tPhys SetBranchAddress ( "volumeName"  ,
flagVolume 
)
tPhys SetBranchAddress ( "CopyNumber"  ,
copyN 
)
tChem SetBranchAddress ( "EventID"  ,
EventIDp 
)
gStyle SetPalette ( )
gROOT SetStyle ( "Plain"  )
system ( "rm -rf output.root"  )
system ( "hadd output.root output_*.root"  )

Variable Documentation

bool addCopyN = true

Definition at line 65 of file plot.C.

View newest version in sPHENIX GitHub at line 65 of file plot.C

double copyN

Definition at line 45 of file plot.C.

View newest version in sPHENIX GitHub at line 45 of file plot.C

Referenced by for().

map<int,int> CopyNumTable

Definition at line 36 of file plot.C.

View newest version in sPHENIX GitHub at line 36 of file plot.C

TDirectoryFile* d = dynamic_cast<TDirectoryFile*>(f.Get("ntuple") )

Definition at line 52 of file plot.C.

View newest version in sPHENIX GitHub at line 52 of file plot.C

double EnergyDeposit

Definition at line 42 of file plot.C.

View newest version in sPHENIX GitHub at line 42 of file plot.C

Referenced by for().

auto entryNChem = tChem->GetEntries()

Definition at line 154 of file plot.C.

View newest version in sPHENIX GitHub at line 154 of file plot.C

auto entryPhyNumber = tPhys->GetEntries()

Definition at line 63 of file plot.C.

View newest version in sPHENIX GitHub at line 63 of file plot.C

int EventIDc

Definition at line 47 of file plot.C.

View newest version in sPHENIX GitHub at line 47 of file plot.C

int EventIDp

Definition at line 46 of file plot.C.

View newest version in sPHENIX GitHub at line 46 of file plot.C

Referenced by for().

int flagVolume

Definition at line 44 of file plot.C.

View newest version in sPHENIX GitHub at line 44 of file plot.C

Referenced by for().

vector<Molecule> fMolecules = molecule()

Definition at line 17 of file plot.C.

View newest version in sPHENIX GitHub at line 17 of file plot.C

Referenced by molecule().

double kineticEnergyDifference

Definition at line 43 of file plot.C.

View newest version in sPHENIX GitHub at line 43 of file plot.C

Referenced by plot().

ResultTable MergedResultTable

Definition at line 40 of file plot.C.

View newest version in sPHENIX GitHub at line 40 of file plot.C

Table physTable

Definition at line 37 of file plot.C.

View newest version in sPHENIX GitHub at line 37 of file plot.C

Referenced by G4PhysicsTableHelper::PreparePhysicsTable().

TRandom rdomN

Definition at line 15 of file plot.C.

View newest version in sPHENIX GitHub at line 15 of file plot.C

ResultTable resultChemTable

Definition at line 39 of file plot.C.

View newest version in sPHENIX GitHub at line 39 of file plot.C

ResultTable resultPhysTable

Definition at line 38 of file plot.C.

View newest version in sPHENIX GitHub at line 38 of file plot.C

TTree* tChem = dynamic_cast<TTree*> (d->Get("ntuple_2") )

Definition at line 148 of file plot.C.

View newest version in sPHENIX GitHub at line 148 of file plot.C

TTree* tPhys = dynamic_cast<TTree*> (d->Get("ntuple_1") )

Definition at line 53 of file plot.C.

View newest version in sPHENIX GitHub at line 53 of file plot.C

double xChe

Definition at line 28 of file plot.C.

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

double xphy

Definition at line 24 of file plot.C.

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

double xrad

Definition at line 32 of file plot.C.

View newest version in sPHENIX GitHub at line 32 of file plot.C

double yChe

Definition at line 29 of file plot.C.

View newest version in sPHENIX GitHub at line 29 of file plot.C

double yphy

Definition at line 25 of file plot.C.

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

double yrad

Definition at line 33 of file plot.C.

View newest version in sPHENIX GitHub at line 33 of file plot.C

double zChe

Definition at line 30 of file plot.C.

View newest version in sPHENIX GitHub at line 30 of file plot.C

double zphy

Definition at line 26 of file plot.C.

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

double zrad

Definition at line 34 of file plot.C.

View newest version in sPHENIX GitHub at line 34 of file plot.C