Skip to content

Commit

Permalink
Allow robustHesse without a fit
Browse files Browse the repository at this point in the history
  • Loading branch information
nsmith- committed Aug 30, 2023
1 parent 9e40e3c commit 5b061b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/RobustHesse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ int RobustHesse::setParameterStencil(unsigned i) {
double boundLo = rrv->getMin();
double boundHi = rrv->getMax();

// If we skip initial fit (e.g. to compute from asimov point)
// need a guess for the initial step size
if ( rrv->getError() == 0.0 ) {
valLo = x + 1e-3*(boundLo - x);
valHi = x + 1e-3*(boundHi - x);
}

bool closeToLo = valLo < boundLo;
bool closeToHi = valHi > boundHi;

Expand Down

0 comments on commit 5b061b9

Please sign in to comment.