Functions | Variables
plot.C File Reference

Go to the source code of this file.

Functions

gStyle SetPalette (1)
 
gROOT SetStyle ("Plain")
 
gStyle SetOptStat (00000)
 
 system ("rm -rf yz.root")
 
 system ("hadd yz.root yz_*.root")
 
TFile f ("yz.root")
 
ntuple SetBranchAddress ("radius",&radius)
 
ntuple SetBranchAddress ("eventID",&eventID)
 
ntuple SetBranchAddress ("nbHits",&nofHits)
 
ntuple SetBranchAddress ("nbScoredHits",&nbEdep)
 
ntuple SetBranchAddress ("y",&y)
 
ntuple SetBranchAddress ("z",&z)
 
ntuple SetBranchAddress ("Einc",&Einc)
 
c1 cd (1)
 
 for (Int_t i=0;i< nentries;i++)
 

Variables

Int_t linB =100
 
Double_t ymin =1
 
Double_t ymax =300
 
 c1 = new TCanvas ("c1","",60,60,800,800)
 
Int_t mycolor =4
 
TNtuple * ntuple = (TNtuple*)f.Get("yz")
 
Double_t radius
 
Double_t eventID
 
Double_t nofHits
 
Double_t nbEdep
 
Double_t y
 
Double_t z
 
Double_t Einc
 
TH1F * hfyw = new TH1F ("hfyw","hfyw",linB,0,ymax)
 
Int_t nentries = (Int_t)ntuple->GetEntries()
 
Double_t population =0
 
Double_t yLocalMin =1e100
 
Double_t yLocalMax =0
 
Double_t yF_anal =0
 
Double_t yD_anal =0
 

Function Documentation

c1 cd ( )
TFile f ( "yz.root"  )
for ( )

Definition at line 65 of file plot.C.

References om::cout, allTimeWatchdog::endl, MECModelEnuComparisons::i, nbEdep, population, y, and ymin.

66 {
67  ntuple->GetEntry(i);
68 
69  hfyw->Fill(y,nofHits/nbEdep);
70  if (yLocalMin>y) yLocalMin=y;
71  if (yLocalMax<y) yLocalMax=y;
74  yD_anal = yD_anal + (nofHits/nbEdep)*y*y;
75 }
Double_t population
Definition: plot.C:58
Double_t y
Definition: plot.C:277
Double_t yLocalMax
Definition: plot.C:60
Double_t yF_anal
Definition: plot.C:62
TH1F * hfyw
Definition: plot.C:55
TNtuple * ntuple
Definition: plot.C:20
Double_t nofHits
Definition: plot.C:42
Double_t nbEdep
Definition: plot.C:42
Double_t yD_anal
Definition: plot.C:63
Double_t yLocalMin
Definition: plot.C:59
ntuple SetBranchAddress ( "radius"  ,
radius 
)
ntuple SetBranchAddress ( "eventID"  ,
eventID 
)
ntuple SetBranchAddress ( "nbHits"  ,
nofHits 
)
ntuple SetBranchAddress ( "nbScoredHits"  ,
nbEdep 
)
ntuple SetBranchAddress ( "y"  ,
y 
)
ntuple SetBranchAddress ( "z"  ,
z 
)
ntuple SetBranchAddress ( "Einc"  ,
Einc 
)
gStyle SetOptStat ( 00000  )
gStyle SetPalette ( )
gROOT SetStyle ( "Plain"  )
system ( "rm -rf yz.root"  )
system ( "hadd yz.root yz_*.root"  )

Variable Documentation

c1 = new TCanvas ("c1","",60,60,800,800)

Definition at line 33 of file plot.C.

Double_t Einc

Definition at line 42 of file plot.C.

Double_t eventID

Definition at line 42 of file plot.C.

TH1F* hfyw = new TH1F ("hfyw","hfyw",linB,0,ymax)

Definition at line 55 of file plot.C.

Int_t linB =100

Definition at line 23 of file plot.C.

mycolor =4

Definition at line 34 of file plot.C.

Double_t nbEdep

Definition at line 42 of file plot.C.

