#include <iostream>
#include <cmath>
#include "TArrow.h"
#include "TCanvas.h"
#include "TChain.h"
#include "TCut.h"
#include "TH1F.h"
#include "TMath.h"
#include "TMinuit.h"
#include "TStyle.h"
#include "TText.h"
#include "TLegend.h"
#include "TLatex.h"
Go to the source code of this file.
Functions | |
TCut | run ("run>=15071&&run<=15131") |
TCut | activity ("nhit>=25&&nhitx>=3&&nhity>=3") |
TCut | y1cut ("y1<150") |
TCut | x1cut ("abs(x1)<100") |
TCut | z1cut ("280<z1 && z1<1200") |
TCut | fiducial (x1cut &&y1cut &&z1cut) |
TCut | cosnumi ("cosnumi>0.95") |
TCut | canacuts (run &&fiducial &&activity &&cosnumi) |
TCut | intime ("tave>=217.0 && tave<=227.8") |
TCut | outtime ("(tave>0.0&&tave<200.0) || (tave>250.0&&tave<450.0)") |
void | NDOSLabel () |
void | Preliminary () |
Put NOvA Preliminary on plots. More... | |
void | CenterTitles (TH1 *histo) |
void | nhit_proj (TChain &ch) |
void | nhit_plot () |
void | y1_proj (TChain &ch) |
void | y1_plot () |
void | x1_proj (TChain &ch) |
void | x1_plot () |
void | z1_proj (TChain &ch) |
void | z1_plot () |
void | cosnumi_proj (TChain &ch) |
void | cosnumi_plot () |
void | time_wide_proj (TChain &ch) |
void | time_wide_plot () |
void | time_zoom_proj (TChain &ch) |
double | spill_profile (double t) |
void | make_template (double sigma) |
void | make_time_profile (double b, double f, double t0, double sigma) |
double | chi2 () |
void | fcn (int &, double *, double &f, double *p, int) |
void | minimize () |
void | time_zoom_plot () |
void | proj_all (TChain &ch) |
void | plot_all () |
Variables | |
const char * | label = "NDOS Data, 09/12/13 - 09/27/13" |
double | t1 = 217.0 |
double | t2 = 227.8 |
double | intimet = (t2-t1) |
double | outtimet = 400.0 |
TH1F * | nhith |
TH1F * | y1h |
TH1F * | x1h |
TH1F * | z1h |
TH1F * | cosnumiinh |
TH1F * | cosnumiouth |
TH1F * | tavewideh |
TH1F * | tavezoomh |
int | ntbin_per_usec = 20 |
double | zoom_tbin_sz = 1.0/(float)ntbin_per_usec |
double | zoom_tlo = floor(t1) - 5 |
double | zoom_thi = floor(t2) + 6 |
int | zoom_nbin = ntbin_per_usec*(zoom_thi-zoom_tlo) |
static const int | nbatch = 6 |
static const double | dt_batch = 81*18.83E-3 |
static const double | dt_gap = 5*18.83E-3 |
static const double | dt_cycle = dt_batch + dt_gap |
static const double | spill_length = nbatch*dt_batch + (nbatch-1)*dt_gap |
TH1F * | template_spillh = 0 |
double | template_tlo |
double | template_thi |
int | template_nbin |
TH1F * | time_profileh |
TCut activity | ( | "nhit>=25&&nhitx>=3&&nhity>=3" | ) |
Referenced by cosnumi_proj(), x1_proj(), y1_proj(), and z1_proj().
Referenced by time_wide_proj(), and time_zoom_proj().
void CenterTitles | ( | TH1 * | histo | ) |
Definition at line 77 of file cana_time_peak.C.
Referenced by cosnumi_plot(), nhit_plot(), time_wide_plot(), time_zoom_plot(), x1_plot(), y1_plot(), and z1_plot().
double chi2 | ( | ) |
Definition at line 532 of file cana_time_peak.C.
References MECModelEnuComparisons::i, test_ParserArtEvents::log, nui, sum, tavezoomh, time_profileh, and zoom_nbin.
Referenced by upmuana::UpMuRecoAna::analyze(), upmuana::UpMuAnalysis::analyze(), cmf::ChiSqrCalculator::BinCNPChiSqr(), cmf::ChiSqrCalculator::BinPoissonChiSqr(), ana::CalcChi2(), CalcChi2(), Calculate1DChi2_simple(), Calculate2DChi2(), CalculateENuChi2(), CalculateQ2Chi2(), calculateWrongSignNumuQ1(), calculateWrongSignNumuQ2(), calculateWrongSignNumuQ3(), calculateWrongSignNumuQ4(), vdt::Segment::Chi2EndPoint(), ana::OscCovMxExperiment::ChiSq(), ana::CovMxExperiment::ChiSq(), cmf::ChiSqrCalculator::ChiSqrCNP(), cmf::ChiSqrCalculator::ChiSqrPoisson(), DedxComp(), DedxCompBirk(), DedxGamma(), align::SplitTracks::DemingRegFit(), doUnfolding(), FCContour(), fcn(), FindAngleFromChi2(), cosrej::CosRejFxs::fitchisq(), numusand::NumuSandFxs::fitchisq(), bpfit::DimuonFitter::FitView(), util::LinFit(), novaddt::TrackFit::LinFit(), geo::LinFit(), novaddt::TrackFit::LinFitMinDperp(), geo::LinFitMinDperp(), makeMatrixElementSurface(), nuebar_signif(), PionDedxComp(), ProtonDedxComp(), ProtonDedxCompBirk(), ana::test_best_spline(), and novaddt::TrackFit::UtilLinFit().
TCut cosnumi | ( | " | cosnumi, |
0.95" | |||
) |
void cosnumi_plot | ( | ) |
Definition at line 297 of file cana_time_peak.C.
References a1, a2, CenterTitles(), cosnumiinh, cosnumiouth, Draw(), kRed, NDOSLabel(), Preliminary(), std::sqrt(), x1, and y1.
Referenced by plot_all().
void cosnumi_proj | ( | TChain & | ch | ) |
Definition at line 284 of file cana_time_peak.C.
References activity(), cosnumiinh, cosnumiouth, fiducial(), intime(), intimet, outtime(), and outtimet.
Referenced by proj_all().
Definition at line 550 of file cana_time_peak.C.
References chi2(), and make_time_profile().
Referenced by minimize().
Referenced by cosnumi_proj(), tree_maker_simple(), and useBDTG().
TCut intime | ( | "tave>=217.0 && tave<=227.8" | ) |
Referenced by CalcRWithSystsNus17(), cosnumi_proj(), getHists_FNEX(), GetNueData2017(), GetNueData2018(), GetNueData2019(), ana::GetNueData2020(), GetNumuData2019(), ana::GetNumuData2020(), make_nus17_fc_surfs(), make_nus_fc_surfs(), makeMatrixElementSurface(), plot_datamcpred(), plot_predictions(), PlotNus17PredSystsData(), and PlotNusSensAna01().
void make_template | ( | double | sigma | ) |
Definition at line 448 of file cana_time_peak.C.
References stan::math::floor(), Gaus(), MECModelEnuComparisons::i, calib::j, spill_length, spill_profile(), template_nbin, template_spillh, template_thi, template_tlo, w, and zoom_tbin_sz.
Referenced by make_time_profile().
void make_time_profile | ( | double | b, |
double | f, | ||
double | t0, | ||
double | sigma | ||
) |
Definition at line 488 of file cana_time_peak.C.
References MECModelEnuComparisons::i, make_template(), sigma(), confusionMatrixTree::t, template_nbin, template_spillh, time_profileh, zoom_nbin, zoom_thi, and zoom_tlo.
Referenced by fcn(), and minimize().
void minimize | ( | ) |
Definition at line 558 of file cana_time_peak.C.
References PandAna.Demos.pi0_spectra::bkg, om::cerr, e, allTimeWatchdog::endl, fcn(), stan::math::fmin(), MECModelEnuComparisons::i, make_time_profile(), std::sqrt(), getGoodRuns4SAM::t0, tavezoomh, febshutoff_auto::val, submit_syst::x, submit_syst::y, and zoom_nbin.
Referenced by proj_all().
void NDOSLabel | ( | ) |
Definition at line 56 of file cana_time_peak.C.
References label.
Referenced by cosnumi_plot(), nhit_plot(), time_wide_plot(), time_zoom_plot(), x1_plot(), y1_plot(), and z1_plot().
void nhit_plot | ( | ) |
Definition at line 95 of file cana_time_peak.C.
References CenterTitles(), kGreen, std::log10(), NDOSLabel(), nhith, cet::pow(), and Preliminary().
Referenced by plot_all().
void nhit_proj | ( | TChain & | ch | ) |
Definition at line 88 of file cana_time_peak.C.
Referenced by proj_all().
TCut outtime | ( | "(tave>0.0&&tave<200.0) || (tave>250.0&&tave<450.0)" | ) |
Referenced by cosnumi_proj(), getHists_FNEX(), GetNueCosmics2017(), GetNueCosmics2018(), and GetNueCosmicsFuture().
void plot_all | ( | ) |
Definition at line 687 of file cana_time_peak.C.
References cosnumi_plot(), nhit_plot(), time_wide_plot(), time_zoom_plot(), x1_plot(), y1_plot(), and z1_plot().
void Preliminary | ( | ) |
Put NOvA Preliminary on plots.
Definition at line 67 of file cana_time_peak.C.
Referenced by cosnumi_plot(), nhit_plot(), time_wide_plot(), time_zoom_plot(), x1_plot(), y1_plot(), and z1_plot().
void proj_all | ( | TChain & | ch | ) |
Definition at line 663 of file cana_time_peak.C.
References cosnumi_proj(), om::cout, allTimeWatchdog::endl, minimize(), nhit_proj(), time_wide_proj(), time_zoom_proj(), x1_proj(), y1_proj(), and z1_proj().
TCut run | ( | "run>=15071&&run<=15131" | ) |
double spill_profile | ( | double | t | ) |
Definition at line 424 of file cana_time_peak.C.
References dt_batch, dt_cycle, spill_length, and confusionMatrixTree::t.
Referenced by make_template().
void time_wide_plot | ( | ) |
Definition at line 357 of file cana_time_peak.C.
References b, CenterTitles(), om::cout, allTimeWatchdog::endl, check_time_usage::float, stan::math::floor(), kGreen, NDOSLabel(), Preliminary(), std::sqrt(), t1, t2, and tavewideh.
Referenced by plot_all().
void time_wide_proj | ( | TChain & | ch | ) |
Definition at line 350 of file cana_time_peak.C.
References canacuts(), and tavewideh.
Referenced by proj_all().
void time_zoom_plot | ( | ) |
Definition at line 632 of file cana_time_peak.C.
References CenterTitles(), kGreen, kRed, NDOSLabel(), Preliminary(), tavezoomh, and time_profileh.
Referenced by plot_all().
void time_zoom_proj | ( | TChain & | ch | ) |
Definition at line 401 of file cana_time_peak.C.
References canacuts(), tavezoomh, zoom_nbin, zoom_thi, and zoom_tlo.
Referenced by proj_all().
void x1_plot | ( | ) |
Definition at line 185 of file cana_time_peak.C.
References CenterTitles(), kGreen, NDOSLabel(), Preliminary(), and x1h.
Referenced by plot_all().
void x1_proj | ( | TChain & | ch | ) |
Definition at line 179 of file cana_time_peak.C.
References activity(), x1h, and y1cut().
Referenced by proj_all().
TCut x1cut | ( | ) |
Referenced by z1_proj().
void y1_plot | ( | ) |
Definition at line 141 of file cana_time_peak.C.
References CenterTitles(), kGreen, NDOSLabel(), Preliminary(), and y1h.
Referenced by plot_all().
void y1_proj | ( | TChain & | ch | ) |
Definition at line 135 of file cana_time_peak.C.
References activity(), and y1h.
Referenced by proj_all().
void z1_plot | ( | ) |
Definition at line 237 of file cana_time_peak.C.
References CenterTitles(), kGreen, NDOSLabel(), Preliminary(), and z1h.
Referenced by plot_all().
void z1_proj | ( | TChain & | ch | ) |
Definition at line 231 of file cana_time_peak.C.
References activity(), x1cut(), y1cut(), and z1h.
Referenced by proj_all().
TCut z1cut | ( | ) |
TH1F* cosnumiinh |
Definition at line 282 of file cana_time_peak.C.
Referenced by cosnumi_plot(), and cosnumi_proj().
TH1F* cosnumiouth |
Definition at line 283 of file cana_time_peak.C.
Referenced by cosnumi_plot(), and cosnumi_proj().
|
static |
Definition at line 419 of file cana_time_peak.C.
Referenced by spill_profile().
Definition at line 421 of file cana_time_peak.C.
Referenced by spill_profile().
|
static |
Definition at line 420 of file cana_time_peak.C.
Definition at line 53 of file cana_time_peak.C.
Referenced by cosnumi_proj().
const char* label = "NDOS Data, 09/12/13 - 09/27/13" |
Definition at line 34 of file cana_time_peak.C.
Referenced by cvn::RegPixelMap::Add(), cvn::PixelMap::Add(), Ana2017_sb_opening_macro(), AnaResultsSpectra(), cheat::TestTrackIds::beginJob(), dprf::ChannelPlots::beginRun(), BestFitToDataRelease(), BicountEllipse_dCP(), bin_composition_pie_chart(), BiprobEllipse_dCP(), dbutils::gui::BitmapEditor::BitmapEditor(), caf_numu_fd_validation_data(), caf_numu_fd_validation_MC(), caf_numu_fd_validation_MC_no_tau(), CalculateXSec(), dbutils::gui::ConfigSelectionDialog::ConfigSelectionDialog(), ana::CountingExperimentErrorBarChart(), cvn::RegPixelMapProducer::CreateMapGivenBoundary(), cvn::PixelMapProducer::CreateMapGivenBoundary(), cvn::RegPixelMapProducer::CreateMapGivenShowerVertex(), cvn::RegPixelMapProducer::CreateMapGivenVertex(), data_over_mc_profile(), DataVtxDistributionAna(), DataVtxDistributionLoad(), demoFitContours(), demoFitSlices(), DirNameToProbe(), DirNameToTarget(), DrawDeltaChiSqrWithContours(), DrawHCLabel(), drawLongTerm(), DrawResBin(), drawTimePlots(), drawVsPOT(), efficiency(), efficiencySA(), skim::CellHitSkimmer::EvaluateSlices(), example_macro(), ExtendedAxesAna(), fake_future_data(), FD_plots(), fiducial_opt(), FitParamEffectsAna(), FitSystEffectsAna(), genie_contours(), getBatch(), getBNBPlots(), art::DataViewImpl::getByLabel(), GetGENIEShiftLabels(), ana::FrequentistSurface::GetProfiledHists(), getTimePeakPlots(), GetXSecShiftLabels(), goodness_of_fit(), GraphsToDataRelease(), dprf::ChannelPlots::HRFebToStringLabel(), rb::IsFiltered(), joint_fit_2017_slices(), joint_fit_2018_contours(), joint_fit_2018_slices(), joint_fit_2019_bestfit(), joint_fit_2019_contours(), joint_fit_2019_slices(), joint_fit_future_bestfit_univ(), joint_fit_future_contour_univ(), jointsensitivity(), CalibAnaPlot::LegendLabel(), ana::NumuSyst::LoadFrom(), ana::NCSyst::LoadFrom(), ana::LoadFrom(), ana::NueSyst::LoadFrom(), ana::FluxReweight::LoadFrom(), ana::NDOscillatableSpectrum::LoadFrom(), ana::ReweightableSpectrum::LoadFrom(), ana::OscillatableSpectrum::LoadFrom(), ana::SystMakerShift::LoadFrom(), ana::GenericSystematicDef< SRType >::LoadFrom(), ana::TruthReweight::LoadFrom(), ana::RecoReweight::LoadFrom(), ana::SystMaker::LoadFrom(), ana::Spectrum::LoadFrom(), ana::LoadFromFile(), make_pi0_xcheck(), make_pid(), calib::MakeAttenuationProfiles::MakeAttenuationProfiles(), MakePlots(), MakeSummaryTable(), NDOSLabel(), cvn::RegPixelMap::NInput(), cvn::PixelMap::NInput(), nuint09_1pi1(), nuint09_1pi2(), nuint09_1pi3(), nuint09_1pi4(), nuint09_coh1(), nuint09_coh2(), nuint09_coh3(), nuint09_qel1(), nuint09_qel2(), nuint09_qel3(), nuint09_qel4(), nuint09_qel5(), nuint09_qel6(), order_chns::operator()(), genie::flux::operator<<(), ana::CutOptimization::OptimizedSigmaOverSigma(), evdb::ParameterSetEdit::ParameterSetEdit(), pi0_xcheck(), plot_joint_fit_2020_slices(), plot_pid(), PlotEvents(), ana::PlotPurEff(), ana::PlotSpectra(), preselection_cutflow(), fxwgt::FluxWeightCalculator::produce(), reco_minus_true_panels(), skim::CellHitSkimmer::reconfigure(), run_joint_fit_2020_bestfit(), run_joint_fit_2020_contours(), run_joint_fit_2020_slices(), ana::SaveTo(), sensitivity2018(), sensitivity2020(), set_labels_1D(), set_labels_2D(), ana::SpectrumHandler::SetLoader(), evd::SliceButtonBar::SliceButtonBar(), SpectrumParamEffectsAna(), TheoryEllipse_dCP(), timingPeak(), Tutorial2019Fit(), Tutorial2019FitContours(), Tutorial2019FitSlices(), om::WatchListBox::UpdateCurrentList(), validationscript(), vertex_fiducial_optimization(), cvn::CVNEventDump::WriteMapTH2(), cvn::CVNCosmicEventDump::WriteMapTH2(), calib::MakeAttenuationProfiles::writeResults(), FDPredictionHandler::~FDPredictionHandler(), and NDPredictionHandler::~NDPredictionHandler().
|
static |
Definition at line 418 of file cana_time_peak.C.
TH1F* nhith |
Definition at line 87 of file cana_time_peak.C.
Referenced by make_nhitc(), nhit_plot(), and nhit_proj().
int ntbin_per_usec = 20 |
Definition at line 396 of file cana_time_peak.C.
double outtimet = 400.0 |
Definition at line 54 of file cana_time_peak.C.
Referenced by cosnumi_proj().
Definition at line 422 of file cana_time_peak.C.
Referenced by make_template(), and spill_profile().
double t1 = 217.0 |
Definition at line 49 of file cana_time_peak.C.
Referenced by time_wide_plot().
double t2 = 227.8 |
Definition at line 50 of file cana_time_peak.C.
Referenced by art::detail::CanBeAggregated< std::array< T, N > >::aggregate(), singlekaon_xsec::Amatrix_NN(), genie::AlamSimoAtharVacasSKPXSec2014::Amatrix_NN(), singlekaon_xsec::Amatrix_NP(), genie::AlamSimoAtharVacasSKPXSec2014::Amatrix_NP(), singlekaon_xsec::Amatrix_PP(), genie::AlamSimoAtharVacasSKPXSec2014::Amatrix_PP(), zcl::SMMTriggerAna::analyze(), beamlinereco::ToFPositionRecoAnalysis::analyze(), beamlinereco::LEHitFinder< T >::BackwardFindingOfHitStart(), beamlinereco::CFDHitFinder< T >::BackwardFindingOfHitStart(), genie::BBA05ELFormFactorsModel::BBA05Fit(), novaddt::HoughPoint::calc(), novaddt::SlowMMTrigger::filter(), beamlinereco::CFDHitFinder< T >::FindHitWidth(), genie::HAIntranuke::Inelastic(), genie::HAIntranuke2018::Inelastic(), shadow::NOVASLocate::JulianDate(), runh::BadDataFilter::LoadBadTimeRanges(), main(), evtsum::EventSummary::MakeOutput(), genie::StrumiaVissaniIBDPXSec::MtxElm(), osc::OscCalc::P_internal_me(), osc::OscCalc::P_internal_mt(), osc::OscCalc::P_internal_te(), art::pointersEqual(), zcl::SPCluster::produce(), nl::TimeSeriesData::RangeTime(), locator::RndmLocatorTable::RndmLocatorTable(), evd::GeometryDrawer::ShowCellAndPlaneNumbers(), osc::analytic::SolveCubic(), sn::SortTrackEndsByTime(), and time_wide_plot().
TH1F* tavewideh |
Definition at line 349 of file cana_time_peak.C.
Referenced by time_wide_plot(), and time_wide_proj().
TH1F* tavezoomh |
Definition at line 395 of file cana_time_peak.C.
Referenced by chi2(), minimize(), time_zoom_plot(), and time_zoom_proj().
int template_nbin |
Definition at line 447 of file cana_time_peak.C.
Referenced by make_template(), and make_time_profile().
TH1F* template_spillh = 0 |
Definition at line 444 of file cana_time_peak.C.
Referenced by make_template(), and make_time_profile().
double template_thi |
Definition at line 446 of file cana_time_peak.C.
Referenced by make_template().
double template_tlo |
Definition at line 445 of file cana_time_peak.C.
Referenced by make_template().
TH1F* time_profileh |
Definition at line 487 of file cana_time_peak.C.
Referenced by chi2(), make_time_profile(), and time_zoom_plot().
TH1F* x1h |
Definition at line 178 of file cana_time_peak.C.
TH1F* y1h |
Definition at line 134 of file cana_time_peak.C.
TH1F* z1h |
Definition at line 230 of file cana_time_peak.C.
int zoom_nbin = ntbin_per_usec*(zoom_thi-zoom_tlo) |
Definition at line 400 of file cana_time_peak.C.
Referenced by chi2(), make_time_profile(), minimize(), and time_zoom_proj().
double zoom_tbin_sz = 1.0/(float)ntbin_per_usec |
Definition at line 397 of file cana_time_peak.C.
Referenced by make_template().
double zoom_thi = floor(t2) + 6 |
Definition at line 399 of file cana_time_peak.C.
Referenced by make_time_profile(), and time_zoom_proj().
double zoom_tlo = floor(t1) - 5 |
Definition at line 398 of file cana_time_peak.C.
Referenced by make_time_profile(), and time_zoom_proj().