Public Member Functions | Public Attributes | Private Attributes | List of all members
NeutrinoFluxReweight::OtherReweighter Class Reference

Reweighter of no thin target and no MIPP interactions. More...

#include <OtherReweighter.h>

Inheritance diagram for NeutrinoFluxReweight::OtherReweighter:
NeutrinoFluxReweight::IInteractionReweighting

Public Member Functions

 OtherReweighter (int iuniv, const ParameterTable &cv_pars, const ParameterTable &univ_pars)
 
virtual ~OtherReweighter ()
 
virtual bool canReweight (const InteractionData &aa)
 can the particular instance of this class reweight this interaction? More...
 
virtual double calculateWeight (const InteractionData &inter_data)
 calculate a weight for this interaction given the central value parameters and the parameters for this universe. The weight is something like: f(cv)/f(MC) * f(univ)/f(cv) where cv in this case corresponds to the best value of the parameter, given the data. If univ_pars=cv_pars then we are calculating a central value weight More...
 
- Public Member Functions inherited from NeutrinoFluxReweight::IInteractionReweighting
virtual ~IInteractionReweighting ()
 

Public Attributes

const ParameterTablecvPars
 
const ParameterTableunivPars
 

Private Attributes

int iUniv
 
float inel_A_scaling
 

Detailed Description

Reweighter of no thin target and no MIPP interactions.

Definition at line 19 of file OtherReweighter.h.

Constructor & Destructor Documentation

NeutrinoFluxReweight::OtherReweighter::OtherReweighter ( int  iuniv,
const ParameterTable cv_pars,
const ParameterTable univ_pars 
)

Definition at line 7 of file OtherReweighter.cpp.

7  :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  }
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 ...
NeutrinoFluxReweight::OtherReweighter::~OtherReweighter ( )
virtual

Definition at line 14 of file OtherReweighter.cpp.

14  {
15 
16  }

Member Function Documentation

double NeutrinoFluxReweight::OtherReweighter::calculateWeight ( const InteractionData inter_data)
virtual

calculate a weight for this interaction given the central value parameters and the parameters for this universe. The weight is something like: f(cv)/f(MC) * f(univ)/f(cv) where cv in this case corresponds to the best value of the parameter, given the data. If univ_pars=cv_pars then we are calculating a central value weight

Implements NeutrinoFluxReweight::IInteractionReweighting.

Definition at line 26 of file OtherReweighter.cpp.

26  {
27 
28  return inel_A_scaling;
29 
30  }
bool NeutrinoFluxReweight::OtherReweighter::canReweight ( const InteractionData aa)
virtual

can the particular instance of this class reweight this interaction?

Implements NeutrinoFluxReweight::IInteractionReweighting.

Definition at line 17 of file OtherReweighter.cpp.

17  {
18 
19  if(aa.Proc.find("Inelastic")<100){
20  return true;
21  }
22  else return false;
23 
24  }

Member Data Documentation

const ParameterTable& NeutrinoFluxReweight::OtherReweighter::cvPars

Definition at line 26 of file OtherReweighter.h.

float NeutrinoFluxReweight::OtherReweighter::inel_A_scaling
private

Definition at line 31 of file OtherReweighter.h.

int NeutrinoFluxReweight::OtherReweighter::iUniv
private

Definition at line 30 of file OtherReweighter.h.

const ParameterTable& NeutrinoFluxReweight::OtherReweighter::univPars

Definition at line 27 of file OtherReweighter.h.


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