make_rockpred_2017.C
Go to the documentation of this file.
1 #include "OscLib/OscCalcDumb.h"
2 
3 #include "CAFAna/Core/Spectrum.h"
5 
6 #include "CAFAna/Cuts/Cuts.h"
10 
11 #include "CAFAna/Vars/Vars.h"
15 
17 
18 #include "TFile.h"
19 
20 #include <iostream>
21 #include <cmath>
22 
23 using namespace ana;
24 
25 
27 {
28  double pot = 9.48e20; // Pick something
29 
30 
31  std::string nNonS = "/pnfs/nova/persistent/production/concat/R17-03-01-prod3reco.m/fd/sumdecaf/nue2017_numu_uncontained/genie/prod_sumdecaf_R17-03-01-prod3reco.m_fd_rock+cosmic-overlay_genie_nonswap*.root";
32  std::string nSwap = "/pnfs/nova/persistent/production/concat/R17-03-01-prod3reco.m/fd/sumdecaf/nue2017_numu_uncontained/genie/prod_sumdecaf_R17-03-01-prod3reco.m_fd_rock+cosmic-overlay_genie_fluxswap*.root";
33  SpectrumLoader lNonS(nNonS);
34  SpectrumLoader lSwap(nSwap);
35 
38 
40  PredictionNoExtrap pred(lNonS,lSwap,"AnaBin",Binning::Simple(32,0,32),
42  kNoShift,wei);
43 
44  lNonS.Go();
45  lSwap.Go();
46 
47  TFile* outFile = new TFile("fdrock_nue2017.root","RECREATE");
48  outFile->cd();
49 
50  pred.SaveTo(outFile, "pred_FDRock");
51 
52  outFile->Close();
53 }
54 
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
const Var kPPFXFluxCVWgt
Definition: PPFXWeights.h:16
void SetSpillCut(const SpillCut &cut)
TFile * outFile
Definition: PlotXSec.C:135
#define pot
void make_rockpred_2017()
virtual void Go() override
Load all the registered spectra.
virtual void SaveTo(TDirectory *dir, const std::string &name) const override
const SystShifts kNoShift
Definition: SystShifts.cxx:22
const Var kNue2017AnaBinMergedPeripheral([](const caf::SRProxy *sr){int anaBin=kNue2017AnaBin(sr);anaBin=anaBin > 27?29:anaBin;return anaBin;})
Definition: NueCuts2017.h:319
Collaborates with Spectrum and OscillatableSpectrum to fill spectra from CAF files.
const SpillCut kStandardSpillCuts
Apply this unless you&#39;re doing something special.
Definition: SpillCuts.h:49
Prediction that just uses FD MC, with no extrapolation.
const Var kXSecCVWgt2017
Definition: XsecTunes.h:36
static Binning Simple(int n, double lo, double hi, const std::vector< std::string > &labels={})
Definition: Binning.cxx:107
const Cut kNue2017FDAllSamples
Our FD selection including all samples, for making predictions, etc.
Definition: NueCuts2017.h:155
enum BeamMode string