LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
plot.C
Go to the documentation of this file.
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 }
void plot()
Definition: plot.C:12
c1
Definition: plot.C:27