GENIEReweightTable.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \brief Store +/-1,2sigma shifts for all GENIE reweighting systematics
3 /// \author Christopher Backhouse - bckhouse@caltech.edu
4 ////////////////////////////////////////////////////////////////////////
5 
7 
8 namespace rwgt
9 {
10  void GENIEReweightTable::SetWeights(unsigned int i,
11  double m2, double m1,
12  double p1, double p2)
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  }
20 
21  fMinus2Sigma[i] = m2;
22  fMinus1Sigma[i] = m1;
23  fPlus1Sigma[i] = p1;
24  fPlus2Sigma[i] = p2;
25  }
26 }
std::vector< double > fMinus2Sigma
void SetWeights(unsigned int i, double m2, double m1, double p1, double p2)
std::vector< double > fPlus2Sigma
Use NuReweight to compute +/-1,2sigma shifts for all systematics.
Definition: FillTruth.h:18
std::vector< double > fPlus1Sigma
static constexpr Double_t m2
Definition: Munits.h:145
std::vector< double > fMinus1Sigma