OtherReweighter.cpp
Go to the documentation of this file.
1 
2 #include "OtherReweighter.h"
3 #include <iostream>
4 
5 namespace NeutrinoFluxReweight{
6 
7  OtherReweighter::OtherReweighter(int iuniv, const ParameterTable& cv_pars, const ParameterTable& univ_pars):cvPars(cv_pars),univPars(univ_pars),iUniv(iuniv){
8 
9  // const boost::interprocess::flat_map<std::string, double>& dsig_table = univPars.getMap();
10  inel_A_scaling = univPars.getParameterValue("inel_A_scaling");
11 
12  }
13 
15 
16  }
18 
19  if(aa.Proc.find("Inelastic")<100){
20  return true;
21  }
22  else return false;
23 
24  }
25 
27 
28  return inel_A_scaling;
29 
30  }
31 
32 
33 }
A list/table of parameter names and values.
virtual double calculateWeight(const InteractionData &inter_data)
calculate a weight for this interaction given the central value parameters and the parameters for thi...
virtual bool canReweight(const InteractionData &aa)
can the particular instance of this class reweight this interaction?
double getParameterValue(const std::string &name) const
get the value of a parameter. throw an exception of a well defined type if we don&#39;t have it ...
The information about a hadronic interaction needed to calculate weights.
std::string Proc
Interaction process.
OtherReweighter(int iuniv, const ParameterTable &cv_pars, const ParameterTable &univ_pars)