Geant4_10
Functions | Variables
macro.C File Reference

Go to the source code of this file.

Functions

TFile f ("brachytherapy.root")
 
ntuple Print ()
 
ntuple GetBranch ("xx") -> SetAddress(&xx)
 
ntuple GetBranch ("yy") -> SetAddress(&yy)
 
ntuple GetBranch ("zz") -> SetAddress(&zz)
 
ntuple GetBranch ("edep") -> SetAddress(&edep)
 
gStyle SetPalette (1)
 
ntuple Draw ("xx:yy:zz:edep>>h30","","colz")
 

Variables

TDirectory * dir = (TDirectory*)f.Get("brachy_ntuple")
 
TTree * ntuple = (TTree*)dir->Get("1")
 
Int_t index
 
Double_t xx
 
Double_t yy
 
Double_t zz
 
Double_t edep
 
TCanvas * c1 = new TCanvas("c1", " ")
 
TH3F * edepDDistribution3D
 

Function Documentation

ntuple Draw ( "xx:yy:zz:edep>>h30"  ,
""  ,
"colz"   
)
TFile f ( "brachytherapy.root"  )
ntuple GetBranch ( "xx"  ) -> SetAddress(&xx)
ntuple GetBranch ( "yy"  ) -> SetAddress(&yy)
ntuple GetBranch ( "zz"  ) -> SetAddress(&zz)
ntuple GetBranch ( "edep"  ) -> SetAddress(&edep)
ntuple Print ( )
gStyle SetPalette ( )

Variable Documentation

TCanvas* c1 = new TCanvas("c1", " ")

Definition at line 33 of file macro.C.

TDirectory* dir = (TDirectory*)f.Get("brachy_ntuple")

Definition at line 5 of file macro.C.

Double_t edep

Definition at line 13 of file macro.C.

TH3F* edepDDistribution3D
Initial value:
= new TH3F("h30", "3Dedepxyz",
300, -150, 150,
300, -150, 150,
300, -150, 150)

Definition at line 35 of file macro.C.

Int_t index

Definition at line 9 of file macro.C.

TTree* ntuple = (TTree*)dir->Get("1")

Definition at line 6 of file macro.C.

Double_t xx

Definition at line 10 of file macro.C.

Double_t yy

Definition at line 11 of file macro.C.

Double_t zz

Definition at line 12 of file macro.C.