nugen/NuReweight/GENIEReweight.cxx
///<Return the configured value of the given parameter.
<Return the configured value of the given parameter.
<Return the configured value of the given parameter .
double GENIEReweight::ReweightParameterValue(ReweightLabel_t rLabel) {
    int label = (int)rLabel;
    bool in_loop = false;
    bool found_par = false;
    double parameter = -10000;
    for(unsigned int i = 0; i < fReWgtParameterName.size(); i++) {
      in_loop = true;
      if(label == fReWgtParameterName[i]) {
        parameter = fReWgtParameterValue[i];
        found_par = true;
      }
    }
    if(in_loop) {
      if(found_par) return parameter;
      else {
        LOG_WARN("GENIEReweight") << "Parameter " << label << " not set yet or does not exist";
        return parameter;
      }
    }
    else {
      LOG_WARN("GENIEReweight") << "Vector of parameters has not been initialized yet (Size is 0).";
      return parameter;
    }
  }
double GENIEReweight :: ReweightParameterValue ( ReweightLabel_t rLabel ) { int label = ( int ) rLabel ; bool in_loop = false ; bool found_par = false ; double parameter = -10000 ; for ( unsigned int i = 0 ; i < fReWgtParameterName . size ( ) ; i ++ ) { in_loop = true ; if ( label == fReWgtParameterName [ i ] ) { parameter = fReWgtParameterValue [ i ] ; found_par = true ; } } if ( in_loop ) { if ( found_par ) return parameter ; else { LOG_WARN ( " " ) << " " << label << " " ; return parameter ; } } else { LOG_WARN ( " " ) << " " ; return parameter ; } }
<Return the configured value of the given parameter.
<Return the configured value of the given parameter .