ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
advanced
air_shower
amsEcal
brachytherapy
ChargeExchangeMC
composite_calorimeter
doiPET
eRosita
gammaknife
gammaray_telescope
hadrontherapy
human_phantom
include
src
macro.C
phantom.cc
iort_therapy
lAr_calorimeter
medical_linac
microbeam
microelectronics
nanobeam
purging_magnet
radioprotection
STCyclotron
underground_physics
xray_fluorescence
xray_telescope
basic
extended
source
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
macro.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file macro.C
1
{
2
gROOT ->
Reset
();
3
TFile
f
(
"human_phantom.root"
);
4
5
TDirectory*
dir
= (TDirectory*)
f
.Get(
"human_phantom_ntuple"
);
6
TTree*
ntuple
= (TTree*)dir->Get(
"1"
);
7
ntuple ->
Print
();
8
9
// Print the content of the ntuple
10
Int_t
nevent
=
Int_t
(ntuple->GetEntries());
11
12
Double_t
xx
;
13
Double_t
edep
;
14
ntuple->GetBranch(
"organID"
)->SetAddress(&xx);
15
ntuple->GetBranch(
"edep"
)->SetAddress(&edep);
16
17
for
(
Int_t
i=0; i<
nevent
; i++ ) {
18
ntuple->GetEvent(i);
19
cout <<
"organ ID, edep (MeV): "
20
<< xx <<
", "
<< edep << endl;
21
}
22
23
24
}
geant4
tree
geant4-10.6-release
examples
advanced
human_phantom
macro.C
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:55
using
1.8.2 with
ECCE GitHub integration