nugen/NuReweight/GENIEReweight.cxx
///Used in parameter value mode (instead of parameter sigma mode) Given a user passed parameter value calculate the corresponding sigma value
///that needs to be passed to genie to give the same weight.
Used in parameter value mode (instead of parameter sigma mode) Given a user passed parameter value calculate the corresponding sigma value
that needs to be passed to genie to give the same weight.
Used in parameter value mode ( instead of parameter sigma mode ) Given a user passed parameter value calculate the corresponding sigma value that needs to be passed to genie to give the same weight .
double GENIEReweight::CalculateSigma(ReweightLabel_t label, double value) {
    int iLabel = (int) label;
    double nominal_def;
    double frac_err;
    double sigma;
    int sign;
    GSystUncertainty * gsysterr = GSystUncertainty::Instance();
    if(label==rwgt::fReweightCCQEMomDistroFGtoSF ||
        label==rwgt::fReweightTheta_Delta2Npi ||
        label==rwgt::fReweightDISNuclMod) {
      sigma = value;
    }
    else {
      nominal_def = this->NominalParameterValue(label);
      sign = genie::utils::rew::Sign(value-nominal_def);
      frac_err = gsysterr->OneSigmaErr( (GSyst_t)iLabel, sign);
      sigma = (value - nominal_def)/(frac_err*nominal_def);
    }
    return sigma;
  }
double GENIEReweight :: CalculateSigma ( ReweightLabel_t label , double value ) { int iLabel = ( int ) label ; double nominal_def ; double frac_err ; double sigma ; int sign ; GSystUncertainty * gsysterr = GSystUncertainty :: Instance ( ) ; if ( label == rwgt :: fReweightCCQEMomDistroFGtoSF || label == rwgt :: fReweightTheta_Delta2Npi || label == rwgt :: fReweightDISNuclMod ) { sigma = value ; } else { nominal_def = this -> NominalParameterValue ( label ) ; sign = genie :: utils :: rew :: Sign ( value - nominal_def ) ; frac_err = gsysterr -> OneSigmaErr ( ( GSyst_t ) iLabel , sign ) ; sigma = ( value - nominal_def ) / ( frac_err * nominal_def ) ; } return sigma ; }
Used in parameter value mode (instead of parameter sigma mode) Given a user passed parameter value calculate the corresponding sigma value
that needs to be passed to genie to give the same weight.
Used in parameter value mode ( instead of parameter sigma mode ) Given a user passed parameter value calculate the corresponding sigma value that needs to be passed to genie to give the same weight .
//double GENIEReweight::CalculateSigma(int label, double value) { //These parameters don't use the sigma definition just pass them through the function unchanged