#include "Riostream.h"
Go to the source code of this file.
|
| ifstream | in |
| |
| TFile * | experimentalFile = new TFile("../../../experimentalData/proton/BraggPeak/62MeVInWater.root","READ") |
| |
| TTree * | experimentalTree = (TTree*)experimentalFile -> Get("Experimental62MeVInWater") |
| |
| Float_t | depthExp |
| |
| Float_t | EdepExp |
| |
| TNtuple * | ntupleExperimental = new TNtuple("ntupleExperimental","Protons, exp. data", "depthExp:EdepExp") |
| |
| Int_t | nentries = (Int_t)experimentalTree -> GetEntries() |
| |
| TFile * | simulationFile = new TFile("../../../SimulationOutputs/proton/BraggPeak/protonBraggPeak.root","READ") |
| |
| TH1D * | simulatedPeak = (TH1D*) simulationFile -> Get("braggPeak") |
| |
| Float_t | simulationNormalisationFactor = simulatedPeak -> GetBinContent(1) |
| |
| TCanvas * | c1 = new TCanvas ("c1","c1",200,10,600,400) |
| |
| | leg = new TLegend(0.50,0.60,0.20,0.70) |
| |
◆ AddEntry() [1/2]
◆ AddEntry() [2/2]
◆ Draw() [1/3]
◆ Draw() [2/3]
◆ Draw() [3/3]
◆ for()
Definition at line 30 of file comparison.C.
TNtupleSim Fill(f1, f2, f3, f4)
TNtuple * ntupleExperimental
ntupleExperimental GetEntry(0)
◆ Scale()
◆ SetBranchAddress() [1/2]
◆ SetBranchAddress() [2/2]
◆ SetFillColor()
◆ SetMarkerSize()
◆ SetMarkerStyle()
◆ SetTextSize()
| leg SetTextSize |
( |
0. |
035 | ) |
|
◆ c1
| TCanvas* c1 = new TCanvas ("c1","c1",200,10,600,400) |
◆ depthExp
◆ EdepExp
◆ experimentalFile
| TFile* experimentalFile = new TFile("../../../experimentalData/proton/BraggPeak/62MeVInWater.root","READ") |
◆ experimentalTree
◆ in
◆ leg
| leg = new TLegend(0.50,0.60,0.20,0.70) |
◆ nentries
◆ ntupleExperimental
| TNtuple* ntupleExperimental = new TNtuple("ntupleExperimental","Protons, exp. data", "depthExp:EdepExp") |
◆ simulatedPeak
◆ simulationFile
| TFile* simulationFile = new TFile("../../../SimulationOutputs/proton/BraggPeak/protonBraggPeak.root","READ") |
◆ simulationNormalisationFactor
| Float_t simulationNormalisationFactor = simulatedPeak -> GetBinContent(1) |