Referenced by for().

Int_t nentries = (Int_t)ntuple->GetEntries()

Definition at line 57 of file plot.C.

Double_t nofHits

Definition at line 42 of file plot.C.

ntuple = (TNtuple*)f.Get("yz")

Definition at line 39 of file plot.C.

Double_t population =0

Definition at line 58 of file plot.C.

Referenced by for().

Double_t radius

Definition at line 42 of file plot.C.

Double_t y

Definition at line 42 of file plot.C.

Double_t yD_anal =0

Definition at line 63 of file plot.C.

Double_t yF_anal =0

Definition at line 62 of file plot.C.

Double_t yLocalMax =0

Definition at line 60 of file plot.C.

Double_t yLocalMin =1e100

Definition at line 59 of file plot.C.

Double_t ymax =300

Definition at line 25 of file plot.C.

Referenced by calib::HitEfficiency::analyze(), showere::ShowerEnergyAna::analyze(), evd::TZProjPad::AutoZoom(), evd::TZProjPad::AutoZoomBox(), evd::TZProjPad::AutoZoomHelper(), evd::TZProjPad::AutoZoomSlice(), evd::TZProjPad::AutoZoomTruth(), ana::BayesianSurface::BayesianSurface(), comi::NumiFilteringAna::beginJob(), genie::BLI2DNonUnifGrid::BLI2DNonUnifGrid(), genie::BLI2DUnifGrid::BLI2DUnifGrid(), ana::BayesianSurface::BuildHist(), BuildSpectrum(), CalcFiberLoopCorr(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgal(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgalFM(), genie::COHKinematicsGenerator::CalculateKin_ReinSehgal(), CompareHistos(), CompareHistos_Here(), genie::DFRKinematicsGenerator::ComputeMaxXSec(), genie::NuEKinematicsGenerator::ComputeMaxXSec(), genie::DISKinematicsGenerator::ComputeMaxXSec(), genie::DMDISKinematicsGenerator::ComputeMaxXSec(), trk::KalmanTrackAna::Containment(), data_over_mc_profile(), DCSPlotMaker(), om::PlotClickHandler::DecodeClick(), demo_CPT(), Draw1DProfile(), DrawDataMC(), DrawFrame(), DrawUtils::DrawPlotStack(), ana::CovMxSurface::DrawSurfacePoint(), DrawSurfacePoint(), drawSystsShiftingNDdata(), drawSystsShiftingNDdata_updatedAna(), EHadVisMECpairs(), fd_plot(), ana::nueccinc::NueCCIncTemplateFitter::FillCovarianceMatrix(), ana::NumuCCIncPionTemplateFitter::FillCovarianceMatrix(), ana::NumuCCIncPionTemplateFitter::FillCovarianceMatrixExtra(), nueccinc_test::NueCCIncGlobalFitter::FillCovarianceMatrixFull(), nueccinc_test::NueCCIncGlobalFitter::FillCovarianceMatrixReduced(), showere::ShowerEnergyFilterMC::filter(), evd::XZYZProjectionsView::FixAspectRatio(), genie::NucleonDecayPrimaryVtxGenerator::GenerateDecayedNucleonPosition(), GenerateEventsAtFixedInitState(), genie::NNBarOscPrimaryVtxGenerator::GenerateOscillatingNeutronPosition(), genie::VertexGenerator::GenerateVertex(), DrawUtils::GetBestYRange(), GetCrossSection(), novaddt::MoonShadow::GetHisto(), moonshadowana::MoonShadowAna::GetHisto(), moonshadowana::MoonShadowAnaHough::GetHisto(), getHists_FNEX(), getTimePeakPlots(), genie::BLI2DUnifGrid::Init(), genie::BLI2DNonUnifGrid::Init(), remid::ReMIdValidate::IsContained(), remid::RecoMuon::IsTrackContained(), ana::LogLikelihood(), LOverEPlot(), main(), trk::CosmicTrackAna::Make1DRecoHistograms(), trk::CosmicTrackAna::Make2DRecoHistograms(), makeCanvas(), MakeCanvasForData(), MakeCanvasForSim(), DrawUtils::MakeRatio(), monoprob(), nue_fnex_vs_caf(), nue_fnex_vs_caf_events(), nue_fnex_vs_caf_noextrapolation(), nue_fnex_vs_caf_one_to_one(), plotTrainTest(), PlotWithRatio2D(), genie::NuEKinematicsGenerator::ProcessEventRecord(), genie::COHElKinematicsGenerator::ProcessEventRecord(), numusand::FillSandbox::produce(), request_edarea_size(), RMSPlot(), CalibAnaPlot::SetTreeLoopStride(), evd::TZProjPad::ShowFull(), evd::TZProjPad::ShowPartial(), SliceLegend(), ana::SurfaceKrige::SurfaceKrige(), test_mc_rejection_method_lin(), test_mc_rejection_method_log(), genie::IMDAnnihilationPXSec::XSec(), genie::BardinIMDRadCorPXSec::XSec(), and genie::BLI2DGrid::ZMax().

Double_t ymin =1

Definition at line 24 of file plot.C.

Referenced by showere::ShowerEnergyAna::analyze(), evd::TZProjPad::AutoZoom(), evd::TZProjPad::AutoZoomBox(), evd::TZProjPad::AutoZoomSlice(), evd::TZProjPad::AutoZoomTruth(), ana::BayesianSurface::BayesianSurface(), genie::BLI2DNonUnifGrid::BLI2DNonUnifGrid(), genie::BLI2DUnifGrid::BLI2DUnifGrid(), ana::BayesianSurface::BuildHist(), CalcFiberLoopCorr(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgal(), genie::COHKinematicsGenerator::CalculateKin_BergerSehgalFM(), genie::COHKinematicsGenerator::CalculateKin_ReinSehgal(), genie::DFRKinematicsGenerator::ComputeMaxXSec(), genie::NuEKinematicsGenerator::ComputeMaxXSec(), genie::DISKinematicsGenerator::ComputeMaxXSec(), genie::DMDISKinematicsGenerator::ComputeMaxXSec(), trk::KalmanTrackAna::Containment(), data_over_mc_profile(), om::PlotClickHandler::DecodeClick(), demo_CPT(), Draw1DProfile(), draw_background(), DrawDataMC(), DrawFrame(), DrawLeftArrow(), DrawUtils::DrawPlotStack(), DrawRightArrow(), ana::ExpandedHistogram(), showere::ShowerEnergyFilterMC::filter(), evd::XZYZProjectionsView::FixAspectRatio(), for(), FourBinAxis(), DrawUtils::GetBestYRange(), evd::SliceNavigator::GetBox(), getHists_FNEX(), genie::BLI2DUnifGrid::Init(), genie::BLI2DNonUnifGrid::Init(), remid::ReMIdValidate::IsContained(), remid::RecoMuon::IsTrackContained(), ana::LogLikelihood(), main(), MakeCanvasForData(), MakeCanvasForSim(), ana::MakeHistCanvasReady_Quant(), DrawUtils::MakeRatio(), ana::Nue2017FourBinAxis(), ana::Nue2018ThreeBinAxis(), Nue2018ThreeBinAxis_Reduced(), ana::Nue2018ThreeBinAxis_Reduced(), ana::NuePlotStyle::PID2DAxis(), PID2DAxis(), PID2DShortAxis(), PlotPionPlots(), plotTrainTest(), genie::NuEKinematicsGenerator::ProcessEventRecord(), genie::COHElKinematicsGenerator::ProcessEventRecord(), numusand::FillSandbox::produce(), reMax(), CalibAnaPlot::SetTreeLoopStride(), evd::TZProjPad::ShowFull(), evd::TZProjPad::ShowPartial(), SliceLegend(), ana::SurfaceKrige::SurfaceKrige(), bsf::BremShowerFilter::trackEndContained(), dif::DiFShowerFinder::trackEndContained(), genie::BardinIMDRadCorPXSec::XSec(), and genie::BLI2DGrid::ZMax().

Double_t z

Definition at line 42 of file plot.C.