Functions | Variables
plot.C File Reference

Go to the source code of this file.

Functions

gStyle SetPalette (1)
 
gROOT SetStyle ("Plain")
 
c1 Divide (1, 1)
 
TFile f ("slowing.root")
 
 for (Int_t i=1;i<=nbinsx;i++)
 
gStyle SetOptStat (000000)
 

Variables

 c1 = new TCanvas ("c1","",20,20,800,800)
 
TH1F * h1 = (TH1F*)f.Get("1")
 
 h2 = (TH1F*)f.Get("2")
 
 h3 = (TH1F*)f.Get("3")
 
Int_t nbinsx = h1->GetXaxis()->GetNbins()
 
Double_t y = 0
 
Double_t mini = 0
 
Double_t maxi = 0
 
Double_t largeur = 0
 
Double_t sum = 0
 

Function Documentation

c1 Divide ( ,
 
)
TFile f ( "slowing.root"  )
for ( Int_t  i = 1; i<=nbinsx; i++)

Definition at line 41 of file plot.C.

References c1, om::cout, febshutoff_auto::end, allTimeWatchdog::endl, h2, h3, MECModelEnuComparisons::i, largeur, legend, and cet::pow().

42  {
43  sum = sum + h1->GetBinContent(i);
44 
45  mini = h1->GetBinLowEdge(i);
46  maxi = mini + h1->GetBinWidth(i);
47  largeur = std::pow(10,maxi)-std::pow(10,mini);
48  // cout << mini << " " << std::pow(10,mini)<< " " << largeur
49  // << " " << maxi << " " << std::pow(10,maxi) << endl;
50  h1->SetBinContent(i,h1->GetBinContent(i)*(1E9/1.6)/largeur);
51  h2->SetBinContent(i,h2->GetBinContent(i)*(1E9/1.6)/largeur);
52  h3->SetBinContent(i,h3->GetBinContent(i)*(1E9/1.6)/largeur);
53 
54  }
h3
Definition: plot.C:19
constexpr T pow(T x)
Definition: pow.h:75
Double_t maxi
Definition: plot.C:28
Double_t mini
Definition: plot.C:27
TH1F * h2
Definition: plot.C:45
TH1F * h1
Definition: plot.C:42
Double_t sum
Definition: plot.C:31
Double_t largeur
Definition: plot.C:29
gStyle SetOptStat ( 000000  )
gStyle SetPalette ( )
gROOT SetStyle ( "Plain"  )

Variable Documentation

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

Definition at line 11 of file plot.C.

h1 = (TH1F*)f.Get("1")

Definition at line 16 of file plot.C.

h2 = (TH1F*)f.Get("2")

Definition at line 18 of file plot.C.

h3 = (TH1F*)f.Get("3")

Definition at line 19 of file plot.C.

Referenced by for().

Double_t largeur = 0

Definition at line 29 of file plot.C.

Referenced by for().

Double_t maxi = 0
Double_t mini = 0

Definition at line 27 of file plot.C.

Int_t nbinsx = h1->GetXaxis()->GetNbins()
Double_t sum = 0

Definition at line 31 of file plot.C.

