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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
plot.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file plot.C
1
void
plot
() {
2
Int_t
numberOfSplit = 200;
3
4
TFile* ref =
new
TFile(
"vrt.root"
);
5
TH1F* clusterSize = (TH1F*)ref->Get(
"2"
);
6
TH1F* energyDeposit = (TH1F*)ref->Get(
"1"
);
7
8
// Re-normalization by the number of split to get absolute frequency histogram
9
// Not necessary for energy deposit, as we scored edep * weight
10
clusterSize->Scale(1.0/numberOfSplit);
11
12
TCanvas*
c1
=
new
TCanvas(
"c1"
,
""
,1200,550);
13
c1->Divide(2,1);
14
c1->cd(1);
15
gPad->SetLogy();
16
clusterSize->Draw();
17
c1->cd(2);
18
energyDeposit->Draw();
19
c1->Update();
20
}
geant4
tree
geant4-10.6-release
examples
extended
medical
dna
splitting
plot.C
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:00
using
1.8.2 with
ECCE GitHub integration