GReWeightNonResonanceBkg.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::rew::GReWeightNonResonanceBkg
5 
6 \brief Reweighting non-resonance background level.
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 Aug 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_REWEIGHT_NON_RES_BKG_H_
23 #define _G_REWEIGHT_NON_RES_BKG_H_
24 
25 #include <map>
26 
27 #include "ReWeight/GReWeightI.h"
28 
29 using std::map;
30 
31 namespace genie {
32 namespace rew {
33 
35  {
36  public:
39 
40  // implement the GReWeightI interface
41  bool IsHandled (GSyst_t syst);
42  void SetSystematic (GSyst_t syst, double val);
43  void Reset (void);
44  void Reconfigure (void);
45  double CalcWeight (const EventRecord & event);
46 
47  // various config options
48  void SetWminCut (double W ) { fWmin = W; }
49 
50  private:
51 
52  void Init (void);
53 
54  double fWmin; ///< W_{min} cut. Reweight only events with W < W_{min}
55 
56  map<GSyst_t, double> fRTwkDial;
57  map<GSyst_t, double> fRDef;
58  map<GSyst_t, double> fRCurr;
59  };
60 
61 } // rew namespace
62 } // genie namespace
63 
64 #endif
65 
double CalcWeight(const EventRecord &event)
calculate a weight for the input event using the current nuisance param values
void Reset(void)
set all nuisance parameters to default values
#include "Numerical/GSFunc.h"
Definition: AlgCmp.h:26
void Reconfigure(void)
propagate updated nuisance parameter values to actual MC, etc
An enumeration of systematic parameters.
Generated Event Record. It is a GHepRecord object that can accept / be visited by EventRecordVisitorI...
Definition: EventRecord.h:38
double fWmin
W_{min} cut. Reweight only events with W < W_{min}.
bool IsHandled(GSyst_t syst)
does the current weight calculator handle the input nuisance param?
Event finding and building.
void SetSystematic(GSyst_t syst, double val)
update the value for the specified nuisance param
Reweighting non-resonance background level.
GENIE event reweighting engine ABC.
Definition: GReWeightI.h:31