Functions | Variables
plottest35.C File Reference

Go to the source code of this file.

Functions

c1 SetGridx ()
 
c1 SetGridy ()
 
c1 SetLogx ()
 
c1 SetLogy ()
 
 for (int i=0;i< n;i++)
 
input_file_1 cd ()
 
input_file_1 ls ()
 
t1 SetBranchAddress ("Energy",&energy)
 
t1 SetBranchAddress ("Weight",&weight)
 
cout<< t1-> GetEntries ()
 
h_2 SetLineStyle (kDashed)
 
h_2 SetLineColor (kBlue)
 
h_2 Draw ()
 
h_1 Draw ("same")
 
c1 Update ()
 
c1 Print ("./test35.png")
 
input_file_1 Close ()
 

Variables

TFile * input_file_2 = new TFile("test35b.root")
 
TCanvas * c1 = new TCanvas("c1", "test35", 200, 10, 700, 500)
 
int n = 41
 
float bin [41]
 
TH1 * h_1 = new TH1D("unbiased","Source spectrum",40,bin)
 
TH1 * h_2 = new TH1D("biased","Source spectrum",40,bin)
 
double energy
 
double weight
 
TTree * t1 = (TTree *) input_file_1->Get("MyTuple")
 
TTree * t2 = (TTree *) input_file_2->Get("MyTuple")
 

Function Documentation

input_file_1 cd ( )
input_file_1 Close ( )
h_2 Draw ( )
h_1 Draw ( "same"  )
for ( )

Definition at line 16 of file plottest35.C.

References MECModelEnuComparisons::i, and cet::pow().

16  {
17  bin[i] =pow(10,(-2+0.1*i));
18  }
constexpr T pow(T x)
Definition: pow.h:75
float bin[41]
Definition: plottest35.C:14
cout<<t1-> GetEntries ( )

Definition at line 29 of file plottest35.C.

References MECModelEnuComparisons::i.

Referenced by genie::GHepRecord::AddParticle(), slid::ParticleIDAlg::CalcPlaneLongDedxProb(), slid::ParticleIDAlg::CalcPlaneTransDedxProb(), genie::GHepRecord::CompactifyDaughterLists(), compare_cos_numi(), ana::ComparisonTableNbins(), genie::TuneId::Decode(), genie::BaryonResonanceDecayer::EvolveDeltaBR(), genie::GHepRecord::FindParticle(), get_cosmic_sample(), jmshower::RecoJMShower::GetCellTransDedxProb(), getEffDiffErrPc(), jmshower::RecoJMShower::GetPlaneDedxProb(), genie::GHepRecord::GetStableDescendants(), slid::DedxDistribution::LoadDedxHistograms(), jmshower::RecoJMShower::LoadDedxHistograms(), main(), MakeCSV(), ana::MakeNueSystematicsFile(), MakeNus17CosBkgd(), MakeNus18CosBkgd(), genie::GHepRecord::NEntries(), overlayFBplotsH(), genie::GHepRecord::Particle(), genie::GHepRecord::ParticlePosition(), genie::utils::intranuke::PreEquilibrium(), genie::utils::intranuke2018::PreEquilibrium(), ana::PrintRawEventCounts(), lem::AlignLibToVtx::produce(), DataMCPair::Purity(), genie::BaryonResonanceDecayer::SelectDecayChannel(), genie::GHepRecord::SwapParticles(), and genie::GHepRecord::UpdateDaughterLists().

30  {
31  t1.GetEntry(i);
32  // cout << energy << " " << weight << endl;
33  h_1->Fill(energy,weight);
34  }
TTree * t1
Definition: plottest35.C:26
TH1 * h_1
Definition: plottest35.C:20
double energy
Definition: plottest35.C:25
double weight
Definition: plottest35.C:25
input_file_1 ls ( )
c1 Print ( "./test35.png"  )
t2 SetBranchAddress ( "Energy"  ,
energy 
)
t2 SetBranchAddress ( "Weight"  ,
weight 
)
c1 SetGridx ( )
c1 SetGridy ( )
h_2 SetLineColor ( kBlue  )
fBaryonPT2pdfTwk2 SetLineStyle ( kDashed  )
gPad SetLogx ( )
c1 SetLogy ( )
c1 Update ( )

