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

Store +/-1,2sigma shifts for all GENIE reweighting systematics. More...

#include "/cvmfs/"

Public Member Functions

unsigned int NShifts () const
double Minus2Sigma (int i) const
double Minus1Sigma (int i) const
double Plus1Sigma (int i) const
double Plus2Sigma (int i) const
void SetWeights (unsigned int i, double m2, double m1, double p1, double p2)

Protected Attributes

std::vector< double > fMinus2Sigma
std::vector< double > fMinus1Sigma
std::vector< double > fPlus1Sigma
std::vector< double > fPlus2Sigma

Detailed Description

Store +/-1,2sigma shifts for all GENIE reweighting systematics.

Warning: fReweightCCQEMomDistroFGtoSF and fReweightTheta_Delta2Npi are not conventional systematics, but knobs varying from 0-1 between two alternatives. The mapping is -2, -1, 0, +1, +2 sigma -> 0.25, 0.5, 0, 0.75, 1.0

Definition at line 19 of file GENIEReweightTable.h.

Member Function Documentation

double rwgt::GENIEReweightTable::Minus1Sigma ( int  i) const
double rwgt::GENIEReweightTable::Minus2Sigma ( int  i) const
unsigned int rwgt::GENIEReweightTable::NShifts ( ) const

Definition at line 22 of file GENIEReweightTable.h.

References fMinus2Sigma.

Referenced by fnex::AnalysisSetupBase::FillGENIEWeightVars(), and caf::GenieReweightTable().

22 {return fMinus2Sigma.size();}
std::vector< double > fMinus2Sigma
double rwgt::GENIEReweightTable::Plus1Sigma ( int  i) const
double rwgt::GENIEReweightTable::Plus2Sigma ( int  i) const
void rwgt::GENIEReweightTable::SetWeights ( unsigned int  i,
double  m2,
double  m1,
double  p1,
double  p2 

Definition at line 10 of file GENIEReweightTable.cxx.

References fMinus1Sigma, fMinus2Sigma, fPlus1Sigma, fPlus2Sigma, MECModelEnuComparisons::i, Munits::m2, plot_validation_datamc::p1, and plot_validation_datamc::p2.

Referenced by Plus2Sigma(), and rwgt::MakeGENIEReweightTable::produce().

13  {
14  if(i >= fMinus2Sigma.size()){
15  fMinus2Sigma.resize(i+1, 1);
16  fMinus1Sigma.resize(i+1, 1);
17  fPlus1Sigma.resize(i+1, 1);
18  fPlus2Sigma.resize(i+1, 1);
19  }
21  fMinus2Sigma[i] = m2;
22  fMinus1Sigma[i] = m1;
23  fPlus1Sigma[i] = p1;
24  fPlus2Sigma[i] = p2;
25  }
std::vector< double > fMinus2Sigma
std::vector< double > fPlus2Sigma
std::vector< double > fPlus1Sigma
static constexpr Double_t m2
Definition: Munits.h:145
std::vector< double > fMinus1Sigma

Member Data Documentation

std::vector<double> rwgt::GENIEReweightTable::fMinus1Sigma

Definition at line 31 of file GENIEReweightTable.h.

Referenced by Minus1Sigma(), and SetWeights().

std::vector<double> rwgt::GENIEReweightTable::fMinus2Sigma

Definition at line 30 of file GENIEReweightTable.h.

Referenced by Minus2Sigma(), NShifts(), and SetWeights().

std::vector<double> rwgt::GENIEReweightTable::fPlus1Sigma

Definition at line 32 of file GENIEReweightTable.h.

Referenced by Plus1Sigma(), and SetWeights().

std::vector<double> rwgt::GENIEReweightTable::fPlus2Sigma

Definition at line 33 of file GENIEReweightTable.h.

Referenced by Plus2Sigma(), and SetWeights().

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