GSystUncertainty.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::rew::GSystUncertainty
5 
6 \brief
7 
8 \author Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
9  University of Liverpool & STFC Rutherford Appleton Lab
10 
11  Jim Dobson <J.Dobson07 \at imperial.ac.uk>
12  Imperial College London
13 
14 \created Sep 1, 2009
15 
16 \cpright Copyright (c) 2003-2017, GENIE Neutrino MC Generator Collaboration
17  For the full text of the license visit http://copyright.genie-mc.org
18  or see $GENIE/LICENSE
19 */
20 //____________________________________________________________________________
21 
22 #ifndef _G_SYST_UNCERTAINTY_H_
23 #define _G_SYST_UNCERTAINTY_H_
24 
25 #include <map>
26 #include "ReWeight/GSyst.h"
27 
28 using std::map;
29 
30 namespace genie {
31 namespace rew {
32 
34 
35 public:
36  static GSystUncertainty * Instance (void);
37 
38  double OneSigmaErr (GSyst_t syst, int sign=0) const;
39  void SetUncertainty (GSyst_t syst, double plus_err, double minus_err);
40 
41 private:
42 
43  void SetDefaults(void);
44 
45  map<GSyst_t, double> fOneSigPlusErrMap; // + err
46  map<GSyst_t, double> fOneSigMnusErrMap; // - err
47 
51 
53 
54  struct Cleaner {
60  }
61  }
62  };
63  friend struct Cleaner;
64 };
65 
66 } // rew namespace
67 } // genie namespace
68 
69 #endif
70 
#include "Numerical/GSFunc.h"
Definition: AlgCmp.h:26
void SetUncertainty(GSyst_t syst, double plus_err, double minus_err)
map< GSyst_t, double > fOneSigPlusErrMap
double OneSigmaErr(GSyst_t syst, int sign=0) const
static GSystUncertainty * fInstance
An enumeration of systematic parameters.
int sign(double val)
Definition: UtilFunc.cxx:106
map< GSyst_t, double > fOneSigMnusErrMap
static GSystUncertainty * Instance(void)