Referenced by fabricate::_results_handler(), generic.views.Pages.ComparisonTablePage::AddTable(), mono::Monopole::analyze(), osc::EarthModel::AveNe(), novaddt::RateMonitor::average(), air::AirKalmanAna::AvgValue(), bwintegrate(), genie::utils::res::BWNorm(), bpfit::Lutz::CalcAinv(), PandAna.Demos.tute_plots::CalculateEffPur(), chi2(), bpfit::Lutz::Chi2Beta(), bpfit::Lutz::Chi2XI(), cmf::ChiSqrCalculator::ChiSqrCovMat(), ana::CombineMetadata(), keras::LayerActivation::compute_output(), calib::AttenFit::ConsolidateViews(), calib::AttenuationFit::ConsolidateViews(), DCMOffsetCalculator(), genie::MECGenerator::DecayNucleonCluster(), plot_xsec_1d::do_focusing_1bin(), dump_event(), rwgt::MakeGENIEReweightTable::endJob(), calib::DCMTimingOffset::endJob(), calib::DCMTimingOffset::endRun(), std_candles.StdCandlesPlotter::FillMichelEPlots(), novatb::TriggerRateAna::findCluster(), novatb::BeamTuning::findCluster(), genie::utils::nuclear::FmArea(), lem::Library::FromTrees(), file_size_ana.Node::FullSize(), genie::NucleonDecayPrimaryVtxGenerator::GenerateDecayProducts(), genie::NNBarOscPrimaryVtxGenerator::GenerateDecayProducts(), genie_syst_pca(), numusand::NumuSandFxs::getMissingE(), genie::geometry::PathSegment::GetPosition(), rsim::NoiseMaker::GetRMS(), sim::FLSHit::getSum(), ana::MichelDecomp::GetSum(), genie::geometry::PathSegment::GetSummedStepRange(), GetTargetMaterial(), ana::SpectrumLoader::Go(), ana::LikelihoodCovMxExperiment::InitialiseBetas(), isCloseEnough(), fuzz::FuzzyKMeanAlg::Jpfuz(), genie::utils::math::KahanSummation(), PandAna.var.analysis_vars::kCosNumi(), PandAna.var.analysis_vars::kEMEnergy(), PandAna.weight.cv_weights::kFixNonres1Pi(), PandAna.Demos.demo1::kPngE(), photrans::line_efficiency(), genie::NievesQELCCPXSec::LmunuAnumu(), PandAna.Demos.tute_plots::MakeDeltaCVNPlots(), makeFlatWeight(), MakeFracPlot(), MakeHist(), std_candles.StdCandlesPlotter::MakeNeutronCapturePlot(), novaddt::Calibration::MakeNoiseHisto(), PlotDataQA::MakePlots(), std_candles.StdCandlesPlotter::MakeTrueOriginBreakdownPlot(), ana::FluxDecomp::MakeWeightsNumuFromPion(), ana::BENDecomp::MakeWeightsNumuFromPion(), red::MatterProbe::mattersum(), stan::mcmc::chains< RNG >::mean(), HandyFuncs::mean(), keras::missing_activation_impl(), myBarChart(), lem_server::nConns(), stan::lang::num_dimss(), operator*(), skim::ParametersNue::ParametersNue(), genie::KNOHadronization::PhaseSpaceDecay(), Plot(), plot_input_data(), plot_predictions(), pots(), novarwgt::hN_Unc2020_EV2Up_BDTRwgt_Nubar::predict(), novarwgt::hN_Unc2020_EV3Down_BDTRwgt_Nubar::predict(), novarwgt::hN_Unc2020_EV1Up_BDTRwgt_Nubar::predict(), novarwgt::hN_Unc2020_EV3Up_BDTRwgt_Nu::predict(), novarwgt::hN_CV2020_BDTRwgt_Nubar::predict(), novarwgt::FormZoneBDT_Syst2020_Nubar_Up::predict(), novarwgt::hN_Unc2020_EV3Up_BDTRwgt_Nubar::predict(), novarwgt::hN_Unc2020_MFPDown_BDTRwgt_Nubar::predict(), novarwgt::hN_Unc2020_EV3Down_BDTRwgt_Nu::predict(), novarwgt::hN_Unc2020_MFPUp_BDTRwgt_Nu::predict(), novarwgt::hN_Unc2020_MFPUp_BDTRwgt_Nubar::predict(), novarwgt::hN_Unc2020_EV2Up_BDTRwgt_Nu::predict(), novarwgt::hN_Unc2020_EV2Down_BDTRwgt_Nu::predict(), novarwgt::hN_Unc2020_EV1Down_BDTRwgt_Nu::predict(), novarwgt::hN_CV2020_BDTRwgt_Nu::predict(), novarwgt::FormZoneBDT_Syst2020_Nubar_Down::predict(), novarwgt::FormZoneBDT_Syst2020_Nu_Down::predict(), novarwgt::FormZoneBDT_Syst2020_Nu_Up::predict(), novarwgt::hN_Unc2020_MFPDown_BDTRwgt_Nu::predict(), novarwgt::hN_Unc2020_EV1Down_BDTRwgt_Nubar::predict(), novarwgt::hN_Unc2020_EV1Up_BDTRwgt_Nu::predict(), novarwgt::hN_Unc2020_EV2Down_BDTRwgt_Nubar::predict(), PandAna.Demos.tute_plots::PrevCVNCut(), plot_xsec_2d::process_focusing(), lem::LEMSummarizer::produce(), lem::AlignLibToVtx::produce(), lem::FindMatchesTranspose::produce(), calib::TimingCalibration::produce(), earms::ElasticArmsHS::produce(), lem::MakeLibrary::produce(), photrans::PhotonTransport::produce(), lem::FindLEMMatches::produce(), lem::LEM::produce(), lem::GenFromLib::readNext(), refresh(), nerd::NERDEval::remove_overlap(), RemoveBins(), HandyFuncs::rms(), genie::flux::GCylindTH1Flux::SelectNeutrino(), genie::geometry::ROOTGeomAnalyzer::SetMixtureWeightsSum(), novaddt::Cluster::SetTotalADC(), genie::geometry::ROOTGeomAnalyzer::SetWeightWithDensity(), show_potential(), lem::LEMSummarizer::SliceToLEMInput(), hough::Hough2P::SmoothMap(), hough::MultiHough2P::SmoothMap(), HandyFuncs::stdev(), zcl::FastMonopoleTriggers::StdevCellsPerPlane(), novaddt::FastMMTrigger::StdevCellsPerPlane(), novaddt::NNFastMMTrigger::StdevCellsPerPlane(), zcl::FmmTriggerEvd::StdevCellsPerPlane(), zcl::FastMMStudy::StdevCellsPerPlane(), earms::ElasticArms::SumVi(), systematics_extrap_comp_from_pred_interp(), systematics_summary_from_pred_interp(), stan::lang::expression::total_dims(), sn::HighEnergyRemover::TotalTDCVetoed(), sn::HighEnergyRemover::TotalVetoedTDC(), red::OverburdenCalculator::trace(), geo::CoordinateTransformation::transformBeamToDetectorCoordinates(), geo::CoordinateTransformation::transformDetectorToBeamCoordinates(), and uptime().

Double_t y = 0

Definition at line 26 of file plot.C.