Public Member Functions | Protected Attributes | List of all members
rwgt::GENIEReweight Class Reference

#include <GENIEReweight.h>

Inheritance diagram for rwgt::GENIEReweight:
rwgt::NuReweight

Public Member Functions

 GENIEReweight ()
 <constructor More...
 
 ~GENIEReweight ()
 Set the nominal values for the reweight parameters. More...
 
void AddReweightValue (ReweightLabel_t rLabel, double value)
 Change a reweight parameter. If it hasn't been added yet add it. More...
 
void ChangeParameterValue (ReweightLabel_t rLabel, double value)
 Configure the weight calculators. More...
 
double NominalParameterValue (ReweightLabel_t rLabel)
 Return the configured value of the given parameter. More...
 
double ReweightParameterValue (ReweightLabel_t rLabel)
 Add reweight parameters to the list. More...
 
genie::rew::GReWeight * WeightCalculator ()
 
void Configure ()
 Reconfigure the weight calculators. More...
 
void Reconfigure ()
 Simple Configuration functions for configuring a single weight calculator. More...
 
void ReweightNCEL (double ma, double eta)
 Simple Configurtion of the CCQE axial weight calculator. More...
 
void ReweightQEMA (double ma)
 Simple Configuration of the CCQE vector weight calculator. More...
 
void ReweightQEVec (double mv)
 
void ReweightQEZExp (double norm, double a1, double a2, double a3, double a4)
 Simple Configuration of the CC Resonance weight calculator. More...
 
void ReweightResGanged (double ma, double mv=0.0)
 Simple Configuration of the Coherant weight calculator. More...
 
void ReweightCCRes (double ma, double mv=0.0)
 Simple Configurtion of the NC Resonance weight calculator. More...
 
void ReweightNCRes (double ma, double mv=0.0)
 Simple Configuration of the NC and CC Resonance weight calculator with the axial mass parameter for NC/CC ganged together. More...
 
void ReweightCoh (double ma, double r0)
 Simple Configuration of the Non-Resonance Background weight calculator. More...
 
void ReweightNonResRvp1pi (double sigma)
 Simple Configuration of the Non-Resonance Background weight calculator. More...
 
void ReweightNonResRvbarp1pi (double sigma)
 Simple Configuration of the Non-Resonance Background weight calculator. Here it is being configured for v+p and vbar + n (2 pi) type interactions. More...
 
void ReweightNonResRvp2pi (double sigma)
 Simple Configuration of the Non-Resonance Background weight calculator. More...
 
void ReweightNonResRvbarp2pi (double sigma)
 Simple Configuration of the Resonance decay model weight calculator. More...
 
void ReweightResDecay (double gamma, double eta, double theta)
 Simple Configuration of the Total NC cross section. More...
 
void ReweightNC (double norm)
 Simple Configuration of the DIS FF model weight calculator. More...
 
void ReweightDIS (double aht, double bht, double cv1u, double cv2u)
 Simple Configuration of the DIS nuclear model. More...
 
void ReweightDISnucl (bool mode)
 Simple Configuration of the DIS AGKY hadronization model. More...
 
void ReweightAGKY (double xF, double pT)
 Simple Configuration of the Intranuke Nuclear model. More...
 
void ReweightFormZone (double sigma)
 Simple Configuration of the Fermigas model reweight calculator. More...
 
void ReweightFGM (double kF, double sf)
 End of Simple Reweight Configurations. More...
 
void ReweightIntraNuke (ReweightLabel_t name, double sigma)
 Simple Configuration of the Formation Zone reweight calculator. More...
 
void ReweightIntraNuke (int name, double sigma)
 
void MaQEshape ()
 
void MaQErate ()
 
void CCRESshape ()
 
void CCRESrate ()
 
void NCRESshape ()
 
void NCRESrate ()
 
void DIS_BYshape ()
 
void DIS_BYrate ()
 
void UseSigmaDef ()
 
void UseStandardDef ()
 
void SetNominalValues ()
 Return the nominal value for the given parameter. More...
 
double CalculateSigma (ReweightLabel_t label, double value)
 Calculate the weights. More...
 
double CalculateWeight (const genie::EventRecord &evr) const
 
void ConfigureNCEL ()
 Configure the MaQE weight calculator. More...
 
void ConfigureQEMA ()
 Configure the QE vector FF weight calculator. More...
 
void ConfigureQEVec ()
 Configure the CCRES calculator. More...
 
void ConfigureCCRes ()
 Configure the NCRES calculator. More...
 
void ConfigureNCRes ()
 Configure the ResBkg (kno) weight calculator. More...
 
