43 using namespace genie;
107 fMaCurr = TMath::Max(0., fMaCurr );
108 fR0Curr = TMath::Max(0., fR0Curr );
125 if(!is_coh)
return 1.;
130 if(!tweaked)
return 1.0;
134 if(is_cc && !
fRewCC)
return 1.;
135 if(is_nc && !
fRewNC)
return 1.;
145 double old_xsec =
event.DiffXSec();
146 double old_weight =
event.Weight();
148 double new_weight = old_weight * (new_xsec/old_xsec);
157 AlgId id(
"genie::ReinSehgalCOHPiPXSec",
"Default");
bool fRewNuebar
reweight nu_e_bar?
virtual const Registry & GetConfig(void) const
Get configuration registry.
Cross Section Calculation Interface.
bool IsWeakCC(void) const
#include "Numerical/GSFunc.h"
double CalcWeight(const EventRecord &event)
calculate a weight for the input event using the current nuisance param values
Kinematics * KinePtr(void) const
virtual double XSec(const Interaction *i, KinePhaseSpace_t k=kPSfE) const =0
Compute the cross section for the input interaction.
void SetSystematic(GSyst_t syst, double val)
update the value for the specified nuisance param
void Reset(void)
set all nuisance parameters to default values
Algorithm abstract base class.
RgDbl GetDouble(RgKey key) const
bool fRewNue
reweight nu_e?
double OneSigmaErr(GSyst_t syst, int sign=0) const
XSecAlgorithmI * fXSecModel
Summary information for an interaction.
void UseSelectedKinematics(void)
bool IsHandled(GSyst_t syst)
does the current weight calculator handle the input nuisance param?
bool IsWeakNC(void) const
virtual void Configure(const Registry &config)
Configure the algorithm.
static const double kASmallNum
tweak R0 for COH pion production
An enumeration of systematic parameters.
void AdoptSubstructure(void)
Algorithm * AdoptAlgorithm(const AlgId &algid) const
Generated Event Record. It is a GHepRecord object that can accept / be visited by EventRecordVisitorI...
Algorithm ID (algorithm name + configuration set name)
bool fRewNumubar
reweight nu_mu_bar?
Registry * fXSecModelConfig
static AlgFactory * Instance()
string fMaPath
M_{A} path in config Registry.
A registry. Provides the container for algorithm configuration parameters.
const InitialState & InitState(void) const
tweak Ma for COH pion production
const ProcessInfo & ProcInfo(void) const
static GSystUncertainty * Instance(void)
string fR0Path
R_{0} path in config Registry.
void ClearRunningValues(void)
void Reconfigure(void)
propagate updated nuisance parameter values to actual MC, etc
The GENIE Algorithm Factory.
void Set(RgIMapPair entry)
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils...
Event finding and building.
bool fRewNumu
reweight nu_mu?
bool IsCoherent(void) const