Variable Documentation

float bin[41]

Definition at line 14 of file plottest35.C.

Referenced by ana::FCSurface::Add(), hough::LiteTH2::AddBinContent(), hv::LiteTH2::AddBinContent(), align::Alignment::analyze(), cheat::TestTrackIds::beginJob(), BinByBinTemplateFit(), BinByBinTemplateFit_TemplateResults(), cmf::CovarianceBinUtility::BinToKey(), fnex::ShifterAndWeighter::CalcNearTrueEnergyRatioWeights(), fnex::ShifterAndWeighter::CalcNueSystWeights(), ana::nueccinc::NueCCIncTemplateFitter::CalculateOneSigmaShift(), ana::NumuCCIncPionTemplateFitter::CalculateOneSigmaShift(), nueccinc_test::NueCCIncGlobalFitter::CalculateOneSigmaShiftFull(), nueccinc_test::NueCCIncGlobalFitter::CalculateOneSigmaShiftReduced(), cmf::CalibSyst::CalibSystRatio(), ana::nueccinc::NueCCIncTemplateFitter::CheckIfBinShouldBeUsed(), ana::NumuCCIncPionTemplateFitter::CheckIfBinShouldBeUsed(), ana::CovMxExperiment::ChiSq(), CombineHistograms(), CutThreshold(), data_over_mc_profile(), ana::PredictionInterp::DebugPlot(), ana::PredictionInterp::DebugPlotColz(), ana::FCSurface::DrawBins(), ana::SystMakerShift::DrawBkg(), ana::SystMaker::DrawBkg(), DrawResBin(), ana::SystMakerShift::DrawShift(), ana::SystMakerShift::DrawSig(), ana::SystMaker::DrawSig(), fnex::CorrectedSpectrum::DrawSpline(), DrawUniverses(), tbana::BeamStructureAna::endJob(), rwgt::MakeGENIEReweightTable::endJob(), fnex::CovarianceBinUtility::EnergyToBin(), ana::PredictionExtendToPeripheral::ExtendRecoWeight(), ana::PredictionExtendToPeripheral::ExtendRecoWeightOscillatable(), caldp::LiteProfile::Fill(), ana::Hist::Fill(), cmf::FillSpectrum(), fnex::CovarianceMatrixMaker::FillSpectrum(), fnex::CovarianceFitHelper::FillSpectrum(), ana::FrequentistSurface::FillSurface(), ana::Binning::FindBin(), fnex::FitEval_UBL::FitValue(), ana::FixGibuuWeight::FixGibuuWeight(), ana::ModularExtrapComponent::FormSmartRatio(), fragmentAngularDistributionHistogram(), generate_fc_binlists(), genie::supernova::GFluxGenerator::GenerateNext(), ana::ISurface::GetBestFitY(), hough::LiteTH2::GetBinContent(), hv::LiteTH2::GetBinContent(), GetCovMx(), getErrorBand(), getFractionalErrorBand(), SystEntry::GetLimits(), GetLimits(), om::HitMaps::GetNanoSliceSummary(), ana::NumuCCIncPionTemplateFitter::getPIDFitTemplates(), ana::nueccinc::NueCCIncTemplateFitter::getPIDFitTemplates(), ana::GetQuantileBins(), graphAsymmError(), ana::graphAsymmErrorScaled(), ana::graphAsymmErrorWithBkgScaled(), IntInBin(), joint_fit_2017_fc_submit(), PandAna.cut.analysis_cuts::kNueApplyMask(), PandAna.cut.analysis_cuts::kNumuOptimizedContainFD(), make_fc_slices_nersc_2018(), make_fc_slices_nersc_2018_stats(), make_fc_slices_nersc_2019(), make_fc_surfaces_2020(), make_fc_surfaces_2020_validation(), make_fc_surfaces_nersc_2018(), make_fc_surfaces_nersc_2018_stats(), make_fc_surfaces_nersc_2019(), highe::HighEnergyAna::make_histo(), novaddt::SNAna::make_histo(), mono::SlowMonopoleAna::make_histo(), make_nus17_fc_surfs(), make_nus_fc_surfs(), makeDataCryRatio(), makeEffPlot(), makeEffPlotNoRatio(), MakeNuEnergyPlots(), makePlot(), MakePlots(), MakeTestStandPlots_AllRuns(), MakeTestStandPlots_NewRuns(), makeWgtdEffPlot(), makeWgtdPlot(), fhicl::maximally_munched_dss(), mec_tuning_preds_2020(), mrbrem_get_reweighted_spectra(), MRDiFStudy_FHC_Step2(), MRDiFStudy_RHC_Step2(), fnex::FitEval_UBL::NDOF(), fnex::CovarianceBinUtility::NuEHighEdges(), cmf::CovarianceBinUtility::NuMuHighEdges(), ana::RecoReweight::OptimalBinningHelper(), genie::geometry::PlaneParam::PlaneParam(), plot_3flavor_withsysts(), plot_abstree(), plot_ehade_quantbound(), plot_quantbound_twosamples(), plot_quantile_boundaries_2020(), plot_quantile_boundaries_twosamples_2020(), plot_rationoosc(), plot_recoE_numu(), ana::PlotDataMC(), PlotDataMC(), plotDataPred(), ana::PlotSyst(), Plotting_DataAndPrediction(), genie::LocalFGM::Prob(), genie::EffectiveSF::Prob(), genie::FGMBodekRitchie::Prob(), getGoodRuns4SAM::processFarDetData(), ana::SystMaker::ProcessSyst(), ana::Bayesian1DMarginal::QuantileRanges(), ana::RatioAsymmError(), ana::RatioAsymmErrorScaled(), ana::RatioAsymmErrorWithBkg(), ana::RatioAsymmErrorWithBkgScaled(), Ratiofit(), readTree(), sn::HighEnergyRemover::remove(), ResolutionBars(), RunCalibration(), ana::FCSurface::SaveToFile(), hough::LiteTH2::SetBinContent(), hv::LiteTH2::SetBinContent(), DrawUtils::SetRatioErrors(), SplitHistograms(), ana::FCSurface::SurfaceForSignificance(), ana::Multiverse::ToSpectrum(), ana::Bayesian1DMarginal::ToTH1(), ana::Nus17SystFromHist::WeightFor(), ana::NusSystFromHist::WeightFor(), ana::NuISyst::WeightFor(), ana::Nus18SystFromHist::WeightFor(), and calib::AttenuationFit::writeResults().

