PredictionNoExtrap.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "TDirectory.h"
4 #include "TObjString.h"
5 
9 
11 
12 namespace ana
13 {
14  class Loaders;
15 
16  /// Prediction that just uses FD MC, with no extrapolation
18  {
19  public:
20  PredictionNoExtrap(std::unique_ptr<TrivialExtrap>&& extrap);
21 
23  const std::string& label,
24  const Binning& bins,
25  const Var& var,
26  const Cut& cut,
27  const SystShifts& shift = kNoShift,
28  const Var& wei = kUnweighted);
29 
30  PredictionNoExtrap(Loaders& loaders,
31  const HistAxis& axis,
32  const Cut& cut,
33  const SystShifts& shift = kNoShift,
34  const Var& wei = kUnweighted);
35 
38  SpectrumLoaderBase& loaderTau,
39  const std::string& label,
40  const Binning& bins,
41  const Var& var,
42  const Cut& cut,
43  const SystShifts& shift = kNoShift,
44  const Var& wei = kUnweighted);
45 
47  SpectrumLoaderBase& loaderSwap,
48  SpectrumLoaderBase& loaderTau,
49  const HistAxis& axis,
50  const Cut& cut,
51  const SystShifts& shift = kNoShift,
52  const Var& wei = kUnweighted);
53 
55  SpectrumLoaderBase& loaderSwap,
56  const std::string& label,
57  const Binning& bins,
58  const Var& var,
59  const Cut& cut,
60  const SystShifts& shift = kNoShift,
61  const Var& wei = kUnweighted);
62 
63  virtual ~PredictionNoExtrap();
64 
65  static std::unique_ptr<PredictionNoExtrap> LoadFrom(TDirectory* dir, const std::string& name);
66  virtual void SaveTo(TDirectory* dir, const std::string& name) const override;
67 
68  };
69 
70 }
const XML_Char * name
Definition: expat.h:151
Represent the binning of a Spectrum&#39;s x-axis.
Definition: Binning.h:16
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
Simple record of shifts applied to systematic parameters.
Definition: SystShifts.h:20
Collection of SpectrumLoaders for many configurations.
Definition: Loaders.h:23
const char * label
PredictionNoExtrap(std::unique_ptr< TrivialExtrap > &&extrap)
loader
Definition: demo0.py:10
virtual void SaveTo(TDirectory *dir, const std::string &name) const override
const SystShifts kNoShift
Definition: SystShifts.cxx:21
Base class for the various types of spectrum loader.
const Binning bins
Definition: NumuCC_CPiBin.h:8
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154
const Cut cut
Definition: exporter_fd.C:30
TDirectory * dir
Definition: macro.C:5
std::vector< Loaders * > loaders
Definition: syst_header.h:386
Prediction that just uses FD MC, with no extrapolation.
Take the output of an extrapolation and oscillate it as required.
loaderSwap
Definition: demo4.py:9
static std::unique_ptr< PredictionNoExtrap > LoadFrom(TDirectory *dir, const std::string &name)
const Var kUnweighted
The simplest possible Var, always 1. Used as a default weight.
Definition: Var.h:96