GReWeightDISNuclMod.cxx
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*
3  Copyright (c) 2003-2017, GENIE Neutrino MC Generator Collaboration
4  For the full text of the license visit http://copyright.genie-mc.org
5  or see $GENIE/LICENSE
6 
7  Authors: Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
8  University of Liverpool & STFC Rutherford Appleton Lab
9 
10  For the class documentation see the corresponding header file.
11 
12  Important revisions after version 2.0.0 :
13  @ Apr 27, 2010 - CA
14  First included in v2.7.1.
15 
16 */
17 //____________________________________________________________________________
18 
19 #include "Conventions/Controls.h"
20 #include "EVGCore/EventRecord.h"
21 #include "Messenger/Messenger.h"
22 #include "PDG/PDGCodes.h"
24 
25 using namespace genie;
26 using namespace genie::rew;
27 
28 //_______________________________________________________________________________________
30 GReWeightI()
31 {
32  this->Init();
33 }
34 //_______________________________________________________________________________________
36 {
37 
38 }
39 //_______________________________________________________________________________________
41 {
42  switch(syst) {
44  return true;
45  break;
46  default:
47  return false;
48  break;
49  }
50  return false;
51 }
52 //_______________________________________________________________________________________
53 void GReWeightDISNuclMod::SetSystematic(GSyst_t syst, double twk_dial)
54 {
55  switch(syst) {
57  fNuclModTwkDial = twk_dial;
58  break;
59  default:
60  break;
61  }
62 }
63 //_______________________________________________________________________________________
65 {
66  fNuclModTwkDial = 0.;
67 
68  this->Reconfigure();
69 }
70 //_______________________________________________________________________________________
72 {
73 
74 }
75 //_______________________________________________________________________________________
76 double GReWeightDISNuclMod::CalcWeight(const EventRecord & /*event*/)
77 {
78  return 1.;
79 }
80 //_______________________________________________________________________________________
82 {
83  fNuclModTwkDial = 0.;
84 
85 }
86 //_______________________________________________________________________________________
void SetSystematic(GSyst_t syst, double val)
update the value for the specified nuisance param
#include "Numerical/GSFunc.h"
Definition: AlgCmp.h:26
tweak DIS nuclear modification (shadowing, anti-shadowing, EMC)
Definition: GSyst.h:96
bool IsHandled(GSyst_t syst)
does the current weight calculator handle the input nuisance param?
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 CalcWeight(const EventRecord &event)
calculate a weight for the input event using the current nuisance param values
void Reconfigure(void)
propagate updated nuisance parameter values to actual MC, etc
void Reset(void)
set all nuisance parameters to default values
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils...
GENIE event reweighting engine ABC.
Definition: GReWeightI.h:31