EnergySysts2018.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "CAFAna/Core/ISyst.h"
5 
6 namespace ana
7 {
8  //----------------------------------------------------------------------
10  {
11  public:
12  NeutronVisEScaleSyst2018(bool useProngs, double threshE=0.040, double sf=3.6, double prob=0.33)
13  : EvtRNGSyst(std::string("NeutronEvis") + (useProngs ? "Prongs" : "Primaries") + "Syst2018", "Neutron visible energy systematic 2018"),
14  fUseProngs(useProngs), fThreshE(threshE), fScale(sf), fProb(prob)
15  {}
16 
17  void Shift(double sigma, caf::SRProxy* sr, double& weight) const override;
18 
19  private:
20  bool fUseProngs;
21  double fThreshE;
22  double fScale;
23  double fProb;
24  };
25 
28 }
NeutronVisEScaleSyst2018(bool useProngs, double threshE=0.040, double sf=3.6, double prob=0.33)
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
const Var weight
void Shift(double sigma, caf::SRProxy *sr, double &weight) const override
Perform the systematic shift.
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
const NeutronVisEScaleSyst2018 kNeutronVisEScalePrimariesSyst2018(false)
const NeutronVisEScaleSyst2018 kNeutronVisEScaleProngsSyst2018(true)
caf::StandardRecord * sr
double sigma(TH1F *hist, double percentile)
enum BeamMode string