NueAcceptSysts.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "CAFAna/Core/ISyst.h"
5 #include "CAFAna/Core/Var.h"
7 
8 class TH1;
9 
10 namespace ana
11 {
12  /// FHC systs
13 
15  {
16  public:
17  NueAcceptSystBkg2018FHC() : ISyst("accept_bkg_FHC", "Acceptance Bkg FHC") {}
18 
19  void Shift(double sigma, caf::SRProxy* sr, double& weight) const override;
20  };
21 
23 
25  {
26  public:
27  NueAcceptSystSignalKin2018FHC() : ISyst("accept_signalkin_FHC_2018", "Acceptance ND to FD Kinematics Signal FHC 2018"), fWeightHistFHC() {}
28 
29  void Shift(double sigma, caf::SRProxy* sr, double& weight) const override;
30 
31  protected:
32  mutable TH1* fWeightHistFHC;
33  };
34 
36 
38  {
39  public:
40  NueAcceptSystSignalKin2020FHC(int extrap = ana::kExtrapEmpty, std::string shortName = "accept_signalkin_FHC_2020", std::string latexName = "Acceptance ND to FD Kinematics Signal FHC 2020") : ISyst(shortName, latexName), extrapVar(extrap), fWeightHistFHC() {}
41 
42  void Shift(double sigma, caf::SRProxy* sr, double& weight) const override;
43 
44  protected:
45  int extrapVar;
46  mutable TH1* fWeightHistFHC;
47  };
48 
51 
52 
53  /// RHC systs
55  {
56  public:
57  NueAcceptSystBkg2018RHC() : ISyst("accept_bkg_RHC", "Acceptance Bkg RHC") {}
58 
59  void Shift(double sigma, caf::SRProxy* sr, double& weight) const override;
60  };
61 
63 
65  {
66  public:
67  NueAcceptSystSignalKin2018RHC() : ISyst("accept_signalkin_RHC_2018", "Acceptance ND to FD Kinematics Signal RHC 2018"), fWeightHistRHC() {}
68 
69  void Shift(double sigma, caf::SRProxy* sr, double& weight) const override;
70 
71  protected:
72  mutable TH1* fWeightHistRHC;
73  };
74 
76 
78  {
79  public:
80  NueAcceptSystSignalKin2020RHC(int extrap = ana::kExtrapEmpty, std::string shortName = "accept_signalkin_RHC_2020", std::string latexName = "Acceptance ND to FD Kinematics Signal RHC 2020") : ISyst(shortName, latexName), extrapVar(extrap), fWeightHistRHC() {}
81 
82  void Shift(double sigma, caf::SRProxy* sr, double& weight) const override;
83 
84  protected:
85  int extrapVar;
86  mutable TH1* fWeightHistRHC;
87  };
88 
91 }
NueAcceptSystSignalKin2020RHC(int extrap=ana::kExtrapEmpty, std::string shortName="accept_signalkin_RHC_2020", std::string latexName="Acceptance ND to FD Kinematics Signal RHC 2020")
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
const NueAcceptSystSignalKin2018RHC kNueAcceptSystSignalKin2018RHC
const Var weight
NueAcceptSystSignalKin2020FHC(int extrap=ana::kExtrapEmpty, std::string shortName="accept_signalkin_FHC_2020", std::string latexName="Acceptance ND to FD Kinematics Signal FHC 2020")
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
void Shift(double sigma, caf::SRProxy *sr, double &weight) const override
FHC implementation.
const NueAcceptSystSignalKin2020FHC kNueAcceptSystSignalKin2020FHC
Encapsulate code to systematically shift a caf::SRProxy.
Definition: ISyst.h:14
const NueAcceptSystBkg2018RHC kNueAcceptSystBkg2018RHC
RHC.
const NueAcceptSystSignalKin2018FHC kNueAcceptSystSignalKin2018FHC
caf::StandardRecord * sr
const NueAcceptSystSignalKin2020FHC kNueAcceptSystSignalKinPtExtrap2020FHC(ana::kExtrapPt,"accept_signalkin_pTextrap_FHC_2020")
const NueAcceptSystBkg2018FHC kNueAcceptSystBkg2018FHC
FHC.
double sigma(TH1F *hist, double percentile)
string shortName
THUMBNAIL BLOCK: We need to make a thumbnail for each.
const NueAcceptSystSignalKin2020RHC kNueAcceptSystSignalKinPtExtrap2020RHC(ana::kExtrapPt,"accept_signalkin_pTextrap_RHC_2020")
enum BeamMode string
const NueAcceptSystSignalKin2020RHC kNueAcceptSystSignalKin2020RHC