#include "TBox.h"
#include "TCanvas.h"
#include "TFile.h"
#include "TH2.h"
#include "TSystem.h"
#include "stdio.h"
#include "LEM/func/Library.h"
#include <iostream>
Go to the source code of this file.
Functions | |
void | draw_event (TCanvas *theCanvas, TH2F *h[2], const MatchableEvent &sum) |
void | printEventToJson (const MatchableEvent sum, FILE *, int idx=0) |
void | dump_event (TString libPath, int idx=0, const char *outfile_name=NULL, bool draw=true, bool flipEven=false, bool flipOdd=false, bool idxs=false) |
void | next_event () |
void | dump_lib (int start=1, int nEvts=1, const char *outfile_name=NULL, bool draw=false) |
Variables | |
int | evt_idx =0 |
FILE * | outfile =NULL |
void draw_event | ( | TCanvas * | theCanvas, |
TH2F * | h[2], | ||
const MatchableEvent & | sum | ||
) |
Definition at line 76 of file dump_event.C.
References b, kGreen, kRed, lem::kVertexCell, lem::kVertexPlane, lem::EventSummary::trueVtxCell, lem::EventSummary::trueVtxCellOther, lem::EventSummary::trueVtxPlane, and registry_explorer::v.
Referenced by adjusttick(), animation_step(), draw_whole_user_event(), dump_event(), and toggle_cum_ani().
void dump_event | ( | TString | libPath, |
int | idx = 0 , |
||
const char * | outfile_name = NULL , |
||
bool | draw = true , |
||
bool | flipEven = false , |
||
bool | flipOdd = false , |
||
bool | idxs = false |
||
) |
Definition at line 18 of file dump_event.C.
References draw_event(), lem::Library::Event(), evt_idx, lem::EventSummary::FillHists(), lem::Library::FromMMap(), make_syst_table_plots::h, MECModelEnuComparisons::i, compare_h5_caf::idx, allTimeWatchdog::index, outfile, printEventToJson(), make_template_knob_config::stdout, and sum.
Referenced by dump_lib(), and next_event().
Definition at line 138 of file dump_event.C.
References dump_event(), fclose(), MECModelEnuComparisons::i, nEvts, outfile, febshutoff_auto::start, and make_template_knob_config::stdout.
void next_event | ( | ) |
Definition at line 132 of file dump_event.C.
References dump_event(), and evt_idx.
void printEventToJson | ( | const MatchableEvent | sum, |
FILE * | theOutput, | ||
int | idx = 0 |
||
) |
Definition at line 100 of file dump_event.C.
References lem::EventSummary::ccnc, getBrightness::cell, lem::LiteHit::Cell(), energy, lem::EventSummary::hits, MECModelEnuComparisons::i, lem::EventSummary::mode, lem::EventSummary::nhits, lem::EventSummary::nParts, lem::EventSummary::partPdgs, lem::EventSummary::pdg, lem::LiteHit::pecorr, lem::EventSummary::photE0, lem::EventSummary::photE1, lem::EventSummary::photL0, lem::EventSummary::photL1, lem::LiteHit::Plane(), NDAPDHVSetting::plane, lem::EventSummary::totalPE, lem::EventSummary::trueEVis, and POTSpillRate::view.
Referenced by dump_event().
int evt_idx =0 |
Definition at line 12 of file dump_event.C.
Referenced by dump_event(), and next_event().
FILE* outfile =NULL |
Definition at line 13 of file dump_event.C.
Referenced by add_and_normalize_LLhistos(), novaddt::Evaluation::analyze(), air::AirKalmanAna::analyze(), BestFit(), BuildMetricsTree(), BuildMetricsTree_OnMon(), BuildOldTree(), CAF_makeCAFSensitivities_for_FNEX(), cafe_FD_predictions(), CalcFiberLoopCorr(), compare_cos_numi(), ConsolidateSystMaker(), CreateKNNTrainingTrees(), d3sigma_calc(), d4sigma_calc(), d4sigma_hist(), d4sigma_plot(), demoBarChart(), demoFitContours(), demoFitSlices(), doUnfolding(), dump_event(), dump_lib(), calib::AttenFit::endJob(), energyResolution(), generate_fake_data(), get_cosmic_sample(), getHists_FNEX(), joint_fit_2017_contours(), 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(), main(), make_BPF_Energy_Estimator_KNN_regression(), make_BPF_muon_PID_KNN(), make_DataMCComp_numu(), make_files_for_decomp_plots(), MakeCAFSensitivities_for_FNEX(), MakeISysts(), MakeNus17CosBkgd(), MakeNus18CosBkgd(), MakeNus2019CovMxSysts(), MakeSurface(), MakeSurfaceNoNDOsc(), MakeSysts(), makeXSecPlots_TemplateFit(), muonid_fhc_dist(), muonid_rhc_dist(), NDFDCVNBDTCutSelector(), neut_code_from_rootracker(), evdb::ScanWindow::OpenOutputFile(), INukeNucleonCorr::OutputFiles(), plot_BEN(), readTree(), evdb::ScanFrame::Record(), reduce_the_predfile_nue_numu(), run_joint_fit_2020_bestfit(), run_joint_fit_2020_contours(), run_joint_fit_2020_slices(), sensitivity2018(), sensitivity2020(), specprod_systematics(), Tutorial2019FitContours(), Tutorial2019FitSlices(), validation(), and calib::AttenuationFit::writeResults().