inuke_reweight::parameter_limits Class Reference

#include <inuke_rw.h>

List of all members.

Public Member Functions

 parameter_limits ()
 parameter_limits (const inuke_reweight::parameter_set &sigmas, float nsigma)
std::ostream & print (std::ostream &)

Public Attributes

inuke_reweight::parameter_set upper
inuke_reweight::parameter_set lower

Detailed Description

Definition at line 50 of file inuke_rw.h.


Constructor & Destructor Documentation

inuke_reweight::parameter_limits::parameter_limits (  ) 

Definition at line 531 of file inuke_rw.cxx.

00531 : upper(),lower(){}

inuke_reweight::parameter_limits::parameter_limits ( const inuke_reweight::parameter_set sigmas,
float  nsigma 
)

Definition at line 534 of file inuke_rw.cxx.

References inuke_reweight::delta_fate::abs, inuke_reweight::delta_fate::cex, inuke_reweight::delta_fate::elas, inuke_reweight::delta_scale::ft, inuke_reweight::delta_fate::inel, inuke_reweight::delta_fate::nnp, inuke_reweight::delta_fate::npnp, inuke_reweight::delta_fate::npp, inuke_reweight::parameter_set::pi_fate, inuke_reweight::parameter_set::pi_scale, inuke_reweight::delta_fate::piprod, inuke_reweight::parameter_set::pn_fate, inuke_reweight::parameter_set::pn_scale, inuke_reweight::delta_fate::pp, inuke_reweight::delta_scale::rhonuc, and inuke_reweight::delta_scale::xsec.

00534                                                          {
00535   
00536   upper.pi_fate=sigmas.pi_fate;
00537   upper.pn_fate=sigmas.pn_fate;
00538   lower.pi_fate=sigmas.pi_fate;
00539   lower.pn_fate=sigmas.pn_fate;
00540 
00541   inuke_reweight::delta_fate* v[4]={&(upper.pi_fate),&(lower.pi_fate),
00542                                     &(upper.pn_fate),&(lower.pn_fate)};
00543   for(int j=0; j<4; j++){
00544     inuke_reweight::delta_fate& f = *v[j];
00545     //pow(-1,j) --> +,-,+,-
00546     f.cex=pow(-1,j)*(f.cex*nsigma);
00547     f.elas=pow(-1,j)*(f.elas*nsigma);
00548     f.inel=pow(-1,j)*(f.inel*nsigma);
00549     f.abs=pow(-1,j)*(f.abs*nsigma);
00550     f.pp=pow(-1,j)*(f.pp*nsigma);
00551     f.npp=pow(-1,j)*(f.npp*nsigma);
00552     f.nnp=pow(-1,j)*(f.nnp*nsigma);
00553     f.npnp=pow(-1,j)*(f.npnp*nsigma);
00554     f.piprod=pow(-1,j)*(f.piprod*nsigma);
00555   }
00556 
00557 
00558   upper.pi_scale=sigmas.pi_scale;
00559   upper.pn_scale=sigmas.pn_scale;
00560   lower.pi_scale=sigmas.pi_scale;
00561   lower.pn_scale=sigmas.pn_scale;
00562 
00563   inuke_reweight::delta_scale* w[4]={&(upper.pi_scale),&(lower.pi_scale),
00564                                     &(upper.pn_scale),&(lower.pn_scale)};
00565 
00566   for(int j=0; j<4; j++){
00567     inuke_reweight::delta_scale& f = *w[j];
00568     f.rhonuc=pow(-1,j)*(f.rhonuc*nsigma);
00569     f.ft=pow(-1,j)*(f.ft*nsigma);
00570     f.xsec=pow(-1,j)*(f.xsec*nsigma);
00571     
00572   }
00573 }


Member Function Documentation

std::ostream & inuke_reweight::parameter_limits::print ( std::ostream &  os  ) 

Definition at line 152 of file inuke_rw.cxx.

References lower, inuke_reweight::parameter_set::print(), and upper.

Referenced by MadMKAnalysis::CreatePAN(), and NuIntranuke::InitReweight().

00152                                                                {
00153   os<<"Upper limits: \n";upper.print(os); os<<std::endl;
00154   os<<"Lower limits: \n";lower.print(os); os<<std::endl;
00155 
00156   return os;
00157 }


Member Data Documentation


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

Generated on 15 Jul 2018 for loon by  doxygen 1.6.1