Reweighter of thin target nC interactions.
More...
#include <ThinTargetnCPionReweighter.h>
Reweighter of thin target nC interactions.
Definition at line 20 of file ThinTargetnCPionReweighter.h.
NeutrinoFluxReweight::ThinTargetnCPionReweighter::ThinTargetnCPionReweighter |
( |
int |
iuniv, |
|
|
const ParameterTable & |
cv_pars, |
|
|
const ParameterTable & |
univ_pars |
|
) |
| |
NeutrinoFluxReweight::ThinTargetnCPionReweighter::~ThinTargetnCPionReweighter |
( |
| ) |
|
|
virtual |
double NeutrinoFluxReweight::ThinTargetnCPionReweighter::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 44 of file ThinTargetnCPionReweighter.cpp.
50 double inc_mom[3] = {aa.Inc_P4[0], aa.Inc_P4[1], aa.Inc_P4[2]};
51 double prod_mom[3] = {aa.Prod_P4[0],aa.Prod_P4[1],aa.Prod_P4[2]};
52 double vtx_int[3] = {aa.Vtx[0],aa.Vtx[1],aa.Vtx[2]};
53 InteractionData intData(aa.gen, inc_mom,2212,prod_mom,-1*aa.Prod_pdg,aa.Vol,aa.Proc,vtx_int);
57 if(wgt<0)std::cout<<
"TTNCPI check wgt(<0) "<<
iUniv<<
" "<<aa.Inc_P<<
" "<<aa.xF<<
" "<<aa.Pt<<
" "<<aa.Prod_pdg<<
std::endl;
static MakeReweight * getInstance()
virtual double calculateWeight(const InteractionData &inter_data)
calculate a weight for this interaction given the central value parameters and the parameters for thi...
QTextStream & endl(QTextStream &s)
ThinTargetpCPionReweighter * tt_pCPionRew
bool NeutrinoFluxReweight::ThinTargetnCPionReweighter::canReweight |
( |
const InteractionData & |
aa | ) |
|
|
virtual |
can the particular instance of this class reweight this interaction?
Implements NeutrinoFluxReweight::IInteractionReweighting.
Definition at line 15 of file ThinTargetnCPionReweighter.cpp.
23 if(aa.Inc_pdg != 2112)
return false;
24 if(aa.Inc_P < 12.0)
return false;
26 bool is_wrong_volume = aa.Vol !=
"TGT1" && aa.Vol !=
"BudalMonitor" && aa.Vol !=
"Budal_HFVS" && aa.Vol !=
"Budal_VFHS";
27 if( (mode==
"REF") || (mode==
"OPT") ){
29 is_wrong_volume = aa.Vol !=
"TargetFinHorizontal" && aa.Vol !=
"TargetNoSplitSegment" && aa.Vol!=
"tCoreLog";
31 if(is_wrong_volume)
return false;
33 if(aa.Prod_pdg != 211 && aa.Prod_pdg != -211)
return false;
35 double inc_mom[3] = {aa.Inc_P4[0], aa.Inc_P4[1], aa.Inc_P4[2]};
36 double prod_mom[3] = {aa.Prod_P4[0],aa.Prod_P4[1],aa.Prod_P4[2]};
37 double vtx_int[3] = {aa.Vtx[0],aa.Vtx[1],aa.Vtx[2]};
39 InteractionData intData(aa.gen, inc_mom,2212,prod_mom,-1*aa.Prod_pdg,aa.Vol,aa.Proc,vtx_int);
static MakeReweight * getInstance()
std::string getenv(std::string const &name)
virtual bool canReweight(const InteractionData &aa)
can the particular instance of this class reweight this interaction?
ThinTargetpCPionReweighter * tt_pCPionRew
const ParameterTable& NeutrinoFluxReweight::ThinTargetnCPionReweighter::cvPars |
|
private |
int NeutrinoFluxReweight::ThinTargetnCPionReweighter::iUniv |
|
private |
const ParameterTable& NeutrinoFluxReweight::ThinTargetnCPionReweighter::univPars |
|
private |
The documentation for this class was generated from the following files: