Definition at line 9 of file savePrediction_addExpt.C.
References allInOneTrainingPlots::axis, calc, om::cout, e, allTimeWatchdog::endl, MakeMiniprodValidationCuts::f, ana::Loaders::Go(), ana::kBeam, ana::kCCE, cmf::kData, caf::kFARDET, kMC, caf::kNEARDET, ana::kNoShift, ana::kNumuContainFD, ana::kNumuCosmicRej, ana::kNumuEnergyBinning, ana::kNumuQuality, ana::kStandardSpillCuts, cmf::kTauSwap, ana::kTuftsWeightCC, loaders, caf::SRRemid::pid, caf::SRIDBranch::remid, ana::ResetOscCalcToDefault(), ana::PredictionNoExtrap::SaveTo(), caf::StandardRecord::sel, ana::Loaders::SetLoaderPath(), ana::Loaders::SetSpillCut(), std::sqrt(), sr, and string.
14 std::string directoryD =
"/pnfs/nova/persistent/production/concat/R16-03-03-prod2reco.d/";
15 std::string directoryF =
"/pnfs/nova/persistent/production/concat/R16-03-03-prod2reco.f/";
17 std::string nd_data = directoryD+
"prod_decaf_R16-03-03-prod2reco.d_nd_numi_fhc_full_numu_contain_v1_goodruns_prod2-snapshot.root";
21 std::string nd_nonswap_few = directoryD+
"prod_decaf_R16-03-03-prod2reco.d_nd_genie_nonswap_genierw_fhc_nova_v08_epoch1-3c_numu_contain_v1_prod2-snapshot/*_1_of_16.root";
23 std::string fd_nonswap_3b = directoryF+
"/epoch3b/prod_decaf_R16-03-03-prod2reco.f_fd_genie_nonswap_fhc_nova_v08_epoch3b_numu_contain_v1_prod2-snapshot.root";
24 std::string fd_fluxswap_3b = directoryF+
"/epoch3b/prod_decaf_R16-03-03-prod2reco.f_fd_genie_fluxswap_fhc_nova_v08_epoch3b_numu_contain_v1_prod2-snapshot.root";
25 std::string fd_tau_3b = directoryF+
"/epoch3b/prod_decaf_R16-03-03-prod2reco.f_fd_genie_tau_fhc_nova_v08_epoch3b_numu_contain_v1_prod2-snapshot.root";
36 osc::OscCalculatorPMNSOpt
calc;
39 calc.SetTh23(TMath::ASin(
sqrt(0.403)));
40 calc.SetDmsq32(2.67
e-3);
42 TFile*
f =
new TFile(
"../Predictions/Prediction_epoch3b_addExpt_kCCE.root",
"RECREATE");
78 prediction_ugly->
SaveTo(f->mkdir(
"pred_ugly" ));
79 prediction_bad->
SaveTo(f->mkdir(
"pred_bad" ));
80 prediction_good->
SaveTo(f->mkdir(
"pred_good" ));
Near Detector underground.
Far Detector at Ash River.
void ResetOscCalcToDefault(osc::IOscCalcAdjustable *calc)
Reset calculator to default assumptions for all parameters.
Collection of SpectrumLoaders for many configurations.
const Cut kNumuCosmicRej([](const caf::SRProxy *sr){return(sr->sel.cosrej.anglekal > 0.5 &&
sr->sel.cosrej.numucontpid2019 > 0.535 && sr->slc.nhit< 400);})
const Cut kNumuContainFD([](const caf::SRProxy *sr){ std::pair< int, int > planes=calcFirstLastLivePlane(sr->slc.firstplane, std::bitset< 14 >(sr->hdr.dibmask));int planestofront=sr->slc.firstplane-planes.first;int planestoback=planes.second-sr->slc.lastplane;return( sr->slc.ncellsfromedge > 1 &&planestofront > 1 &&planestoback > 1 &&sr->sel.contain.kalfwdcell > 10 &&sr->sel.contain.kalbakcell > 10 &&sr->sel.contain.cosfwdcell > 0 &&sr->sel.contain.cosbakcell > 0);})
void Go()
Call Go() on all the loaders.
void SetSpillCut(const SpillCut &cut)
float pid
PID value output by kNN.
const Binning kNumuEnergyBinning
SRRemid remid
Output from RecoMuonID (ReMId) package.
const SystShifts kNoShift
The StandardRecord is the primary top-level object in the Common Analysis File trees.
SRIDBranch sel
Selector (PID) branch.
const SpillCut kStandardSpillCuts
Apply this unless you're doing something special.
void SetLoaderPath(const std::string &path, caf::Det_t det, DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap)
Configure loader via wildcard path.