Reweight a MC survival probabiity when the particles through volumes. More...
#include <NucleonAbsorptionOutOfTargetReweighter.h>
Public Member Functions | |
NucleonAbsorptionOutOfTargetReweighter (int iuniv, const ParameterTable &cv_pars, const ParameterTable &univ_pars) | |
virtual | ~NucleonAbsorptionOutOfTargetReweighter () |
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 | inel_piAl_xsec |
Reweight a MC survival probabiity when the particles through volumes.
Definition at line 16 of file NucleonAbsorptionOutOfTargetReweighter.h.
NeutrinoFluxReweight::NucleonAbsorptionOutOfTargetReweighter::NucleonAbsorptionOutOfTargetReweighter | ( | 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 NucleonAbsorptionOutOfTargetReweighter.cpp.
|
virtual |
Definition at line 18 of file NucleonAbsorptionOutOfTargetReweighter.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 40 of file NucleonAbsorptionOutOfTargetReweighter.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 21 of file NucleonAbsorptionOutOfTargetReweighter.cpp.
const ParameterTable& NeutrinoFluxReweight::NucleonAbsorptionOutOfTargetReweighter::cvPars |
Definition at line 27 of file NucleonAbsorptionOutOfTargetReweighter.h.
|
private |
Definition at line 31 of file NucleonAbsorptionOutOfTargetReweighter.h.
|
private |
Definition at line 30 of file NucleonAbsorptionOutOfTargetReweighter.h.
const ParameterTable& NeutrinoFluxReweight::NucleonAbsorptionOutOfTargetReweighter::univPars |
Definition at line 28 of file NucleonAbsorptionOutOfTargetReweighter.h.