WrongSignNueSyst.cxx
Go to the documentation of this file.
2 
4 
5 namespace ana
6 {
8 
9  const NCtest kNCtest;
10 
12 
14 
15  // --------------------------------------------------
17  Shift(double sigma, caf::SRProxy* sr, double& weight) const
18  {
19  if(sr->mc.nnu == 0) return;
20  if(sr->mc.nu[0].iscc && sr->mc.nu[0].pdg == 12) weight *= 1+0.2*sigma;
21  }
22 
23  // --------------------------------------------------
24  void NCtest::Shift(double sigma, caf::SRProxy* sr, double& weight) const
25  {
26  if(sr->mc.nnu == 0) return;
27  if(!sr->mc.nu[0].iscc && sr->mc.nu[0].pdg <=0 ) weight *= 1+0.1*sigma;
28  }
29 
30  // --------------------------------------------------
31  void Nuetest::Shift(double sigma, caf::SRProxy* sr, double& weight) const
32  {
33  if(sr->mc.nnu == 0) return;
34  if(sr->mc.nu[0].iscc && sr->mc.nu[0].pdg == -12 ) weight *= 1+0.1*sigma;
35  }
36 
37  // --------------------------------------------------
38  void Numutest::Shift(double sigma, caf::SRProxy* sr, double& weight) const
39  {
40  if(sr->mc.nnu == 0) return;
41  if(sr->mc.nu[0].iscc && sr->mc.nu[0].pdg == -14 ) weight *= 1+0.1*sigma;
42  }
43 }
Cuts and Vars for the 2020 FD DiF Study.
Definition: vars.h:6
const Var weight
Proxy for caf::StandardRecord.
Definition: SRProxy.h:2126
caf::Proxy< std::vector< caf::SRNeutrino > > nu
Definition: SRProxy.h:618
caf::Proxy< short int > nnu
Definition: SRProxy.h:617
void Shift(double sigma, caf::SRProxy *sr, double &weight) const override
Perform the systematic shift.
const WrongSignContamination kWrongSignContamination
const NCtest kNCtest
caf::StandardRecord * sr
void Shift(double sigma, caf::SRProxy *sr, double &weight) const override
Perform the systematic shift.
void Shift(double sigma, caf::SRProxy *sr, double &weight) const override
Perform the systematic shift.
double sigma(TH1F *hist, double percentile)
caf::Proxy< caf::SRTruthBranch > mc
Definition: SRProxy.h:2138
void Shift(double sigma, caf::SRProxy *sr, double &weight) const override
Perform the systematic shift.
const Numutest kNumutest
const Nuetest kNuetest