TCanvas* c1 = new TCanvas("c1", "test35", 200, 10, 700, 500)

Definition at line 6 of file plottest35.C.

double energy

Definition at line 25 of file plottest35.C.

Referenced by Analyse_Data2DataComp(), mcchk::CosmicAna::analyze(), murem::MuonRemoveAna::analyze(), fnex::AnalyzeWeighters::analyze(), ncs::GenieTruth::analyze(), INukeNucleonCorr::AvgCorrection(), fnex::CovarianceBinUtility::BinToEnergy(), caf_numu_nd_cutflow(), caf_numu_nuenergy_vs_xy(), caf_numu_reco_minus_true(), caf_numu_vars(), lem::CalcEnergy(), caf::Proxy< caf::SRBpfId >::CheckEquals(), caf::Proxy< caf::SRBpfTrack >::CheckEquals(), caf::Proxy< caf::StandardRecord >::CheckEquals(), fnex::EventListMaker::CheckNueFDPID(), ana::constructBPFPng3dVar(), genie::flux::GAtmoFlux::CosZenith(), fnex::EventListManipulator::CreateFarDetCosmicBackgroundsFromHist(), CreateKNNTrainingTrees(), genie::GVldContext::DecodeENERGY(), jmshower::EID::EID(), cheat::BackTracker::EnergyFromTrackId(), evgen::CosmicsGen::Enhance(), LSTME::FillLSTME::fillEnergies(), fnex::CovarianceFitHelper::FillEnergySpectra(), genie::flux::GHAKKMAtmoFlux::FillFluxHisto(), genie::flux::GFLUKAAtmoFlux::FillFluxHisto(), genie::flux::GBGLRSAtmoFlux::FillFluxHisto(), calib::StopperThreshold::FillHist(), calib::EnergyStandardCandles::FillMichelRecoInfo(), fnex::CovarianceMatrixMaker::FillSpectrum(), fnex::CovarianceFitHelper::FillSpectrum(), calib::StopperThreshold::FillTree(), fit_fcn(), genie::NNBarOscPrimaryVtxGenerator::GenerateFermiMomentum(), genie::MECGenerator::GenerateNSVInitialHadrons(), INukeNucleonCorr::generateTargetNucleon(), cmf::ShifterAndWeighter::GeniePCASystWeight(), fnex::ShifterAndWeighter::GeniePCASystWeight(), getCosmicList(), genie::flux::GFluxBlender::GetFlavorMixer(), GetHistsFD(), GetHistsND(), getInputList(), ana::BeamSystOrWeightBase::GetWeight(), ana::GeniePCASyst::GetWeight(), HAProbeFSI(), main(), cvn::MakeParticleLabel(), genie::geometry::GeomVolSelectorRockBox::MakeRockBox(), numue::NumuEAlg::MuonEnergies(), fnex::CovarianceBinUtility::NuEHighEdges(), ana::NueRecoE_2020FHCFit(), numu_validation_numuvars(), cmf::CovarianceBinUtility::NuMuHighEdges(), caf::Proxy< caf::SRBpfId >::operator=(), caf::Proxy< caf::SRBpfTrack >::operator=(), caf::Proxy< caf::StandardRecord >::operator=(), INukeNucleonCorr::OutputFiles(), Plotting_Data2DataComp(), g4n::ParticleListAction::PostTrackingAction(), PredictionInfo::PredictionInfo(), genie::utils::intranuke::PreEquilibrium(), genie::utils::intranuke2018::PreEquilibrium(), g4n::ParticleListAction::PreTrackingAction(), printEventToJson(), evgen::GFlavorOsc::Probability(), wsnumu::WSNumu::produce(), jmshower::JMClusterMerge::produce(), evgen::CORSIKAGen::produce(), bpfit::BPFEnergyEstimator::produce(), bpfit::BPFEnergyEstimatorOnly::produce(), ProducingSA(), LSTME::ProngBPFVars::saveToDict(), jmshower::EID::SetDetEnergy(), jmshower::JMShower::SetEnergy(), jmshower::EID::SetNuEnergy(), brb::MuonStackTrack::SetRecoEnergy(), jmshower::EID::SetTrueNuEnergy(), ana::NumuSummedSmallGENIESyst::Shift(), g4n::RockCutterAction::StackClassifyNewTrack(), g4n::ParticleListAction::SteppingAction(), ana::takeOutTrash(), ana::takeOutTrashByTruth(), test_fluxhadr_prod_weights_Flux(), train_reduce(), treeContentsToFile(), and jmshower::JMShower::~JMShower().

TH1* h_1 = new TH1D("unbiased","Source spectrum",40,bin)

Definition at line 20 of file plottest35.C.

TH1* h_2 = new TH1D("biased","Source spectrum",40,bin)

Definition at line 21 of file plottest35.C.

TFile* input_file_2 = new TFile("test35b.root")

Definition at line 4 of file plottest35.C.

int n = 41

Definition at line 13 of file plottest35.C.

TTree* t1 = (TTree *) input_file_1->Get("MyTuple")

Definition at line 26 of file plottest35.C.

TTree* t2 = (TTree *) input_file_2->Get("MyTuple")

Definition at line 36 of file plottest35.C.

double weight

Definition at line 25 of file plottest35.C.