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

Reweighter of NA61 pip Interactions. More...

#include <ThinTargetpipCReweighter.h>

Inheritance diagram for NeutrinoFluxReweight::ThinTargetpipCReweighter:
NeutrinoFluxReweight::IInteractionReweighting

Public Member Functions

 ThinTargetpipCReweighter (int iuniv, const ParameterTable &cv_pars, const ParameterTable &univ_pars)
 
virtual ~ThinTargetpipCReweighter ()
 
virtual bool canReweight (const InteractionData &aa)
 can the particular instance of this class reweight this interaction? More...
 
virtual double calculateWeight (const InteractionData &aa)
 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 ()
 

Private Attributes

int iUniv
 
const ParameterTablecvPars
 
const ParameterTableunivPars
 

Detailed Description

Reweighter of NA61 pip Interactions.

Definition at line 19 of file ThinTargetpipCReweighter.h.

Constructor & Destructor Documentation

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

Definition at line 7 of file ThinTargetpipCReweighter.cpp.

7  :iUniv(iuniv),cvPars(cv_pars),univPars(univ_pars){
8 
9  ThinTargetBins* Thinbins = ThinTargetBins::getInstance();
10 
11 
12  //1 incident particles, 8 produced particles:
13 
14  }
static ThinTargetBins * getInstance()
NeutrinoFluxReweight::ThinTargetpipCReweighter::~ThinTargetpipCReweighter ( )
virtual

Definition at line 16 of file ThinTargetpipCReweighter.cpp.

16  {
17 
18  }

Member Function Documentation

double NeutrinoFluxReweight::ThinTargetpipCReweighter::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 ThinTargetpipCReweighter.cpp.

26  {
27 
28  double wgt = 1.0;
29 
30  return wgt;
31 
32  }
bool NeutrinoFluxReweight::ThinTargetpipCReweighter::canReweight ( const InteractionData aa)
virtual

can the particular instance of this class reweight this interaction?

Implements NeutrinoFluxReweight::IInteractionReweighting.

Definition at line 19 of file ThinTargetpipCReweighter.cpp.

19  {
20 
21 
22  return false;
23 
24  }

Member Data Documentation

const ParameterTable& NeutrinoFluxReweight::ThinTargetpipCReweighter::cvPars
private

Definition at line 29 of file ThinTargetpipCReweighter.h.

int NeutrinoFluxReweight::ThinTargetpipCReweighter::iUniv
private

Definition at line 28 of file ThinTargetpipCReweighter.h.

const ParameterTable& NeutrinoFluxReweight::ThinTargetpipCReweighter::univPars
private

Definition at line 30 of file ThinTargetpipCReweighter.h.


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