Functions | Variables
exporter_fd.C File Reference
#include <string>
#include <iostream>
#include "CAFAna/numu/SplineEE/exporters/var_defs.h"
#include "CAFAna/Analysis/CSVMaker.h"
#include "3FlavorAna/Cuts/NumuCuts2018.h"
#include "CAFAna/Cuts/TruthCuts.h"
#include "CAFAna/Cuts/SpillCuts.h"
#include "CAFAna/Vars/GenieWeights.h"
#include "CAFAna/Vars/PPFXWeights.h"
#include "CAFAna/Vars/XsecTunes.h"

Go to the source code of this file.

Functions

void exporter_fd ()
 

Variables

const std::string data
 
const std::string output = "data_fd_p3.csv"
 
const Cut cut
 
const Var weight = kPPFXFluxCVWgt * kXSecCVWgt2018
 

Function Documentation

void exporter_fd ( )

Definition at line 37 of file exporter_fd.C.

References ana::CSVMaker::addVar(), ana::CSVMaker::addVars(), ana::CSVMaker::Go(), ana::kStandardSpillCuts, generic.controllers.MakeCanvases::maker, output, ana::CSVMaker::setCut(), ana::SpectrumLoaderBase::SetSpillCut(), VARS_BASE(), VARS_FD(), and VARS_TRUTH().

38 {
40 
41  maker.setCut(cut);
42  maker.SetSpillCut(kStandardSpillCuts);
43 
44  maker.addVars(VARS_TRUTH);
45  maker.addVars(VARS_BASE);
46  maker.addVars(VARS_FD);
47 
48  maker.addVar("weight", weight);
49 
50  maker.Go();
51 }
const XML_Char const XML_Char * data
Definition: expat.h:268
const std::vector< std::pair< std::string, Var > > VARS_BASE({{"baseMuE", kMuE},{"baseHadE", kHadE},{"baseNuMuE", kCCE},})
const Cut cut
Definition: exporter_fd.C:30
const std::string output
Definition: exporter_fd.C:28
const SpillCut kStandardSpillCuts
Apply this unless you&#39;re doing something special.
Definition: SpillCuts.h:49
const std::vector< std::pair< std::string, Var > > VARS_FD({{"trkLen", kTrkLength},{"hadVisE", kNumuHadVisE},})
const std::vector< std::pair< std::string, Var > > VARS_TRUTH({{"trueE", kTrueE},{"trueMuE", kTrueMuonE},})
const Var weight
Definition: exporter_fd.C:34

Variable Documentation

const Cut cut
Initial value:
= kIsNumuCC && (kTrueE < 5) && (
)
const Cut kNumuCosmicRej2018([](const caf::SRProxy *sr){return(sr->sel.cosrej.anglekal > 0.5 && sr->sel.cosrej.numucontpid2019 > 0.53 && sr->slc.nhit< 400 && sr->sel.nuecosrej.pngptp< 0.9 );})
Definition: NumuCuts2018.h:19
const Var kTrueE([](const caf::SRProxy *sr){return(sr->mc.nnu==0)?0.:float(sr->mc.nu[0].E);})
Definition: Vars.cxx:85
const Cut kNumuContainFD2017
Definition: NumuCuts2017.h:21
const Cut kNumuBasicQuality([](const caf::SRProxy *sr){return(sr->energy.numu.trkccE > 0 && sr->sel.remid.pid > 0 && sr->slc.nhit > 20 && sr->slc.ncontplanes > 4 && sr->trk.cosmic.ntracks > 0);})
Definition: NumuCuts.h:14
const Cut kNumuPID2018([](const caf::SRProxy *sr){std::cout<< "ERROR::kNumuPID2018, cutting on both cvnProd3Train and cvn2017."<< " Neither branch exists anymore. Returning False."<< std::endl;abort();return false;})
Definition: NumuCuts2018.h:22

Definition at line 30 of file exporter_fd.C.

Referenced by ana::FileReducer::AddEventCut(), ana::FileReducer::AddNuTruthCut(), Analyse_GetEfficiency(), Analyse_GetEfficiency_UseNEntries(), Analyse_OverlayStudies(), dprf::TrackPlots::analyze(), dprf::ChannelPlots::beginRun(), dprf::TrackPlots::beginRun(), ana::GenericSystematicDef< SRType >::BuildSpectrumDown(), ana::GenericSystematicDef< SRType >::BuildSpectrumUp(), caf_numu_fd_validation_data(), caf_numu_fd_validation_MC(), caf_numu_fd_validation_MC_no_tau(), CutFlow_Cosmic(), CutFlow_Data(), CutFlow_MC(), CutFlow_NearDet(), Decomp::Decomp(), ana::DeriveFlux(), Distribution::Distribution(), DoThePlots(), drawLongTerm(), drawTimePlots(), drawVsPOT(), efficiency(), efficiencySA(), EnergyCont_plot(), estimate_energy(), dprf::TrackPlots::FinishEventGroup(), ana::FitInAnaBinsBkgdEstimator::FitInAnaBinsBkgdEstimator(), ana::FluxMultiverseSyst::FluxMultiverseSyst(), ana::GenericSystematicDef< SRType >::GenericSystematicDef(), genie_syst_make(), ana::GenieMultiverseSpectra::GenieMultiverseSpectra(), get_eventlist(), get_spectra_2dplots(), getCrossSectionAnalysis_Spectra(), getEffDiffErrPc(), getEffDiffPc(), getFitTemplates(), GetHistsFD(), GetHistsND(), getPredictions(), getResolutionSpectra(), getSpectra_ForFitting(), ana::ExposureSource::HandleSpill(), InitSpectra(), make_pi0_xcheck(), make_pid(), MakeCosmicSpectra(), MakeCovarSim(), MakeCutFlowSpectra(), ana::MakeCutVec(), MakeDecomp(), MakeMap(), makePIDCutTuning(), ana::MakeTextListFile(), MakeThePlots(), mrbrem_get_initial_spectra(), mrbrem_get_reweighted_spectra(), mrbrem_plots(), ana::Multiverse::Multiverse(), nc_bkgd_by_interaction_mode(), dprf::TrackPlots::Normalize(), nuCrystalBall(), NuMu2020_BasicPIDPlots_Plot(), ana::NumuCC2p2hBkgdEstimator::NumuCC2p2hBkgdEstimator(), ana::NotContainFxn::operator()(), stan::math::ordered_logistic_rng(), stan::math::ordered_probit_rng(), plot_cosmic_eff(), plot_xsecs(), ppfx_make_systs(), ppfx_smooth_weights_save(), preselection_cutflow(), dprf::TrackPlots::ResetEventGroup(), resolution2018(), ana::SpectrumHandler::SetLoader(), ana::ICrossSectionAnalysis::SetSelectionCut(), ana::ICrossSectionAnalysis::SetSignalCut(), ana::SpectrumLoaderBase::SetSpillCut(), ana::SpectrumLoaderNuTreeSpillCuts::SpectrumLoaderNuTreeSpillCuts(), ana::systsQ3Q0(), test_systmultiverse(), and validationscript().

const std::string data
Initial value:
=
"dataset_def_name_newest_snapshot "
"prod_caf_R17-11-14-prod4reco.d_fd_genie_nonswap_fhc_nova_v08_period3_v1"

Definition at line 24 of file exporter_fd.C.

const std::string output = "data_fd_p3.csv"

Definition at line 28 of file exporter_fd.C.

Referenced by exporter_fd().

const Var weight = kPPFXFluxCVWgt * kXSecCVWgt2018

Definition at line 34 of file exporter_fd.C.