MIPPNumiPionYieldsReweighter.h
Go to the documentation of this file.
1 #ifndef MIPPNUMIPIONYIELDSREWEIGHTER_H
2 #define MIPPNUMIPIONYIELDSREWEIGHTER_H
3 
5 #include "ParameterTable.h"
6 
7 namespace NeutrinoFluxReweight{
8 
9  /*! \class MIPPNumiPionYieldsReweighter
10  * \brief Reweight a chain of interactions that are covered by the NuMI target pi+ and pi- yields measured by MIPP
11  */
13  public:
14  /*!
15  * 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.
16  */
17  MIPPNumiPionYieldsReweighter(int iuniv, const ParameterTable& cv_pars, const ParameterTable& univ_pars);
19  //! 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
20  virtual std::vector<bool> canReweight(const InteractionChainData& aa);
21  //! 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()
22  virtual double calculateWeight(const InteractionChainData& aa);
25 
26  private:
27  int iUniv;
28  float prt_no_inter;
29  std::vector<float> vbin_data_pip,vbin_data_pim;
30  };
31 
32 
33 
34 
35 }
36 #endif
A list/table of parameter names and values.
MIPPNumiPionYieldsReweighter(int iuniv, const ParameterTable &cv_pars, const ParameterTable &univ_pars)
virtual std::vector< bool > canReweight(const InteractionChainData &aa)
Look through the InteractionChainData input and identify those Interactions that can be reweighted as...
Information about the chain of interactions leading to a neutrino.
Reweight a chain of interactions that are covered by the NuMI target pi+ and pi- yields measured by M...
virtual double calculateWeight(const InteractionChainData &aa)
calculate a weight for this interaction chain given the central value parameters and the parameters f...