Reweight a chain of interactions that are covered by the NuMI target pi+ and pi- yields measured by MIPP. More...
#include <MIPPNumiPionYieldsReweighter.h>
Public Member Functions | |
MIPPNumiPionYieldsReweighter (int iuniv, const ParameterTable &cv_pars, const ParameterTable &univ_pars) | |
virtual | ~MIPPNumiPionYieldsReweighter () |
virtual std::vector< bool > | canReweight (const InteractionChainData &aa) |
Look through the InteractionChainData input and identify those Interactions that can be reweighted as part of a chain. We return a vector indicating which elements will be assigned a weight by calculateWeight. More... | |
virtual double | calculateWeight (const InteractionChainData &aa) |
calculate a weight for this interaction chain 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. Note, canReweight() should be called to determine which elements of the chain are covered by the weight returned by calculateWeight() More... | |
Public Member Functions inherited from NeutrinoFluxReweight::IInteractionChainReweighting | |
virtual | ~IInteractionChainReweighting () |
Public Attributes | |
const ParameterTable & | cvPars |
const ParameterTable & | univPars |
Private Attributes | |
int | iUniv |
float | prt_no_inter |
std::vector< float > | vbin_data_pip |
std::vector< float > | vbin_data_pim |
Reweight a chain of interactions that are covered by the NuMI target pi+ and pi- yields measured by MIPP.
Definition at line 12 of file MIPPNumiPionYieldsReweighter.h.
NeutrinoFluxReweight::MIPPNumiPionYieldsReweighter::MIPPNumiPionYieldsReweighter | ( | int | iuniv, |
const ParameterTable & | cv_pars, | ||
const ParameterTable & | univ_pars | ||
) |
The constructor. Note, we pass central value and single universe parameters in this constructor only. There is thus a 1 to 1 correspondence between an instance of this class and a given universe.
Definition at line 12 of file MIPPNumiPionYieldsReweighter.cpp.
|
virtual |
Definition at line 47 of file MIPPNumiPionYieldsReweighter.cpp.
|
virtual |
calculate a weight for this interaction chain 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. Note, canReweight() should be called to determine which elements of the chain are covered by the weight returned by calculateWeight()
Implements NeutrinoFluxReweight::IInteractionChainReweighting.
Definition at line 86 of file MIPPNumiPionYieldsReweighter.cpp.
|
virtual |
Look through the InteractionChainData input and identify those Interactions that can be reweighted as part of a chain. We return a vector indicating which elements will be assigned a weight by calculateWeight.
Implements NeutrinoFluxReweight::IInteractionChainReweighting.
Definition at line 50 of file MIPPNumiPionYieldsReweighter.cpp.
const ParameterTable& NeutrinoFluxReweight::MIPPNumiPionYieldsReweighter::cvPars |
Definition at line 23 of file MIPPNumiPionYieldsReweighter.h.
|
private |
Definition at line 27 of file MIPPNumiPionYieldsReweighter.h.
|
private |
Definition at line 28 of file MIPPNumiPionYieldsReweighter.h.
const ParameterTable& NeutrinoFluxReweight::MIPPNumiPionYieldsReweighter::univPars |
Definition at line 24 of file MIPPNumiPionYieldsReweighter.h.
|
private |
Definition at line 29 of file MIPPNumiPionYieldsReweighter.h.
|
private |
Definition at line 29 of file MIPPNumiPionYieldsReweighter.h.