void ConfigureResBkg ()
 Configure the ResDecay weight calculator. More...
 
void ConfgureResDecay ()
 Configure the NC weight calculator. More...
 
void ConfigureNC ()
 Configure the DIS (Bodek-Yang) weight calculator. More...
 
void ConfigureDIS ()
 Configure the Coherant model weight calculator. More...
 
void ConfigureCoh ()
 Configure the hadronization (AGKY) weight calculator. More...
 
void ConfigureAGKY ()
 Configure the DIS nuclear model weight calculator. More...
 
void ConfigureDISNucMod ()
 Configure the FG model weight calculator. More...
 
void ConfigureFGM ()
 Configure the Formation Zone weight calculator. More...
 
void ConfigureFZone ()
 Configure the intranuke weight calculator. More...
 
void ConfigureINuke ()
 configure the weight parameters being used More...
 
void ConfigureParameters ()
 

Protected Attributes

bool fReweightNCEL
 
bool fReweightQEMA
 
bool fReweightQEVec
 
bool fReweightCCRes
 
bool fReweightNCRes
 
bool fReweightResBkg
 
bool fReweightResDecay
 
bool fReweightNC
 
bool fReweightDIS
 
bool fReweightCoh
 
bool fReweightAGKY
 
bool fReweightDISNucMod
 
bool fReweightFGM
 
bool fReweightFZone
 
bool fReweightINuke
 
bool fReweightZexp
 
bool fReweightMEC
 
bool fMaQEshape
 
bool fMaCCResShape
 
bool fMaNCResShape
 
bool fDISshape
 
bool fUseSigmaDef
 
std::vector< int > fReWgtParameterName
 
std::vector< double > fReWgtParameterValue
 
std::map< int, double > fNominalParameters
 
genie::rew::GReWeight * fWcalc
 

Detailed Description

Definition at line 26 of file GENIEReweight.h.

Constructor & Destructor Documentation

rwgt::GENIEReweight::GENIEReweight ( )

<constructor

destructor

Definition at line 130 of file GENIEReweight.cxx.

rwgt::GENIEReweight::~GENIEReweight ( )

Set the nominal values for the reweight parameters.

Definition at line 161 of file GENIEReweight.cxx.

Member Function Documentation

void rwgt::GENIEReweight::AddReweightValue ( ReweightLabel_t  rLabel,
double  value 
)

Change a reweight parameter. If it hasn't been added yet add it.

Definition at line 325 of file GENIEReweight.cxx.

double rwgt::GENIEReweight::CalculateSigma ( ReweightLabel_t  label,
double  value 
)

Calculate the weights.

Used in parameter value mode (instead of parameter sigma mode) Given a user passed parameter value calculate the corresponding sigma value that needs to be passed to genie to give the same weight.

Definition at line 901 of file GENIEReweight.cxx.

double rwgt::GENIEReweight::CalculateWeight ( const genie::EventRecord evr) const

Definition at line 926 of file GENIEReweight.cxx.

