CovMxSysts.h
Go to the documentation of this file.
1 #pragma once
3 
4 namespace ana {
5 
6  // --------------------------------------------------------------------------
7  class NumuSyst : public NuISyst {
8 
9  public:
11  std::map<int, std::pair<TH1*, TH1*> > shifts = {});
12  virtual void Shift(double sigma, caf::SRProxy* sr, double& weight) const override;
13  // virtual void SaveTo(TDirectory* dir) const;
14  static std::unique_ptr<NumuSyst> LoadFrom(TDirectory* dir);
15  };
16 
17  // --------------------------------------------------------------------------
18  class NueSyst : public NuISyst {
19 
20  public:
22  std::map<int, std::pair<TH1*, TH1*> > shifts = {});
23  virtual void Shift(double sigma, caf::SRProxy* sr, double& weight) const override;
24  // virtual void SaveTo(TDirectory* dir) const;
25  static std::unique_ptr<NueSyst> LoadFrom(TDirectory* dir);
26  };
27 
28 } // namespace ana
const XML_Char * name
Definition: expat.h:151
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
const Var weight
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
const char * label
static std::unique_ptr< NumuSyst > LoadFrom(TDirectory *dir)
LoadFrom implementation for NumuSyst.
Definition: CovMxSysts.cxx:77
caf::StandardRecord * sr
double sigma(TH1F *hist, double percentile)
TDirectory * dir
Definition: macro.C:5
virtual void Shift(double sigma, caf::SRProxy *sr, double &weight) const override
Implementation of standard ISyst::Shift function for NumuSyst.
Definition: CovMxSysts.cxx:33
NumuSyst(std::string name, std::string label, std::string sample_name="", std::map< int, std::pair< TH1 *, TH1 * > > shifts={})
NumuSyst basic constructor.
Definition: CovMxSysts.cxx:26
enum BeamMode string