#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) |
|
Definition at line 30 of file comparison.C.
References EdepExp, Fill(), GetEntry(), and normFactor.
Referenced by tca::AttachAnyVertexToTraj(), tca::ChgFracBetween(), larg4::LArVoxelReadout::DriftIonizationElectrons(), sim::dump::DumpMCTruth(), tca::DumpTj(), tca::FindCloseHits(), tca::FindPFParticles(), tca::MakePFParticles(), anab::operator<<(), tca::PrintTrajectory(), shower::TrackShowerSeparationAlg::SelectShowerHits(), tca::TrajClusterAlg::TrajClusterAlg(), and tca::UpdateTjChgProperties().
TNtupleSim Fill(f1, f2, f3, f4)
TNtuple * ntupleExperimental
ntupleExperimental GetEntry(0)
leg SetTextSize |
( |
0. |
035 | ) |
|
TCanvas* c1 = new TCanvas ("c1","c1",200,10,600,400) |
TFile* experimentalFile = new TFile("../../../experimentalData/proton/BraggPeak/62MeVInWater.root","READ") |
Initial value:
Definition at line 7 of file comparison.C.
Referenced by lar::details::are_same_types< Types >::as(), lar::ProviderPack< Providers >::containsProviders(), filter::EventFilter::EventFilter(), art::flattenCollections(), lar::details::are_types_contained< First, OtherTypes... >::in(), ArParticleHPCaptureFS::Init(), evgen::MUSUN::initialization(), main(), art::PtrRemapper::operator()(), evgen::NDKGen::produce(), ReadASCII(), util::DatabaseUtil::reconfigure(), simb::MCNeutrino::Theta(), and art::detail::verifyPtrCollection().
leg = new TLegend(0.50,0.60,0.20,0.70) |
TNtuple* ntupleExperimental = new TNtuple("ntupleExperimental","Protons, exp. data", "depthExp:EdepExp") |
TFile* simulationFile = new TFile("../../../SimulationOutputs/proton/BraggPeak/protonBraggPeak.root","READ") |
Float_t simulationNormalisationFactor = simulatedPeak -> GetBinContent(1) |