930  {
931  //genie::EventRecord evr = this->RetrieveGHEP(truth, gtruth);
void rwgt::GENIEReweight::CCRESrate ( )
inline

Definition at line 80 of file GENIEReweight.h.

80 {fMaCCResShape=false;}
void rwgt::GENIEReweight::CCRESshape ( )
inline

Definition at line 79 of file GENIEReweight.h.

79 {fMaCCResShape=true;}
void rwgt::GENIEReweight::ChangeParameterValue ( ReweightLabel_t  rLabel,
double  value 
)

Configure the weight calculators.

Definition at line 334 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfgureResDecay ( )

Configure the NC weight calculator.

Definition at line 822 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::Configure ( void  )

Reconfigure the weight calculators.

Definition at line 349 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureAGKY ( )

Configure the DIS nuclear model weight calculator.

Definition at line 854 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureCCRes ( )

Configure the NCRES calculator.

Definition at line 788 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureCoh ( )

Configure the hadronization (AGKY) weight calculator.

Definition at line 848 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureDIS ( )

Configure the Coherant model weight calculator.

Definition at line 834 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureDISNucMod ( )

Configure the FG model weight calculator.

Definition at line 860 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureFGM ( )

Configure the Formation Zone weight calculator.

Definition at line 866 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureFZone ( )

Configure the intranuke weight calculator.

Definition at line 872 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureINuke ( )

configure the weight parameters being used

Definition at line 878 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureNC ( )

Configure the DIS (Bodek-Yang) weight calculator.

Definition at line 828 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureNCEL ( )

Configure the MaQE weight calculator.

Definition at line 757 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureNCRes ( )

Configure the ResBkg (kno) weight calculator.

Definition at line 802 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureParameters ( )

Definition at line 884 of file GENIEReweight.cxx.

888  {
889  GSystSet & syst = fWcalc->Systematics();
890  for(unsigned int i = 0; i < fReWgtParameterName.size(); i++) {
891  LOG_INFO("GENIEReweight") << "Configuring GENIEReweight parameter: " << genie::rew::GSyst::AsString(genie::rew::EGSyst(fReWgtParameterName[i])) << " with value: " << fReWgtParameterValue[i];
892  if(fUseSigmaDef) {
893  syst.Set( (GSyst_t)fReWgtParameterName[i], fReWgtParameterValue[i]);
894  }
895  else {
897  syst.Set( (GSyst_t)fReWgtParameterName[i], parameter);
enum rwgt::EReweightLabel ReweightLabel_t
std::vector< int > fReWgtParameterName
static Argument * parameter
genie::rew::GReWeight * fWcalc
std::vector< double > fReWgtParameterValue
double CalculateSigma(ReweightLabel_t label, double value)
Calculate the weights.
const char * AsString(Resonance_t res)
resonance id -> string
#define LOG_INFO(stream)
Definition: Messenger.h:143
void rwgt::GENIEReweight::ConfigureQEMA ( )

Configure the QE vector FF weight calculator.

Definition at line 763 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureQEVec ( )

Configure the CCRES calculator.

Definition at line 782 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ConfigureResBkg ( )

Configure the ResDecay weight calculator.

Definition at line 816 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::DIS_BYrate ( )
inline

Definition at line 86 of file GENIEReweight.h.

86 {fDISshape=false;}
void rwgt::GENIEReweight::DIS_BYshape ( )
inline

Definition at line 85 of file GENIEReweight.h.

85 {fDISshape=true;}
void rwgt::GENIEReweight::MaQErate ( )
inline

Definition at line 77 of file GENIEReweight.h.

77 {fMaQEshape=false;}
void rwgt::GENIEReweight::MaQEshape ( )
inline

Definition at line 76 of file GENIEReweight.h.

76 {fMaQEshape=true;}
void rwgt::GENIEReweight::NCRESrate ( )
inline

Definition at line 83 of file GENIEReweight.h.

83 {fMaNCResShape=false;}
void rwgt::GENIEReweight::NCRESshape ( )
inline

Definition at line 82 of file GENIEReweight.h.

82 {fMaNCResShape=true;}
double rwgt::GENIEReweight::NominalParameterValue ( ReweightLabel_t  rLabel)

Return the configured value of the given parameter.

Definition at line 292 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::Reconfigure ( )

Simple Configuration functions for configuring a single weight calculator.

Simple Configuraiton of the NC elastic weight calculator

Definition at line 522 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightAGKY ( double  xF,
double  pT 
)

Simple Configuration of the Intranuke Nuclear model.

Definition at line 702 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightCCRes ( double  ma,
double  mv = 0.0 
)

Simple Configurtion of the NC Resonance weight calculator.

Definition at line 567 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightCoh ( double  ma,
double  r0 
)

Simple Configuration of the Non-Resonance Background weight calculator.

Definition at line 603 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightDIS ( double  aht,
double  bht,
double  cv1u,
double  cv2u 
)

Simple Configuration of the DIS nuclear model.

Definition at line 676 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightDISnucl ( bool  mode)

Simple Configuration of the DIS AGKY hadronization model.

Definition at line 695 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightFGM ( double  kF,
double  sf 
)

End of Simple Reweight Configurations.

Private Member functions to configure individual weight calculators. Configure the NCEL weight calculator

Definition at line 748 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightFormZone ( double  sigma)

Simple Configuration of the Fermigas model reweight calculator.

Definition at line 741 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightIntraNuke ( ReweightLabel_t  name,
double  sigma 
)

Simple Configuration of the Formation Zone reweight calculator.

Definition at line 714 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightIntraNuke ( int  name,
double  sigma 
)
void rwgt::GENIEReweight::ReweightNC ( double  norm)

Simple Configuration of the DIS FF model weight calculator.

Definition at line 669 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightNCEL ( double  ma,
double  eta 
)

Simple Configurtion of the CCQE axial weight calculator.

Definition at line 529 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightNCRes ( double  ma,
double  mv = 0.0 
)

Simple Configuration of the NC and CC Resonance weight calculator with the axial mass parameter for NC/CC ganged together.

Definition at line 578 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightNonResRvbarp1pi ( double  sigma)

Simple Configuration of the Non-Resonance Background weight calculator. Here it is being configured for v+p and vbar + n (2 pi) type interactions.

Definition at line 623 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightNonResRvbarp2pi ( double  sigma)

Simple Configuration of the Resonance decay model weight calculator.

Definition at line 644 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightNonResRvp1pi ( double  sigma)

Simple Configuration of the Non-Resonance Background weight calculator.

Definition at line 612 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightNonResRvp2pi ( double  sigma)

Simple Configuration of the Non-Resonance Background weight calculator.

Definition at line 633 of file GENIEReweight.cxx.

double rwgt::GENIEReweight::ReweightParameterValue ( ReweightLabel_t  rLabel)

Add reweight parameters to the list.

Definition at line 299 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightQEMA ( double  ma)

Simple Configuration of the CCQE vector weight calculator.

Definition at line 541 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightQEVec ( double  mv)

Definition at line 549 of file GENIEReweight.cxx.

551  {
552  LOG_INFO("GENIEReweight") << "Configuring GENIEReweight for QE Vector Mass Reweighting";
void AddReweightValue(ReweightLabel_t rLabel, double value)
Change a reweight parameter. If it hasn&#39;t been added yet add it.
#define LOG_INFO(stream)
Definition: Messenger.h:143
tweak elastic nucleon form factors (BBA/default -> dipole) - shape only effect of dsigma(CCQE)/dQ2 ...
void rwgt::GENIEReweight::ReweightQEZExp ( double  norm,
double  a1,
double  a2,
double  a3,
double  a4 
)

Simple Configuration of the CC Resonance weight calculator.

Definition at line 555 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightResDecay ( double  gamma,
double  eta,
double  theta 
)

Simple Configuration of the Total NC cross section.

Definition at line 654 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::ReweightResGanged ( double  ma,
double  mv = 0.0 
)

Simple Configuration of the Coherant weight calculator.

Definition at line 589 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::SetNominalValues ( )

Return the nominal value for the given parameter.

Definition at line 166 of file GENIEReweight.cxx.

void rwgt::GENIEReweight::UseSigmaDef ( )
inline

Definition at line 88 of file GENIEReweight.h.

88 {fUseSigmaDef=true;}
void rwgt::GENIEReweight::UseStandardDef ( )
inline

Definition at line 89 of file GENIEReweight.h.

89 {fUseSigmaDef=false;}
genie::rew::GReWeight* rwgt::GENIEReweight::WeightCalculator ( )
inline

Definition at line 40 of file GENIEReweight.h.

40 {return fWcalc;}
genie::rew::GReWeight * fWcalc

Member Data Documentation

bool rwgt::GENIEReweight::fDISshape
protected

Definition at line 141 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fMaCCResShape
protected

Definition at line 139 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fMaNCResShape
protected

Definition at line 140 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fMaQEshape
protected

Definition at line 138 of file GENIEReweight.h.

std::map<int, double> rwgt::GENIEReweight::fNominalParameters
protected

Definition at line 148 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightAGKY
protected

Definition at line 130 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightCCRes
protected

Definition at line 123 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightCoh
protected

Definition at line 129 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightDIS
protected

Definition at line 128 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightDISNucMod
protected

Definition at line 131 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightFGM
protected

Definition at line 132 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightFZone
protected

Definition at line 133 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightINuke
protected

Definition at line 134 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightMEC
protected

Definition at line 136 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightNC
protected

Definition at line 127 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightNCEL
protected

Definition at line 120 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightNCRes
protected

Definition at line 124 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightQEMA
protected

Definition at line 121 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightQEVec
protected

Definition at line 122 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightResBkg
protected

Definition at line 125 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightResDecay
protected

Definition at line 126 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fReweightZexp
protected

Definition at line 135 of file GENIEReweight.h.

std::vector<int> rwgt::GENIEReweight::fReWgtParameterName
protected

Definition at line 145 of file GENIEReweight.h.

std::vector<double> rwgt::GENIEReweight::fReWgtParameterValue
protected

Definition at line 146 of file GENIEReweight.h.

bool rwgt::GENIEReweight::fUseSigmaDef
protected

Definition at line 143 of file GENIEReweight.h.

genie::rew::GReWeight* rwgt::GENIEReweight::fWcalc
protected

Definition at line 150 of file GENIEReweight.h.


The documentation for this class was generated from the following files: