nugen/NuReweight/GENIEReweight.cxx
///<Change a reweight parameter.  If it hasn't been added yet add it.
<Change a reweight parameter.  If it hasn't been added yet add it.
<Change a reweight parameter . If it hasn ' t been added yet add it .
void GENIEReweight::ChangeParameterValue(ReweightLabel_t rLabel, double value) {
    int label = (int)rLabel;
    bool found = false;
    for(unsigned int i = 0; i < fReWgtParameterName.size(); i++) {
      if(fReWgtParameterName[i] == label) {
        fReWgtParameterValue[i] = value;
        found = true;
      }
    }
    if(!found) {
      this->AddReweightValue(rLabel, value);
    }
  }
void GENIEReweight :: ChangeParameterValue ( ReweightLabel_t rLabel , double value ) { int label = ( int ) rLabel ; bool found = false ; for ( unsigned int i = 0 ; i < fReWgtParameterName . size ( ) ; i ++ ) { if ( fReWgtParameterName [ i ] == label ) { fReWgtParameterValue [ i ] = value ; found = true ; } } if ( ! found ) { this -> AddReweightValue ( rLabel , value ) ; } }
<Change a reweight parameter.
<Change a reweight parameter .