39 using namespace genie;
58 fWghtCalc.insert(map<string, GReWeightI*>::value_type(name,wcalc));
64 if(iter !=
fWghtCalc.end())
return iter->second;
86 for( ; parm_iter != svec.end(); ++parm_iter) {
96 LOG(
"ReW",
pDEBUG) <<
"Done reconfiguring";
109 <<
"Calculator: " << it->first <<
" => wght = " <<
w;
131 int vec_size = syst_vec.size();
133 LOG(
"ReW",
pNOTICE) <<
"Current set of systematic params:";
134 for(
int i = 0 ;
i < vec_size ;
i ++){
#include "Numerical/GSFunc.h"
void Reconfigure(void)
reconfigure weight calculators with new params
GReWeightI * WghtCalc(string name)
access a weight calculator by name
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
An enumeration of systematic parameters.
map< string, GReWeightI * > fWghtCalc
concrete weight calculators
virtual void Reconfigure(void)=0
propagate updated nuisance parameter values to actual MC, etc
virtual double CalcWeight(const genie::EventRecord &event)=0
calculate a weight for the input event using the current nuisance param values
void AdoptWghtCalc(string name, GReWeightI *wcalc)
add concrete weight calculator, transfers ownership
GSystSet fSystSet
set of enabled nuisance parameters
const GSystInfo * Info(GSyst_t syst) const
virtual void SetSystematic(GSyst_t syst, double val)=0
update the value for the specified nuisance param
Generated Event Record. It is a GHepRecord object that can accept / be visited by EventRecordVisitorI...
static RunOpt * Instance(void)
static string AsString(GSyst_t syst)
double CalcWeight(const genie::EventRecord &event)
calculate weight for input event
GSystSet & Systematics(void)
set of enabled systematic params & values
vector< genie::rew::GSyst_t > AllIncluded(void)
Set of systematics to be considered by the reweighting package.
void EnableBareXSecPreCalc(bool flag)
Event finding and building.
GENIE event reweighting engine ABC.